S("(x + y)^2")
S(~ (x + y)^2)
S(NaN)
S(42)
Basic(42)
as(42, "Basic")
pi <- Constant("pi")
evalf(pi)
if (symengine_have_component("mpfr"))
evalf(pi, 300)
Real(42)
if (symengine_have_component("mpfr"))
Real(42, prec = 140)
Run the code above in your browser using DataLab