Question: (hint: use the function real and imag! also i is imaginary #) You are to write a script called ekl25homeworklb that will prompt the user

(hint: use the function real and imag! also i is imaginary #)
You are to write a script called ekl25homeworklb 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. There is an example for each different case >ek125homeworklb Enter the coefficient of x2: 1 Enter the coefficient of x: -3 Enter the constant: 2 The polynomial (x2+ (-3) x+ (2) has roots 2.00 and 1.00 >ek125homeworklb Enter the coefficient of x2: 1 Enter the coefficient of x: -6 Enter the constant: 9 The polynomial (x2+ (-6) x+ (9) has root 3.00 >ek125homeworklb Enter the coefficient of x2: 4 Enter the coefficient of x: 2 Enter the constant: 4 The polynomial (A)x 2+ (2) x+ (4) has roots -025+(0.97) and 0.25+(-0.97)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
