AST Manipulation and Common Subexpression Elimination

John J. Lee jjl at pobox.com
Sun Oct 19 19:49:31 EDT 2003


Robert Kern <kern at ugcs.caltech.edu> writes:
[...]
> 3. Is there any example code around showing how to output Python code from the
> AST? I can probably figure out, then, how to do the same for
> Maxima/Yacas/Maple/Mathematica as I'm sure I'm going to want to slap these
> formulae into a CAS and play around with them.
> 
> 4. And as a corollary to that last thought: are there any automatic
> differentiation tools for Python that operate directly on the AST and generate
> new code?
[...]

Why not just use Maple / Mathematica / whatever?

Why does Python have to be involved?


John




More information about the Python-list mailing list