Sym: Sym

Description Usage Arguments Details Value Note Examples

View source: R/Sym.R

Description

The Symbol interface to mpr.

Usage

1

Arguments

...

Character strings or objects that can be coerced to a character strings.

Details

An object of class "Sym" is internally a mpr 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 mpr-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, Ver and " all of which have the same meaning as the corresponding mpr commands. Try vignette("Sym") for many examples.

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.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
x <- Sym("x")
x*x
Integrate(x*x, x)
Sym("

acos(Sym("1/2"))

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

## End(Not run)

ggrothendieck/rmathpiper documentation built on May 17, 2019, 4:17 a.m.