Maclaurin Series, How can I find the answer?

3 visualizaciones (últimos 30 días)
성훈 김
성훈 김 el 15 de Oct. de 2021
Respondida: Sahil Jain el 20 de Oct. de 2021
How can I find the answer with MATLAB in this problem?

Respuestas (1)

Sahil Jain
Sahil Jain el 20 de Oct. de 2021
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

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by