Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Sym

Sym


Description

The Symbol interface to yacas.

Usage

Sym(...) 
Expr(x)

Arguments

...

An R character string or object that can be coerced to a character string.

x

An R expression.

Details

An object of class "Sym" is internally a yacas character string. An object of class "Expr" is internally an R expression. One can combine such objects using the Math and Ops R operators (see help(Math) and help(Ops) for a list). Also there are methods for a number of R generics: as.character.Sym, as.expression.Sym, determinant.Sym, deriv.Sym and print.Sym and yacas-oriented functions: Clear, Conjugate, Expand, Factor, Factorial, I, Identity, Infinity, Integrate, Inverse, InverseTaylor, Limit, List, N, Newton, Pi, Precision, PrettyForm, PrettyPrinter, Set, Simplify, Solve, Subst, Taylor, TeXForm, Transpose, Ver and "%Where%" all of which have the same meaning as the corresponding yacas commands. Try vignette("Rycas-Sym") for many examples.

Get Sym objects with getSyms().

Value

Sym returns a "Sym" object and Expr returns an "Expr" object.

Note

Currently the only Expr methods implemented are as.character.Expr, deriv.Expr, Math.Expr, Ops.Expr and print.Expr.

See Also

Examples

x <- Sym("x")
x*x
Integrate(x*x, x)
Sym("%") %Where% list(x = 10)

acos(Sym("1/2"))

y <- Exprq(x)
y*y
deriv(y*y, y)
Exprq(acos(1/2))

Ryacas0

Legacy 'Ryacas' (Interface to 'Yacas' Computer Algebra System)

v0.4.3
GPL-2
Authors
Mikkel Meyer Andersen [aut, cre, cph], Rob Goedman [aut, cph], Gabor Grothendieck [aut, cph], Søren Højsgaard [aut, cph], Grzegorz Mazur [aut, cph], Ayal Pinkus [aut, cph], Nemanja Trifunovic [cph] (UTF-8 part of yacas (src/yacas/include/yacas/utf8*))
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.