Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Gamma Function & Imaginary argument
Date: Fri, 12 Mar 2010 00:43:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <hnc2mo$qp2$1@fred.mathworks.com>
References: <hnc146$kpp$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1268354584 27426 172.30.248.35 (12 Mar 2010 00:43:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 12 Mar 2010 00:43:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:616118

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.diaz@gmail.com> wrote in message <hnc146$kpp$1@fred.mathworks.com>...
> 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