powered by
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.
as.double()
evalf(expr, bits = 53L, complex = FALSE)
Same type as expr argument.
expr
A SymEngine object.
The precision.
Whether or not to be evaluated as a complex number.
expr <- Constant("pi") evalf(expr) as.double(evalf(expr)) == pi
Run the code above in your browser using DataLab