¿Como puedo traspasar esta serie a una funcion?8
1 view (last 30 days)
Show older comments
fac = 1;
n = input ('favor de ingresar cantidadd e terminos:');
x = input ('Ingresar el valor de x:');
s = x;
para i = 2: n
fac = fac * ((i * 2) -1);
if (mod (i, 2) == 0)
s = 1 - doble ((x ^ (i * 2)) / fac
más
s = 1 + doble ((x ^ (i * 2)) / fac
fin
fin
disp ('el valor de Cos (x) se aproxima a:');
Es una serie del cos (x)
1 Comment
Rik
on 21 Apr 2019
If you translate it to English this looks like valid and working Matlab code. What is your question?
Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!