Solve each equation with the quadratic formula. Cookies remember you so we can give you a better online experience. Solve the quadratic equation ax2 bx c 0 import complex math module import cmath a 1 b 5 c 6 calculate the discriminant d b2 - 4ac find two solutions sol1 -b-cmathsqrtd2a sol2 -bcmathsqrtd2a printThe solution are 0 and 1formatsol1sol2.
Solve the quadratic equation ax2 bx c 0 import complex math module import cmath a 1 b 5 c 6 calculate the discriminant d b2 - 4ac find two solutions sol1 -b-cmathsqrtd2a sol2 -bcmathsqrtd2a printThe solution are 0 and 1formatsol1sol2.
The complex number equation calculator returns the complex values for which the quadratic equation is zero. Letas illustrate this further using a live example. The calculator solution will show work using the quadratic formula to solve the entered equation for real and complex roots. The complex number equation calculator returns the complex values for which the quadratic equation is zero.