Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
