Question: python Write a function roots that computes the roots of a quadratic equation. Check for complex roots and print a message saying that the roots

python Write a function roots that computes the roots of a quadratic equation. Check for complex roots and print a message saying that the roots are complex.\ \ *Hint 1: Your function should take three parameters-what are they?\ \ *Hint 2: We know the roots are complex when what condition about the discriminant is met?\ \ Be sure to demonstrate a variety of test cases, that include complex roots, real roots, and double roots.

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!