Question

Need help with writing this code/solution in, at least, MatLab v. R2018b

Task 4.12 Using the command roots calculate the solutions of the equations 23 + 2a +r+1= 0 and – 2x + 25 + m2 = 4. Here you n

Solution 4.12 The roots can be calculated using the inline code roots([1 1 1 1]) and roots ([1 0 0 1 -2 -4]).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab code for finding roots

eq1 is

x3 + x2 + x + 1=0

eq2 is

x5 + x2 - 2x - 4 = 0

============================================================================================

Matlab code for finding roots

p=[1 1 1 1];
r=roots(p)

p=[1 0 0 1 -2 -4];
r=roots(p)

============================================================================================

output

MAILAB R2018a O Search Documentation AFPS НОМЕ PLOTS New Varisble Preferences Community Anslyze Cods Find Fies Open Varisble

Add a comment
Know the answer?
Add Answer to:
Need help with writing this code/solution in, at least, MatLab v. R2018b Task 4.12 Using the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT