Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Calculate the Discriminant: write a function called discriminant that takes as parameters three floats a , b , and c , and returns the value
Calculate the Discriminant: write a function called discriminant that takes as parameters three floats a b and c and returns the value of bac
Check for the existance of real roots: write a function called hasrealroot that takes three float ab and c as parameters, and returns True if the discriminant is larger than or equal to and False otherwise. Calculate the roots of a quadratic equation: Write a function called getrealroots
Take three floats aband c as perameters and retun the two roots as a tuple
two roots xbda and xbda
python language
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