rSymPy (version 0.2-1.2)

Sym: sympy variables

Description

Create and manipulate sympy variables.

Usage

Sym(..., retclass = c("Sym", "character"))

Arguments

Variable name as a string by which sympy should identify this varible

retclass

Class of object to be returned.

Value

As in retclass.

Details

An object of class "Sym" is internally a sympy character string. One can combine such objects using the Math and Ops R operators (see help(Math) and help(Ops) for a list). Also the following are supported: as.character.Sym, as.expression.Sym, Ops.Sym, Math.Sym, print.Sym, deriv.Sym, Limit, Var.Sym, solve.Sym, Integrate, t.Sym, List, Matrix, Var, Zero, Zeros and Eye.

See Also

sympy

Examples

Run this code
# NOT RUN {
x <- Var("x")
x+x
# }

Run the code above in your browser using DataLab