The R Project SVN R

Rev

Rev 25118 | Rev 34801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25118 Rev 27625
Line 39... Line 39...
39
  \code{is.nan} tests if a numeric value is \code{NaN}.  Do not test
39
  \code{is.nan} tests if a numeric value is \code{NaN}.  Do not test
40
  equality to \code{NaN}, or even use \code{\link{identical}},
40
  equality to \code{NaN}, or even use \code{\link{identical}},
41
  since systems typically have many different NaN values.
41
  since systems typically have many different NaN values.
42
  In most ports of \R one of these is used for the numeric missing
42
  In most ports of \R one of these is used for the numeric missing
43
  value \code{NA}.  It is generic: you can write methods to handle
43
  value \code{NA}.  It is generic: you can write methods to handle
44
  of specific classes of objects, see \link{InternalMethods}.
44
  specific classes of objects, see \link{InternalMethods}.
45
}
45
}
46
\note{
46
\note{
47
  In \R, basically all mathematical functions (including basic
47
  In \R, basically all mathematical functions (including basic
48
  \code{\link{Arithmetic}}), are supposed to work properly with
48
  \code{\link{Arithmetic}}), are supposed to work properly with
49
  \code{+/- Inf} and \code{NaN} as input or output.
49
  \code{+/- Inf} and \code{NaN} as input or output.
Line 58... Line 58...
58
}
58
}
59
\references{
59
\references{
60
%%- better ones ?!??
60
%%- better ones ?!??
61
    ANSI/IEEE 754 Floating-Point Standard.
61
    ANSI/IEEE 754 Floating-Point Standard.
62
 
62
 
-
 
63
 This link does not work any more (2003/12)
63
    Currently (6/2002), Bill Metzenthen's \email{billm@suburbia.net} tutorial
64
    Currently (6/2002), Bill Metzenthen's \email{billm@suburbia.net} tutorial
64
    and examples at \cr \url{http://www.suburbia.net/~billm/}
65
    and examples at \cr \url{http://www.suburbia.net/~billm/}
65
}
66
}
66
\examples{
67
\examples{
67
pi / 0 ## = Inf a non-zero number divided by zero creates infinity
68
pi / 0 ## = Inf a non-zero number divided by zero creates infinity