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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!