mpr: R/Mathpiper interface

Description Usage Arguments Details Value References Examples

View source: R/mpr.R

Description

Interface to the Mathpiper computer algebra system from R.

Usage

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

Arguments

x

A character string representing an R expression or a Sym object.

env

An environment.

...

Additional arguments.

Details

Supply a character string representing an R expression or a Sym object and it will be translated to Mathpiper's language, sent to Mathpiper. as.character.mpr can be used to convert a mpr class object to a character string.

Value

The return value is a "mpr" class object. This is a character string representing the resulting R expression with the indicated class.

References

http://sage.ssu.portsmouth.oh.us/mathpiper/, https://mathrider.dev.java.net/, http://yacas.sourceforge.net

Examples

1
2
3
4
5
6
## Not run: 
x <- Sym("x")
x*x
Integrate(x*x, x)

## End(Not run)

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