Question: Using MATLAB programming, also Can you indicate what will go in the command window and what will go in the script window. Thanks The roots

Using MATLAB programming, also Can you indicate what will go in the command window and what will go in the script window. Thanks
 Using MATLAB programming, also Can you indicate what will go in

The roots of a quadratic equation ax2 bx given by formula c 0 are the 4 ac 2a write a function that take as input the coefficients a, b,c and returns as output the roots x1,x2 o the quadratic equation. Let x1 be the smaller of the two roots. "If a is zero, print a warning message informing the user ofthe situation. But, then solve the linear equation for the single root and set x NaN If b2 4ac is negative, print awarning message informing the user of the situation. But, then solve the equation anyways to find and return the complex roots. If b 4ac is zero, set x2 equal to the unique root x1. If any of a, b, c are not scalar numbers, print an error message informing the user ofthe situation and set x, x2 NaN

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!