Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

(c) What is the resolution of this design?

Answered: 1 week ago

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago