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: erinm.hodg...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to