Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def solve_quadratic(a, b, c):
|
|
| 11 |
root2 = (-b - discriminant) / (2 * a)
|
| 12 |
|
| 13 |
# Return the roots rounded to 3 decimal places
|
| 14 |
-
return round(root1.real, 3) + round(root1.imag, 3) * 1i, round(root2.real, 3) + round(root2.imag, 3) *
|
| 15 |
|
| 16 |
# Streamlit app layout
|
| 17 |
st.title("Quadratic Equation Solver")
|
|
|
|
| 11 |
root2 = (-b - discriminant) / (2 * a)
|
| 12 |
|
| 13 |
# Return the roots rounded to 3 decimal places
|
| 14 |
+
return round(root1.real, 3) + round(root1.imag, 3) * 1i, round(root2.real, 3) + round(root2.imag, 3) * 1i
|
| 15 |
|
| 16 |
# Streamlit app layout
|
| 17 |
st.title("Quadratic Equation Solver")
|