Am 08.05.2015 um 18:57 schrieb Raymond Gong:
from Java side, we are hoping just pass in the symbolic math expression
such as polynomials or whatever K12 math expression, the sympy will return
the result that java can consume. From java side, the expression is a java
string
we can construct the expression based on java string, but the key issue is
what kind of
format that Sympy can consume. I cannot find this kind of information from
the tutorial
and documentation of sympy.
That's essentially just the class of the Python object, i.e. Basic,
Expr, Add, Mul, Pow, whatever.
I don't know how to construct, write, or read these from the Java side;
I'd expect that information to live in the Jython docs if you can use
Jython.
If Jython does not work, you can use some string representation.
Either normal expressions, or via JSON - there's a json module in the
Python standard library, from the Java side, you'd use one of the
various available JSON libraries.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/554CEF36.8050303%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.