Question: (python3 is the language used) 4-2. (12 points) Solving quadratic equations. A quadratic equation has the form, a.x +bxtc-0, where x is the unknown and

 (python3 is the language used) 4-2. (12 points) Solving quadratic equations.

A quadratic equation has the form, a.x +bxtc-0, where x is the

unknown and a, b, and c are known coefficients. Real values of

(python3 is the language used)

4-2. (12 points) Solving quadratic equations. A quadratic equation has the form, a.x +bxtc-0, where x is the unknown and a, b, and c are known coefficients. Real values of x that satisfy the equation are called the roots and can be algebraically found using the quadratic formula shown below. The process of finding the roots is called "solving" the quadratic equation. An important step in solving the quadratic equation is the discriminant analysis. The discriminant is given by the term inside the square root, and it is a key indicator for the existence of the solution. A quadratic equation can be solved if and only if the discriminant The rules of solving the quadratic equation using the discriminant are outlined below is larger or equal to zero. Let D denote the discriminant, D-b- 4ac, (1) if D 0, the two roots are given by the quadratic equation. Write a program that receives user inputs for the coefficients a, b, and c se outputs the root(s) of the quadratic equation. If the program cannot solve the quadratic the user, the program should print an appropriate message. m can print floating point answers. It does not have to print in fraction Note. Your progra ms, That is, x = 0.5 is okay. You don't have to print x-1/2. A function math. aqrt (x) has been imported and provided for you. It receivesa ber as input in place of the parameter x, and returns the square root of x in float. Ex) >>sqrt(9) 3.0

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!