How do I solve this ?

1 次查看(过去 30 天)
Ashish Phadke
Ashish Phadke 2022-12-22

回答(1 个)

VBBV
VBBV 2022-12-22
编辑:VBBV 2022-12-22
n = 0:1:100; % n range
syms x
E = @(n) (x.^n)./(factorial(n));
fplot(sum(E(n)),[1 10])
hold on
plot(exp(1:10))
legend('Summation','e^{x}')
xlabel('x values'); ylabel('Sum')
  2 个评论
Ashish Phadke
Ashish Phadke 2022-12-22
Thanks a lot !!
John D'Errico
John D'Errico 2022-12-22
Please do not do obvious homework assignments for students.
This does not help the student, depite that they get what they want. It teaches them nothing more than that there is always someone willing to jump do their work for them.
It harms the site itself, because then this student will now think they can post their homework with no effort made, and get it done for them to hand in. Worse, it then convinces other students they have just as much right to get their work done for them with no effort made or shown.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Number Theory 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by