[SciPy-user] symbolic math & scipy (& maxima)...
gael.varoquaux at normalesup.org
Mon Aug 7 13:02:16 CDT 2006
On Mon, Aug 07, 2006 at 07:59:12PM +0200, fred wrote:
> Gael Varoquaux a écrit :
> > On Mon, Aug 07, 2006 at 04:32:17PM +0200, Xavier Gnata wrote:
> >>I perform the same kind of job with mathematica and python :
> >>1) Compute what you want using mathematica/maxima/...
> >>2) export the result as text in a syntax as close as possible as python
> >>once (mathematica can export to C code for instance)
> >>3) Perform tiny modification on the resulting strings so that it
> >>corresponds with python syntax.
> >>4) use exec() and that's it.
> > Better still: use weave.inline, and pure c code.
> I read a little about weave.inline.
> But I don't understand the use of "pure c code".
I was talking about Xavier's idea: do step 1 and 2 as he says, and
use weave.inline to use the c code generated by mathematica.
More information about the SciPy-user