Am 07.05.2015 um 22:29 schrieb Raymond Gong:
Hi Joachim,

Thanks a lot for your nice response.  Actually I am doing this, I just
replied to Ondrej's message on this, but I didn't run Jython testing
against sympy, I even don't know how to do it,
could you provide some more information or link on this?

My approach to installing Jython (no doubt biased by my other Python workflows) would be (all done from the shell):
- Use pythonz to download Jython
- Use virtualenv to install it into a project directory
  (so the pythonz download stays unaltered for future experiments)
- Use virtualenv to activate the Jython install
- cd to the sympy directory and do the normal bin/isympy.

This should install Jython and give you a first smoke test whether SymPy is even able to start under Jython. If it doesn't, report the error messages in whatever the bug tracker has for Jython and try some other approach (unless the messages indicate very easily solved issues: the SymPy project may consider officially supporting Jython if it turns out to be little work to keep it that way).

Now if isympy can start, Ctrl-D out of isympy and try bin/test.
If that reports no errors, or errors only for modules that don't interest you anyway, Jython is a viable path. (Oh. If your project needs to remain executable in the future, you'll also want that the SymPy project officially supports Jython.)

Once this all is done, I'd start exploring how to call into Python code from Java. Calling SymPy functions should be easy: They are all available in the "sympy" module. I.e. if you see "exp()" somewhere, it will be available as "sympy.exp()". You do not need to worry which module defines a specific function; actually, those that do not make it into the "sympy" module are not part of SymPy's public API and might go away in future SymPy releases (you can still use them if you're willing to take the risk, Python allows you to override all access restrictions at will).

--
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/554BD644.8050806%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to