How to calculate imaginary part of incomplete gamma function in matlab.
Show older comments
I am calculating the coverage probability of massive MIMO systems. During which i need to calculate imaginary part of incomplete gamma function. But i run code shown below error is:Undefined function 'gammanic' for input arguments of type 'double'.
Error in i_gamma (line 3) y= exp(gammanic(2/a, 2*1i));
Code is as follows
syms y z
a=4;
y= exp(gammanic(2/a, 2*1i));
z =imag(y)
Thanks in advance.
Accepted Answer
More Answers (1)
John D'Errico
on 11 Sep 2017
Edited: John D'Errico
on 11 Sep 2017
0 votes
I might point out that gammainc is the name of the incomplete gamma function. Not gammanic. Misspelling a function name tends to work poorly.
Regardless, It looks like gammainc does not accepts complex arguments. As well, the symbolic toolbox does not have an incomplete gamma.
Finally, you state that you need to compute the imaginary part of the GAMMA function. You did not say you need the INCOMPLETE gamma function. So if you really need gamma, why are you apparently trying to use gammainc?
To quote you: "How to calculate imaginary part of gamma function in matlab."
1 Comment
Shweta Rajoria
on 11 Sep 2017
Categories
Find more on Special Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!