Question: Write a program to solve a quadratic equation completely, Generally, such an equation, ax2+bx+c 0 always has two solutions, which can be found according to
Write a program to solve a quadratic equation completely, Generally, such an equation, ax2+bx+c 0 always has two solutions, which can be found according to the following three cases. Define the discriminant A b2-4ac Case 1. Two different real valued solutions if A>0. x -bit b2-4ac a Case 2. Two indetical solutions if A 0. x -b2a Case 3. Two complex solutions if A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
