Use MATLAB to carry out the following multiplication of polynomials: x(x - 1.7)
ID: 3776651 • Letter: U
Question
Use MATLAB to carry out the following multiplication of polynomials: x(x - 1.7) (x + 0.5) (x - 0.7) (x + 1.5) The reciprocal Fibonacci constant psi is defined by the infinite sum: psi = sigma^infimity_n = 1 1/F_n where F_n are the Fibonacci numbers 1, 1, 2, 3, 5, 8, 13, .... Each element in this sequence of numbers is the sum of the previous two. Start by setting the first two elements equal to 1, then F_n = F_n - 1 + F_n - 2. Write a MATLAB program in a script file that calculates psi for a given n. Execute the program for n = 10, 50, and 100.Explanation / Answer
2.73)
p1=[1 0];
p2=[1 -1.7];
p3=[1 0.5];
p4=[1 -0.7];
p5=[1 1.5];
p=conv(conv(p1,p2),conv(p3,p4));
matlab output:
p=1.0000 -0.4000 -2.8600 0.5800 0.8925 0
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.