Question: Update: The programing language is C Exercise 6. Write a program to solve the quadratic equation ax2 br c0 using the standard quadratic formula 0
Update: The programing language is C

Exercise 6. Write a program to solve the quadratic equation ax2 br c0 using the standard quadratic formula 0 or the alternative formula Your program should accept values for the coefficients a, b, and c as commandline input and produce the two roots of the equation as output Your program should detect when the roots are imaginary, but need not use complex arithmetic explicitly. You should guard against unnecessary overflow, underflow, and cancellation. When should vou useeach of the two formulas? Try to make your program robust when given unusual input values. Any root that is within the range of the floating-point system should be computed accurately, even if the other is out of range. Test your program using the following values for the coefficients: 6 6 x 10305 x 1030-4 x 1030 0 105 3.999999 1030 10-30 1030
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
