ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   why does =GAMMAINV(0,5;389;1) return #NUM! ? (https://www.excelbanter.com/excel-worksheet-functions/59464-why-does-%3Dgammainv-0-5%3B389%3B1-return-num.html)

zimmerp

why does =GAMMAINV(0,5;389;1) return #NUM! ?
 
why does =GAMMAINV(0,5;389;1) return #NUM! ? This function is supposed to
return num only when parametres are less than or equal 0. Excel solves it
numerically, but in case it doesn't find a numeric solution, Excel is
supposed to return #N/A error value.

Bernie Deitrick

why does =GAMMAINV(0,5;389;1) return #NUM! ?
 
zimmerp,

alpha is too high - probably just not well documented...

HTH,
Bernie
MS Excel MVP


"zimmerp" wrote in message
...
why does =GAMMAINV(0,5;389;1) return #NUM! ? This function is supposed to
return num only when parametres are less than or equal 0. Excel solves it
numerically, but in case it doesn't find a numeric solution, Excel is
supposed to return #N/A error value.




[email protected]

why does =GAMMAINV(0,5;389;1) return #NUM! ?
 

zimmerp wrote:
why does =GAMMAINV(0,5;389;1) return #NUM! ? This function is supposed to
return num only when parametres are less than or equal 0. Excel solves it
numerically, but in case it doesn't find a numeric solution, Excel is
supposed to return #N/A error value.


Excel can evaluate GAMMADIST(x,389,1) for 0<= x <= 6E+153. Outside of
that range it returns #NUM! So my guess is that during its repeated
attempts to solve the equation GAMMADIST(x,389,1) = 0.5, it comes up
with an estimate outside this region.

A similar example is =GAMMADIST(1E-290,4.4,1E-190,FALSE) where it
returns #DIV/0! Again the most plausible explanation is that EXCEL has
problems with intermediate calculations.

However, only someone with access to the code in Excel could really
tell you what the problem is.


Ian Smith


Jerry W. Lewis

why does =GAMMAINV(0,5;389;1) return #NUM! ?
 
If what you really want is a reliable inverse gamma function, instead of
why Excel's isn't very reliable, then download Ian's probability library

http://members.aol.com/iandjmsmith/Examples.xls

Jerry

wrote:

zimmerp wrote:

why does =GAMMAINV(0,5;389;1) return #NUM! ? This function is supposed to
return num only when parametres are less than or equal 0. Excel solves it
numerically, but in case it doesn't find a numeric solution, Excel is
supposed to return #N/A error value.


Excel can evaluate GAMMADIST(x,389,1) for 0<= x <= 6E+153. Outside of
that range it returns #NUM! So my guess is that during its repeated
attempts to solve the equation GAMMADIST(x,389,1) = 0.5, it comes up
with an estimate outside this region.

A similar example is =GAMMADIST(1E-290,4.4,1E-190,FALSE) where it
returns #DIV/0! Again the most plausible explanation is that EXCEL has
problems with intermediate calculations.

However, only someone with access to the code in Excel could really
tell you what the problem is.


Ian Smith




All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com