Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+ Are they breakable for any reason?

Answered: 1 week ago

Question

=+When and under what circumstances are contracts renegotiated?

Answered: 1 week ago