Maclaurin Series, How can I find the answer?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I find the answer with MATLAB in this problem? 0 Kommentare
Antworten (1)
Sahil Jain
am 20 Okt. 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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!