calculate the value of the following function

조회 수: 3 (최근 30일)
mohamed samhy
mohamed samhy 2022년 3월 30일
답변: Ram 2024년 2월 22일
Hi All,
i need to write a code to calculate the value of the following Sigma function:
thanks in advance
  댓글 수: 4
mohamed samhy
mohamed samhy 2022년 3월 30일
i cannot fully understand your comment, should i search those ?
Torsten
Torsten 2022년 3월 30일
Yes, you want to sum (look for "sum" in the MATLAB documentation) some terms involving factorials (look for "factorial" in the MATLAB documentation).

댓글을 달려면 로그인하십시오.

답변 (1개)

Ram
Ram 2024년 2월 22일
Hey Mohamed, this is a possible approach to do symbolic sum of series;
>> syms i;
>> symsum(((3^i)/factorial(i)), i, 0, 5);
Hope this helps.
-Ram.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by