Update app.py
Browse files
app.py
CHANGED
|
@@ -13,10 +13,11 @@ from Gradio_UI import GradioUI
|
|
| 13 |
def quadratic_roots(a:int, b:int, c:int)-> str:
|
| 14 |
"""A tool to calculate the roots of a quadratic equation, like a*(x^2)+b*(x)+c = 0
|
| 15 |
Args:
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
x = -b +- sqrt(b^2 - 4ac) / 2a
|
| 21 |
"""
|
| 22 |
if a == 0:
|
|
|
|
| 13 |
def quadratic_roots(a:int, b:int, c:int)-> str:
|
| 14 |
"""A tool to calculate the roots of a quadratic equation, like a*(x^2)+b*(x)+c = 0
|
| 15 |
Args:
|
| 16 |
+
a: constant in front of x^2
|
| 17 |
+
b: constant in front of x
|
| 18 |
+
c: stand-alone constant
|
| 19 |
+
|
| 20 |
+
Solution:
|
| 21 |
x = -b +- sqrt(b^2 - 4ac) / 2a
|
| 22 |
"""
|
| 23 |
if a == 0:
|