Compactly Show STRucture of Rmpfr Number Object
The str
method for objects of class
mpfr
produces a bit more useful output than
the default method str.default
.
## S3 method for class 'mpfr' str(object, nest.lev, internal = FALSE, give.head = TRUE, digits.d = 12, vec.len = NULL, drop0trailing=TRUE, width = getOption("width"), ...)
object |
an object of class |
nest.lev |
for |
internal |
logical indicating if the low-level internal structure
should be shown; if true (not by default), uses |
give.head |
logical indicating if the “header” should be printed. |
digits.d |
the number of digits to be used, will be passed
|
vec.len |
the number of elements that will be shown. The
default depends on the precision of |
drop0trailing |
logical, passed to |
width |
the (approximately) desired width of output, see
|
... |
further arguments, passed to |
.mpfr2list()
puts the internal structure into a
list
, and its help page documents many more (low level) utilities.
(x <- c(Const("pi", 64), mpfr(-2:2, 64))) str(x) str(list(pi = pi, x.mpfr = x)) str(x ^ 1000) str(x ^ -1e4, digits=NULL) # full precision str(x, internal = TRUE) # internal low-level (for experts) uu <- Const("pi", 16)# unaccurate str(uu) # very similar to just 'uu'
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.