Florent Bresson <[EMAIL PROTECTED]> writes: > 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 ?
No, it is overflowing the floating point representation. How about using lgamma? That's basically what it is for. -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
