powered by
Brobdingnagian and Glubbdubdribian infinity
# S4 method for brob is.infinite(x) # S4 method for glub is.infinite(x) # S4 method for brob is.finite(x) # S4 method for glub is.finite(x)
vector of class brob or glub
Robin K. S. Hankin
For a Brobdingnagian number, is.infinite() returns TRUE if the exponent is infinite.
is.infinite()
TRUE
A Glubbdubdribian number is infinite if either the real or imaginary component is infinite.
Function is.finite() is simply the logical negation of is.infinite().
is.finite()
is.infinite(brob(c(1,4,Inf))) is.infinite(glub(3,Inf)) is.infinite(glub(Inf,3)) is.infinite(exp(1e300)) is.infinite(brob(1e300)) # (Brobdingnagian infinity is bigger than regular infinity ;-)
Run the code above in your browser using DataLab