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),](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3aaca96c52_00266f3aaca1b64a.jpg)
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
Get step-by-step solutions from verified subject matter experts
