evalf | R Documentation |
This function will evaluate a SymEngine object to its "numerical" form
with given precision. User may further use as.double()
to convert
to R value.
evalf(expr, bits = 53L, complex = FALSE)
expr |
A SymEngine object. |
bits |
The precision. |
complex |
Whether or not to be evaluated as a complex number. |
Same type as expr
argument.
expr <- Constant("pi") evalf(expr) as.double(evalf(expr)) == pi