Question: Matlab please. Prefer to see the code on Computer screen instead of it being typed out. Thank you l 10, 100, 1,000, and The roots

 Matlab please. Prefer to see the code on Computer screen instead

Matlab please. Prefer to see the code on Computer screen instead of it being typed out. Thank you

l 10, 100, 1,000, and The roots of a cubic equation aye+a22 +arta,#0 can be calculated 36. The roots aax+ao 0 can be calculated using th Set. A=a2/A3, B=a/a3, and C=ao/a Calculate: D#03+2, where Q = (3B-A-) / 9 and R = (9AB-270-2.43) / 54 If D 0 the equation has complex roots. lf D =0 all roots are real and at least two are equal. The roots are given by: If D s0 all roots are real and are given by: x = 2(-0 cos( / 3)-A / 3, x-= 2,--0 cos(9 / 3 + 120)-A / 3, and x3=2/-0 cos( / 3 + 2400)-A / 3 , where cos = R / V Write a MATLAB program that determines the real roots of a cubic equa- tion. As input the program asks the user to enter the values of as, a2, ay, and ag as a vector. Th: rogram then calculates the value of D. If the equations have complex roo the message "The equation has complex roots" is dis- played. Otherwise ie real roots are calculated and displayed. Use the pro- gram to solve the following equations: (a) 5x3 +-345x2 +36.9x + 8.8-0 (b) 2x3 +-10x, + 24x-15 =0 (c) 2x4-14x-20.58x + 30.87 =0

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!