Confluent Hypergeometric Function of the First Kind

조회 수: 46 (최근 30일)
adi
adi 2015년 12월 24일
답변: Brendan Hamm 2015년 12월 24일
Is there a way to calculate this function in matlab, specifically in 2013a?
I got this function in Mathmatica, it's called Hypergeometric1F1 there. I've seen kummerU in matlab, but the definitions look different. in Mathmatica the definition is: http://mathworld.wolfram.com/ConfluentHypergeometricFunctionoftheFirstKind.html in matlab it's different: http://www.mathworks.com/help/symbolic/kummeru.html

답변 (1개)

Brendan Hamm
Brendan Hamm 2015년 12월 24일
The kummerU function is the Confluent Hypergeometric Function of the Second Kind.
hypergeom(a,b,z) is the Confluent Hypergeometric Function of the First Kind.
Test it:
>> F = @(a,b,z) gamma(b)/(gamma(b-a)*gamma(a))*integral(@(t) exp(z.*t).*t.^(a-1).*(1-t).^(b-a-1),0,1);
>> F(1,2,-pi)
ans =
0.3046
>> hypergeom(1,2,-pi)
ans =
0.3046

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by