On Wed, Sep 22, 2010 at 3:43 PM, Aaron S. Meurer <[email protected]> wrote:
> SymPy has a LaTeX printer, but it sounds like a LaTeX to SymPy parser would
> be a useful tool for this.
>
> Just an idea.
I think that the question is which form to use to represent the
equations. Latex or sympy. I chose latex, because it allows me to
precisely format it the way I want.
I wonder if any latex equation can be (in principle) converted to
sympy using an algorithm. I doubt it --- it seems to me that's the
wrong approach. Maybe the right approach is to improve sympy to be
able to represent any equation that I want (even if it can't do
anything with it yet), and then just use sympy, and write a Sphinx
macro, instead of the current way:
.. math:
sin(x) = x - {x^3\over6) + O(x^5)
do:
.. sympy:
Eq(sin(x), x - x**3/6 + O(x**6))
And then use git submodule to checkout the exact revision of sympy
that is known to work.
Thanks, I think that this must be the way --- because then I can
imagine writing a Sphinx extension, that will allow me to actually
manipulate the equation using sympy once it is on the web, or do other
things with it, because it is in a sense live object (unlike a latex
expression, which is pretty much dead).
Ondrej
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.