Thread Subject:
inverse gamma function

Subject: inverse gamma function

From: Dipen Bepari

Date: 7 Jul, 2011 09:35:11

Message: 1 of 3

i like to solve the equation given bellow-
  f=incomplete gamma function(u,x);
f=.0001;
u=5;
now ilike to find out x.

i have tried like-
 x=gammaincinv((1-f),u,'lower')

Subject: inverse gamma function

From: Torsten

Date: 7 Jul, 2011 09:49:33

Message: 2 of 3

On 7 Jul., 11:35, "Dipen Bepari" <dipen.jge...@gmail.com> wrote:
> i like to solve the equation given bellow-
>   f=incomplete gamma function(u,x);
> f=.0001;
> u=5;
> now ilike to find out x.
>
> i have tried like-
>  x=gammaincinv((1-f),u,'lower')

You can easily check whether you are right by
calculating hereafter
y=gammainc(x,u)
If y=f, you are done (assuming you use the same definition for the
gammainc function as MATLAB does).

Best wishes
Torsten.

Subject: inverse gamma function

From: Roger Stafford

Date: 7 Jul, 2011 23:16:10

Message: 3 of 3

"Dipen Bepari" <dipen.jgec04@gmail.com> wrote in message <iv3ukf$and$1@newscl01ah.mathworks.com>...
> i like to solve the equation given bellow-
> f=incomplete gamma function(u,x);
> f=.0001;
> u=5;
> now ilike to find out x.
>
> i have tried like-
> x=gammaincinv((1-f),u,'lower')
- - - - - - - - - - - -
  You are attempting to find the inverse with respect to the second argument - the gamma function parameter - of gammainc. However, the function gammaincinv finds the inverse with respect to the first argument - the limit of integration - which is a very different problem.

  Why don't you try using fzero on it?

Roger Stafford

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us