Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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)iStep 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