Maclaurin Series, How can I find the answer?

답변 (1개)

Sahil Jain
Sahil Jain 2021년 10월 20일

0 개 추천

Hi. You can use a "for" loop to calculate this series as follows.
x = pi/3;
cosx = 1;
n = 10; % number of terms in the series
for i=1:n
cosx = cosx + (-1)^i*x^(2*i)/factorial(2*i);
end

질문:

2021년 10월 15일

답변:

2021년 10월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by