rMathpiper allows one to use the Mathpiper computer algebra package (a fork of the java version of yacas) from within R. It can be used for symbolic mathematics, exact arithmetic, ASCII pretty printing and R to TeX conversions.
Users employ the
Sym
function to produce symbolic objects of S3
class "Sym"
. Internally these objects
are character strings containing statements in the
Mathpiper/yacas language. The print.Sym
method calls Mathpiper to do
processing and displays
the result. Alternately one may use the mpr
function to process
a Sym
object or an R expression represented as a character string.
The first time Mathpiper is used it will automatically be initiated so the user normally does not have to separately start Mathpiper.
Manipulating the Sym
objects is done using
these functions and Sym
methods:
"%Where%"
,
Conjugate
,
determinant
,
deriv
,
determinant
,
Expand
,
Factor
,
Factorial
,
Identity
,
Integrate
,
Inverse
,
InverseTaylor
,
Limit
,
List
,
Ops
,
Math
,
N
,
Newton
,
print.Sym
,
Set
,
Simplify
,
Solve
,
Subst
,
and Taylor
.
Also
Clear
,
Precision
,
PrettyForm
, PrettyPrinter
, TeXForm
and Ver
are
available.
The various functions listed above
correspond to Mathpiper functions of the same or nearly the same
name. mprRun("help")
, which is part of the direct interface described
in the next section, can be used to access the Mathpiper help to learn
more about these.
Beneath the interface discussed above is
a lower level interface to Mathpiper that consists of mprStart
and mpr0
. The former starts Mathpiper and the latter takes a character
string argument which represents a
Mathpiper statement, sends it to Mathpiper for
processing and returns the result. mprStart
and mpr0
are not
normally accessed by the user.
Aside from the user level and lower level interfaces discussed above the
mprRun
function is available to
launch Mathpiper directly without further involvement of R.
Color gui, monochrome gui and text consoles are available. Issue any of
these: mprRun()
, mprRun("colorconsole")
or
mprRun("console")
commands. Also
Mathpiper help can be launched using mprRun("help")
. These commands
simply spawn a batch or shell session with the requisite java commands to
launch Mathpiper.
The following are sources of information on "rMathpiper"
. Not all of these are yet implemented:
DESCRIPTION file | library(help = rMathpiper) |
List of demo files | demo(package = "rMathpiper") |
Demo file | demo("rMathpiper") |
Demo | demo("PrettyPrinter") |
Demo | demo("Sym") |
List Vignettes | vignette(package = "rMathpiper") |
Vignette | vignette("rMathpiper") |
This File | package?rMathpiper |
Other Help files | ?mpr, ?Sym |
Mathpiper help | mprRun("help") |
News | RShowDoc("NEWS", package = "rMathpiper") |
Acknowledgements | RShowDoc("THANKS", package = "rMathpiper") |
Wish List | RShowDoc("WISHLIST", package = "rMathpiper") |
Home page | http://rMathpiper.googlecode.com |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.