Eval: Evaluate a yacas expression.

Description Usage Arguments Examples

View source: R/yacas.R

Description

Evaluate a yacas expression.

Usage

1
2
3
4
## S3 method for class 'yacas'
Eval(x, env = parent.frame(), ...)
## S3 method for class 'Sym'
Eval(x, env = parent.frame(), ...)

Arguments

x

Object to be evaluated.

env

Environment or list in which to perform evaluation.

...

Not currently used.

Examples

1
2
3
4
5
6
7
8
## Not run: 
Eval(yacas(expression(x*x)), list(x=2))

# same
x <- 2
Eval(yacas(expression(x*x)))

## End(Not run)

Example output

[1] 4
Warning messages:
1: In structure(x$children, class = "XMLNodeList") :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
2: In structure(x$children, class = "XMLNodeList") :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
3: In structure(x$children, class = "XMLNodeList") :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
[1] 4
Warning messages:
1: In structure(x$children, class = "XMLNodeList") :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
2: In structure(x$children, class = "XMLNodeList") :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.
3: In structure(x$children, class = "XMLNodeList") :
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.

Ryacas documentation built on May 29, 2017, 2:49 p.m.