intervals | R Documentation |
For each lazy number in a lazyVector
object or a
lazyMatrix
object, this function computes an interval containing
this lazy number.
intervals(x)
x |
a |
A named list ("inf"
and "sup"
) containing: two numeric
vectors if x
is a lazy vector, two numeric matrices if x
is
a lazy matrix.
library(lazyNumbers) x <- lazynb(22) / lazynb(7) itrv <- intervals(x) print(itrv, digits = 17L) x_dbl <- as.double(x) itrv$inf <= x_dbl & x_dbl <= itrv$sup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.