The Taylor series expansion for cos(x) is cos(x) = 1 - x^2/2! + x^4/4! - x^6/6!
ID: 3402415 • Letter: T
Question
Explanation / Answer
following is the matlab program
clc;
close all;
clear all;
theta=pi*60/180;
e=1;
n=1;
S(1)=1;
while abs(e)>=.000001
S(n+1)=S(n)+(-1)^(n).*theta^(2*(n))./factorial(2*(n));
e=(S(n+1)-S(n))/(S(n));
n=1+n;
end
disp(S);
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.