#Z13210. 求一元二次方程
求一元二次方程
Description
Using the formula:
Find the roots of the quadratic equation ( ax^2 + bx + c = 0 ), where ( a ) is not equal to 0. The results must be accurate to 5 decimal places.
Input Format
Input one line containing three floating-point numbers ( a, b, c ) (separated by a single space), representing the coefficients of the equation ( ax^2 + bx + c = 0 ).
Output Format
Output one line representing the solution of the equation.
If the two real roots are equal, the output format should be: "( x_1=x_2=... )";
If the two real roots are unequal and ordered such that the smaller root comes first, the output format should be: "( x_1=...;x_2=... )";
If there are no real roots, output "No answer!".
All output values must be accurate to 5 decimal places, with no spaces between numbers and symbols.
-15.97 19.69 12.02
x1=-0.44781;x2=1.68075