Confluent Hypergeometric Function of the First Kind
45 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Brendan Hamm
on 24 Dec 2015
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!