Roots of Quadratic Equation
Use immediately

Roots of Quadratic Equation

Start

Declare Variable a, b, c, D, x1, x2, rp, ip

Calculate Discriminant by

D< b²- 4ac

Is D >= 0?

r1←(-b + √D) /2a

r2←(-b + √D) /2a

ip← -b/ 2a

rp← √-D) /2a

x1← ip + j*ip

x2←rp - j*ip

Display r1 and r2

End

FALSE

TRUE

Find all the roots of a quadratic equation ax2+bx+c=0

74
0
0
publish time: 2021-09-27
Ashley

Step 1: Enter the variables a, b, c, D, x1, x2, rp, and ip. Step 2: Evaluate the discriminant by using the formula: D= b²- 4ac Step 3: Print rp and ip.

See More Related Templates