Perhaps use lgamma? > lgamma(220) [1] 964.8206
Jonathan On Wed, Sep 29, 2010 at 3:22 PM, song song <rprojecth...@gmail.com> wrote: > for example, when I am calculating a posterior density, I need to calculate > gamma(75*3+5)=gamma(220) which is out of the bound of gamma function. what > shall I do for this condition> > > Thank you > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.