The easiest way to serialize and deserialize SymPy expressions is using str() and sympify().
Aaron Meurer On Thu, May 7, 2015 at 5:41 PM, Raymond Gong <[email protected]> wrote: > Thanks OnDrej, I have another question is, in SymPy live, I can type in the > expression like: > > # a.py > from sympy import symbols > x, y = symbols("x y") > e = x+y > f = x-y > print e-f > > The thing is how I can pass in the expression such as x+y (or whatever math > expression) from java to Sympy (via Jython)? do you have any example? > Thanks. > > Raymond > > > On Thursday, May 7, 2015 at 3:32:59 PM UTC-7, Ondřej Čertík wrote: >> >> Hi Raymond, >> >> On Thu, May 7, 2015 at 3:31 PM, Raymond Gong <[email protected]> wrote: >> > Hi Aaron, >> > >> > Thanks a lot for your information. I ever saw your message posted in >> > google >> > site regarding this, >> > but the message are posted some time ago (around January?), >> > wondering, where I can find more information on this? Any special web >> > sites >> > on this topic? >> > any open source project to make sympy workable on Jython or java? I >> > could >> > miss some points, >> > but I could not find it. Thanks again for your nice response. >> >> Long time ago (perhaps 7 years ago), I sat down with a Jython >> developer at a Google Mentor Summit to get SymPy working in Jython. I >> think there were definitely times when SymPy sort of worked, meaning >> that it imported and you could do a simple calculation, and most (but >> not all) tests running. But it was never working on a robust enough >> level like PyPy, that we could run regular tests on Travis for this, >> so we don't know what the current status is, unless you try it. >> >> Ondrej > > -- > 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/45ec6492-cb0c-4f61-8302-4269133bdcdd%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- 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/CAKgW%3D6K8wK6V_KpzBJtfbe1FtdqX7GSWGoHkAsgZcx8yGPaRcw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
