댓글 수: 4

James Tursa
James Tursa 2018년 7월 17일
Are you trying to evaluate this in MATLAB? What code have you written so far? What specifically do you need help with?
Elhussein Aly
Elhussein Aly 2018년 7월 17일
i need to solve the steps of this problem with the code mathematically
unfortunately i did not know how to solve it
Adam Danz
Adam Danz 2018년 7월 17일
Work from the inside out. If it helps, just consider the summation part and give n a constant (n=1).
The variable 'i' will range from 1 to 'a' (let's say a=7). For each i, you need to calculate the fraction.
(1-1)/(1+1)
then (2-1)/(2+1)
then (3-1)/(3+1)
until you get to (7-1)/(7+1)
That will leave you with 7 numbers that you have to add.
Now work in the product part.
n = [1 2 3, ..., 20].
You just calculated the summation for n=1 so now you need to do that again for n=2, ..., n=20; That will leave you with 20 numbers that were the result of the summation.
Your final step is to multiply those 20 numbers.
Functions that will help
  • for-loops (2 of them)
  • sum()
  • prod()
Note that there are methods that don't involve for-loops but they are less intuitive for beginners.
Elhussein Aly
Elhussein Aly 2018년 7월 17일
thank you pro

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

 채택된 답변

Walter Roberson
Walter Roberson 2018년 7월 17일

1 개 추천

syms a i n nonegative
symprod( symsum( (i-n)/(i+n), i, 1, a), n, 1, 20)
You will get a specific solution in the gamma constant and in the psi function. It probably will not have any intuitive meaning.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2018년 7월 17일

댓글:

2018년 7월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by