The roots of a cubic equation azx'+a,x² +ax +a, =0 _can be calculated using the following procedure: Set: A =az /a3, B=a¡/a3, and C =a,/az. Calculate: D =Q³ +R° , where Q = (3B – A²)/9 and R=(9AB– 27C...


use Matlab to solve this


The roots of a cubic equation azx'+a,x² +ax +a, =0 _can be calculated<br>using the following procedure:<br>Set: A =az /a3, B=a¡/a3, and C =a,/az.<br>Calculate: D =Q³ +R° ,<br>where Q = (3B – A²)/9 and R=(9AB– 27C – 24°) / 54 .<br>If D>0 the equation has complex roots.<br>If D=0 all roots are real and at least two are equal. The roots are given by:<br>x = 2R – A / 3, xr, = -R-A/3, and x; = -R- AI3.<br>If D<0 all roots are real and are given by:<br>x1 = 21 -Q cos(0 / 3) – A / 3, x, = 2/ -Q cos(0 /3 + 120°) – A / 3, and<br>x3 = 2 -Q cos(0 / 3 +240°) – A / 3 , where cos 0 = R / -Q³.<br>Write a MATLAB program that determines the real roots of a cubic equa-<br>tion. As input the program asks the user to enter the values of a3, az, a1, and<br>a, as a vector. The program then calculates the value of D. If the equations<br>have complex roots, the message

Extracted text: The roots of a cubic equation azx'+a,x² +ax +a, =0 _can be calculated using the following procedure: Set: A =az /a3, B=a¡/a3, and C =a,/az. Calculate: D =Q³ +R° , where Q = (3B – A²)/9 and R=(9AB– 27C – 24°) / 54 . If D>0 the equation has complex roots. If D=0 all roots are real and at least two are equal. The roots are given by: x = 2R – A / 3, xr, = -R-A/3, and x; = -R- AI3. If D<0 all="" roots="" are="" real="" and="" are="" given="" by:="" x1="21" -q="" cos(0="" 3)="" –="" a="" 3,="" x,="2/" -q="" cos(0="" 3="" +="" 120°)="" –="" a="" 3,="" and="" x3="2" -q="" cos(0="" 3="" +240°)="" –="" a="" 3="" ,="" where="" cos="" 0="R" -q³.="" 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="" a3,="" az,="" a1,="" and="" a,="" as="" a="" vector.="" the="" program="" then="" calculates="" the="" value="" of="" d.="" if="" the="" equations="" have="" complex="" roots,="" the="" message="" "the="" equation="" has="" complex="" roots"="" is="" dis-="" played.="" otherwise="" the="" real="" roots="" are="" calculated="" and="" displayed.="" use="" the="" pro-="" gram="" to="" solve="" the="" following="" equations:="" 5x="" +="" -="" 34.5x="" +36.9x="" +8.8="0" (b)="" 2x="" +="" –="" 10x²="" +24x="" –="" 15="0" (a)="" 2x="" +="" –="" 1.4x="" –="" 20.58x="" +="" 30.87="0">

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here