Question: Use MATLAB code to write this script. You are to write a script called ek125homeworklb that will prompt the user for three numbers, which are

 Use MATLAB code to write this script. You are to write

Use MATLAB code to write this script.

You are to write a script called ek125homeworklb that will prompt the user for three numbers, which are the coefficients of your polynomial, specifically: a.b, and c seen previously. Then you are to find the root(s), either real or imaginary and print them in the specific format seen below. is an example for each different case. >>ek125homework1b Enter the coefficient of x*2: 1 Enter the coefficient of x: -3 Enter the constant: 2 The polynomial ()x2+ (-3)x (2) has roots 2.00 and 1.00 >>ek125homework1b Enter the coefficient of x*2: 1 Enter the coefficient of x: -6 Enter the constant:9 The polynomial (1)x 2+ (-6) x+ (9) has root 3.00 >>ek125homework1b Enter the coefficient of x*2: 4 Enter the coefficient of x: 2 Enter the constant:4 The polynomial (4)x*2+ (2) x+ (4) has roots -025+(0.97)and -0.25+(-0.97)i

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!