Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Gamma Function & Imaginary argument

2 views
Skip to first unread message

Eric Diaz

unread,
Mar 11, 2010, 7:16:06 PM3/11/10
to
Dear Matlab community,

I would like to use an imaginary input argument in the provided gamma function to test out a theory from literature. However, when I put the my argument in, gamma(1/2+i*omega), I received the following error.

??? Undefined function or method 'gamma' for input arguments of type
'double' and attributes 'full scalar complex'.

The documentation for this function also states that the input must be real. Nevertheless, the literature clearly shows the usage of imaginary arguments.

So, my questions are:
1.) Is there any reason that this function will not take imaginary inputs?
2.) Is there any way around this?

Thanks,

Eric Diaz

Sadik

unread,
Mar 11, 2010, 7:43:04 PM3/11/10
to
Hi Eric,

1) I am sorry, I don't know.
2) mcgama.m on page http://ceta.mit.edu/ceta/comp_spec_func/
should work for you.

Best.

"Eric Diaz" <eric...@gmail.com> wrote in message <hnc146$kpp$1...@fred.mathworks.com>...

Eric Diaz

unread,
Mar 11, 2010, 8:06:05 PM3/11/10
to
Thanks Sadik,

I think this will work with a little bit of editing.

Cheers,

Eric

0 new messages