Question: Must be solved using Matlab. 6. The quadratic formula (http://www.purplemath.com/modules/quadform.htm.) allows us to find the roots of a quadratic equation of the form, ax+ bx

 Must be solved using Matlab. 6. The quadratic formula (http://www.purplemath.com/modules/quadform.htm.) allows

Must be solved using Matlab.

6. The quadratic formula (http://www.purplemath.com/modules/quadform.htm.) allows us to find the roots of a quadratic equation of the form, ax+ bx c where a, b, and c are constants Create a function called quadform ) that takes as input the coefficients of the quadratic equation (a.b.c) and returns the two distinct real roots (xl.x2) as output, if they exist. In addition, the function returns a message (flag) that informs the user if an error occurred when trying to find two distinct real roots. The possible errors are: (1) "Only one root is found": (2) "Imaginary roots are found". (3) "Any value of x is a solution": (4) "No zeroes exist." If no errors occur, then flag should be "No errors." [x1,x2,flag]quadform (a,b, c)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!