¿Como puedo traspasar esta serie a una funcion?8
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Rik
2019-4-21
If you translate it to English this looks like valid and working Matlab code. What is your question?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!