필터 지우기
필터 지우기

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
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
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