Question: How can I write a code on my computer for this question 2. [2] Create a function solve_quadratic (a,b,c) which solves the quadratic equation ax2+bx+c=0(a,b,
2. [2] Create a function solve_quadratic (a,b,c) which solves the quadratic equation ax2+bx+c=0(a,b, and c can be any real numbers ). (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
