how to do summation using syms matlab inbuilt function for below equation

조회 수: 7 (최근 30일)
how to use syms matlab summation function for following equation

채택된 답변

Walter Roberson
Walter Roberson 2019년 3월 28일
syms K
symsum(1/(1+j)^(5*K), K, 0, 3)

추가 답변 (1개)

Dr. P. PRAVEEN KUMAR
Dr. P. PRAVEEN KUMAR 2019년 3월 28일
1.syms k j
or
2.syms k
my dear sir please give explanation for your answer if you select any option from either from 1 or 2
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 3월 28일
I would not use either.
Your image uses k (lower-case) with k being multiples of 5. If you were to use k (lower-case) in your symsum then a reader would have a right to expect that your k (lower-case) had the same purpose as the k from the image, namely that it should be restricted to being multiples of 5. Therefore I use a different symbol, K (upper-case) that gets consecutive values, and which the formula transforms to get the needed k.
I would not syms j because in the image, since no information has been given that j might be something else, we can assume that j is the imaginary unit being used in its engineering notation. If j is intended to be something else, then the result of the summation would be quite different.
There are other ways of writing the expression that would use syms k, such as
syms k
sum( subs(1/(1+j)^k, k, [0 5 10 15]) )
or
sum( 1./(1+j).^[0 5 10 15] )

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by