Evaluate a yacas expression.

Eval(x, env = parent.frame(), ...)

Arguments

x

Object to be evaluated.

env

Environment or list in which to perform evaluation.

...

Not currently used.

Examples


Eval(yacas(expression(x*x)), list(x=2))
#> [1] 4

# same
x <- 2
Eval(yacas(expression(x*x)))
#> [1] 4