Dear R Users:
I would like to use symbolic integration from rSymPy and pass in the actual
function.
So I have
> sympy("x=Symbol('x')")
and if I use
> sympy("integrate(cos(x),x)")
it works fine.
But what I want to do is something like
> y <- "cos(x)"
> sympy("integrate(y,x)")
"cos(x)*x"
Has anyone run into this, please?
Any suggestions would be much appreciated.
Thanks,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [email protected]
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.