Math, asked by Shiva5426, 11 months ago

Write an algorithm to find root of quadratic equation

Answers

Answered by Nikitacuty
25

Algorithm to find root of a quadratic equation

  • Start.
  • 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.
  • Stop.

Answered by PoojaBurra
9

The algorithm to find the roots of a quadratic equation is written as follows.

  • Start
  • Find the constant and the coefficient of x². Multiply the two.
  • Find the factors of the product such that the sum or the difference of the factors is equal to the coefficient of x.
  • Split the middle term using the sum or the difference.
  • Separate the common terms.
  • Extract two routes from the common factors and print them.
  • Stop.
Similar questions