Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 =0Step 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