[R] The gamma function and infinity

Dietrich Trenkler Dietrich.Trenkler at uni-osnabrueck.de
Mon Dec 5 17:13:45 CET 2005


Florent Bresson schrieb:

>I have to calculate some formula like:
>
>gamma(x)/(gamma(x+y)
>
>and I observed that for relatively big values of x, R
>returns infinity and so cannot compute the formula. Is
>it possible to force  R to give the real value of
>gamma(x) instead of Inf ?
>
>thanks
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>  
>
Have a look at lgamma.

hth

D. Trenkler


-- 
Dietrich Trenkler c/o Universitaet Osnabrueck 
Rolandstr. 8; D-49069 Osnabrueck, Germany    
email: Dietrich.Trenkler at Uni-Osnabrueck.de




More information about the R-help mailing list