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,

How can I write a code on my computer for this 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, 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

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!