Question
please help solve this question in python Write a script which determines if a quadratic equation will yield roots that are real, complex, or imaginary.
please help solve this question in python
Write a script which determines if a quadratic equation will yield roots that are real, complex, or imaginary. The script should ask a user for the three coefficients , , 2 + + Given that the discriminant d is given by = 2 4 The roots can be determined according to If > 0 the roots are real and print out a message roughly saying The roots to the quadratic equation with coefficients {a}, {b}, {c} are REAL. If d < 0 the roots are complex and print out a message saying something similar to The roots to the quadratic equation with coefficients {a}, {b}, {c} are COMPLEX If b = 0 the roots are imaginary and print out a message saying something similar to The roots to the quadratic equation with coefficients {a}, {b}, {c} are imaginary
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started