[R] integration in symbols
Gabor Grothendieck
ggrothendieck at myway.com
Mon Mar 22 08:54:37 CET 2004
The free yacas symbolic math package can output in C form and that is
often the same as R. For example,
C:\usr\yacas>yacas
[... deleted startup message ...]
In> ToFile("out") WriteString(CForm(Integrate(x)1/x)); True;
Out> True;
In> quit
Quitting...
C:\usr\yacas>type out
log(x)
C:\usr\yacas>
... in R ...
> f <- function(x) NULL
> body(f) <- parse("/usr/yacas/out")
> f
function (x)
log(x)
>
With some effort you could probably make it even slicker.
One method would be via the yacas dll.
---
Date: Mon, 22 Mar 2004 01:18:07 -0600
From: Erin Hodgess <hodgess at gator.uhd.edu>
To: <r-help at stat.math.ethz.ch>
Subject: [R] integration in symbols
Dear R People:
Are there any functions for integration in R, please?
Not integrate....That return a numeric value.
I mean symbolic integration...the moral equivalent
of D and deriv, please.
Thanks in advance!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
More information about the R-help
mailing list