What is the algorithm of Quadratic Equation

  • What is the algorithm of Quadratic Equation 

  • 1 Comment sorted by

  • Algorithm: Quadratic equation.

    Step 1: Read: A, B, C.
    Step 2: Set D: =B²-4AC.
    Step 3: If D>0, then:
    (a) Set X1:= (-B+√D)/2A and X2:=(-B-√D)/2A.
    (b) Write: X1, X2.
    Else if D=0, then:
    (a) Set X: = -B/2A.
    (b) Write: ‘UNIQUE SOLUTION’, X.
    Write: ‘NO REAL SOLUTION’.
    [End of if structure.]
    Step 4: Exit.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week