フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

please help me, how do I make the code for the equation in the following picture?

2 ビュー (過去 30 日間)
Muhammad Rohim
Muhammad Rohim 2020 年 4 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
  3 件のコメント
Muhammad Rohim
Muhammad Rohim 2020 年 4 月 17 日
Thanks
darova
darova 2020 年 4 月 17 日
You can use 200 percent scale for the picture if you want

回答 (1 件)

Peter O
Peter O 2020 年 4 月 17 日
You can't code an infinite sum exactly, but fortunately, this one is bounded (x^2 on the denominator and the numerator is bounded between -1 and 1).
Pick a big n:
n_max=100;
ns = 1:n_max;
sum_n = cumsum( sin(2*ns)./ns.^2);
plot(ns, sum_n)
You will see it very quickly converges, after 20 terms or so.
  5 件のコメント
Muhammad Rohim
Muhammad Rohim 2020 年 4 月 17 日
Thank you very much. It ia work.
Ameer Hamza
Ameer Hamza 2020 年 4 月 21 日
"You can't code an infinite sum exactly"
Peter, I think you meant the opposite.

この質問は閉じられています。

タグ

タグが未入力です。

製品


リリース

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by