develop an algorithm to find square root of a quadratic equation
Answers
Answered by
1
Answer:
Algorithm to find all the roots of a quadratic equation
- Input the value of a, b, c.
- Calculate k = b*b - 4*a*c.
- If (d < 0) Display "Roots are Imaginary, calculater1 = (-b +i ? k)/ 2a and r2 =(b + i? k)/ 2a. else if (d = 0) Display "Roots are Equal" and calculate r1 = r2 = (-b / 2*a) ...
- Print r1 and r2.
- End the algorithm.
Similar questions