[R] R: over/under flow

From: William H. Asquith <wasquith_at_austin.rr.com>
Date: Tue 21 Jun 2005 - 09:41:04 EST


I am porting some FORTRAN to R in which an Inf triggers an if(). The trigger is infinite on exp(). What is the canonical R style of determining OVER when exp(OVER)== Inf? The code structure that I am porting is best left intact--so I need to query R somehow to the value of OFL that causes exp(OFL) to equal Inf.

On my system,
exp(710) is first to equal Inf.

wa



R-help@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 Received on Tue Jun 21 09:45:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:54 EST