Hi,
I need help with the incomplete gamma function with real but negative
fraction value of x. I found the M_Igamma(x,a)in Meron
Library(http://www.astro.washington.edu/deutsch/idl/htmlhelp/slibrary23.html)
which works for both real and complex x. However, I notice that
M_Igamma (x,a), for a real but negative fraction value of x, give
only the real part. If any body knows how to deal with this problem
please help me. You might use the following arguments: x=-0.069, a=
2.2. Thank you very much for your help in advance.
Dag
|
|
0
|
|
|
|
Reply
|
biomedthesis2002 (3)
|
10/13/2003 3:46:52 PM |
|
In article <162586e3.0310130746.5997d5bf@posting.google.com>, biomedthesis2002@yahoo.com (New2IDL) writes:
>Hi,
>
> I need help with the incomplete gamma function with real but negative
>fraction value of x. I found the M_Igamma(x,a)in Meron
>Library(http://www.astro.washington.edu/deutsch/idl/htmlhelp/slibrary23.html)
>which works for both real and complex x. However, I notice that
>M_Igamma (x,a), for a real but negative fraction value of x, give
>only the real part. If any body knows how to deal with this problem
>please help me. You might use the following arguments: x=-0.069, a=
>2.2. Thank you very much for your help in advance.
Well, I can actually help you on this one. First, though, I suggest
you use the updated version of the routine (called Igamma_mm), you can
find it in my library on the RSI users contribution page.
Now, as for your question, Igamma_mm returns an output which is of the
same numerical type as x (no lower than float, though). So, if x is real,
so will be the output. If you want a full complex output, you need
complex input. See below:
IDL> print, igamma_mm(-0.069,2.2)
0.000976233
IDL> print, igamma_mm(complex(-0.069),2.2)
( 0.000976233, 0.000709275)
Hope this helps.
Mati Meron | "When you argue with a fool,
meron@cars.uchicago.edu | chances are he is doing just the same"
|
|
0
|
|
|
|
Reply
|
mmeron (89)
|
10/13/2003 7:48:55 PM
|
|
|
1 Replies
56 Views
(page loaded in 0.077 seconds)
Similiar Articles: Rewrite recursive function as non-recursive. - comp.lang.pascal ...Since all results are non-negative, you ... the logarithm of the gamma-function. The gamma-function is the equivalent to faculties for real numbers. function LnGamma (x ... Goodness of fit - comp.soft-sys.matlab... plot for a particular distribution (normal, gamma ... stats/cfitdfitdemo.html> The demo uses real "x, y" data. I turn my x data in x, y using the ksdensity function. renderbuffer objects - comp.graphics.api.opengl... angle=0.0; GLfloat p1[3]={-0.5,-0.5,-0.5}; GLfloat x=0 ... of GLEW are wrong but I think this would lead to real ... the depth buffer needs obviously some kind of gamma ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Incomplete gamma function - Wikipedia, the free encyclopediaThe lower incomplete gamma and the upper incomplete gamma function, as defined above for real positive s and x, can ... with the understanding that s is not a negative ... Gamma function - Wikipedia, the free encyclopediaFrom there, the gamma function can be extended to all real and complex values (except the negative integers and ... the solution is then called an incomplete gamma function 7/25/2012 7:04:38 AM
|