Hypergeometric Function in Matlab

조회 수: 4 (최근 30일)
AVM
AVM 2020년 6월 1일
댓글: AVM 2020년 6월 1일
Can somebody help me to write the hypergeometric fucntion in code form?
  댓글 수: 2
KSSV
KSSV 2020년 6월 1일
Where is the formula for F0?
AVM
AVM 2020년 6월 1일
I think matlab has in-build hypergeometric fucntion and I have to call that which is one of the standard generalized hypergeometric fucntion of this order .

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

채택된 답변

David Goodmanson
David Goodmanson 2020년 6월 1일
Hello PM,
The variable l does not come out so well in this font so I'll call it q instead. SInce both -q and -n are negative, the series terminates and is a polynomial. The function 2F0(z) is defined as
Sum{j} (gamma(j-q)*gamma(j-n) / ( gamma(-q)*gamma(-n)*j! ) *z^j
and with the important identity
gamma(j-q) / gamma(-q) = q! / (q-j)! * (-)^j [using ! does something funky to the type color]
you can arrive at
Sum{j} (factorial(q)*factorial(n)) / (factorial(q-j)*factorial(n-j)*factorial(j)) * (1/c).^j
The last term in the series occurs when either q-j is zero or n-j is zero, whichever comes first. So you can put this expression into a for loop in j, which runs from j = 0 to j = min(q,n).
  댓글 수: 1
AVM
AVM 2020년 6월 1일
@David: Thanks for your information.

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

추가 답변 (0개)

카테고리

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