Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use python and also show indentation of the codes # Question 2 def quadratic(a, b, c): solve the quadratic equation ax^2+bx+c=0, and return
please use python and also show indentation of the codes# Question 2 def quadratic(a, b, c): """ solve the quadratic equation ax^2+bx+c=0, and return the answer as requested in the text of the question" # insert your code here # note: the output of your print commands does not have to look identical # to what is shown here, but must give the correct text and the correct value(s) print (quadratic(1,5,6)) # should print (real distinct roots', [-2.0, -3.0]) print (quadratic(1,-22,121)) # should print ('repeated real root', [11.01) print (quadratic(1,-8,65)) # should print ('complex conjugate roots', [(4+7;), (4-7)))) print (quadratic(1,0,1)) # should print ('complex conjugate roots', [1], -1jl) print (quadratic(1,-1,0)) # should print ('real distinct roots', (1.0, 0.01)
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