Shakeel1979 commited on
Commit
f74c92c
·
verified ·
1 Parent(s): 6990f30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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) * 1j
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")