powered by
For each lazy number in a lazyVector object or a lazyMatrix object, this function computes an interval containing this lazy number.
lazyVector
lazyMatrix
intervals(x)
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.
"inf"
"sup"
x
a lazyVector object or a lazyMatrix object
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
Run the code above in your browser using DataLab