Question: using python to create code 2. [2] Create a function solve_quadratic(a,b,c), where a, b, and c are the coefficients of the quadratic equation ax2 +

 using python to create code 2. [2] Create a function solve_quadratic(a,b,c),

using python to create code

2. [2] Create a function solve_quadratic(a,b,c), where a, b, and c are the coefficients of the quadratic equation ax2 + bx+c= 0. (a) If there are two real, distinct roots, return the message real distinct roots and the two roots in a list. (b) If there is a repeated real root, return the message "repeated real root and its value in a list (with a single element). (c) If the solutions are complex, return the message complex conjugate roots and the two complex roots. (Recall that complex(3,4) defines the complex number 3 + 4j.)

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!