There have been many issues, some of which have been fixed, and some which maybe weren't. See https://github.com/sympy/sympy/issues/4332. I'd actually like to have someone try it with the latest Jython and SymPy master to see what the error is.
In the past, the issue has been that Jython has some issues with some of the advanced Python features we use in SymPy. For example, in the past somehow our class/metaclass/__slots__ configuration didn't work. I personally don't think projects like Jython or IronPython are good ideas. If you need to use a Python library from another language it's better to try to interface with Python than to rewrite all of Python in that language. But to be clear, we would like for SymPy to support them, assuming the changes necessary aren't too drastic. Aaron Meurer On Thu, Jan 15, 2015 at 7:43 PM, Jason Moore <[email protected]> wrote: > I'm curious why SymPy doesn't run in Jython. The core stuff is all pure > Python. What prevents it from working with Jython? > > > Jason > moorepants.info > +01 530-601-9791 > > On Thu, Jan 15, 2015 at 5:38 PM, yueming liu <[email protected]> > wrote: > >> Just finished a prototype of the project SymJava ( >> https://github.com/yuemingl/SymJava ) which is similar to sympy. >> Actually, I borrowed some ideas from sympy. Thanks all the sympy >> contributors. >> >> The reason to develop this library is that sympy can NOT run on JPython >> :(. I have another Java library FuturEye for numerical computation to solve >> PDE constrained inverse problems. Symbolic computation is important for >> this library since it will reduce a huge amount of time with automatic >> functional derivative computation. >> >> Here is a piece of example code of SymJava: >> >> Expr expr = x + y * z; >> >> System.out.println(expr); //x + y*z >> >> Expr expr2 = expr.subs(x, y*y); >> >> System.out.println(expr2); //y^2 + y*z >> >> System.out.println(expr2.diff(y)); //2*y + z >> >> Func f = new Func("f1", expr2.diff(y)); >> >> System.out.println(f); //f1(y,z) >> >> BytecodeFunc func = f.toBytecodeFunc(); //Similar to the lambdify in sympy >> >> System.out.println(func.apply(1,2)); //4.0 >> >> There are two important features: >> >> 1. Operator Overloading is implemented by using >> https://github.com/amelentev/java-oo >> >> 2. Lambdify in sympy is implemented in SymJava by using BCEL library >> >> Let me know if any one interested in this? Just send me an email: >> nkliuyuemingATgmail.com >> >> >> -- >> 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/8262f07b-a540-4b71-8e19-303da5141ead%40googlegroups.com >> <https://groups.google.com/d/msgid/sympy/8262f07b-a540-4b71-8e19-303da5141ead%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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/CAP7f1Ag1Gst2ggyVMG7iON_60B49MoDMXY6gu0McCp%3D_3PnGkw%40mail.gmail.com > <https://groups.google.com/d/msgid/sympy/CAP7f1Ag1Gst2ggyVMG7iON_60B49MoDMXY6gu0McCp%3D_3PnGkw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > 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%3D6JQ1Kq1yG_wYOXUE-0H%2BLf-HgVBuuW71DN2jTxF_6SD5w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
