Hi Ondrej,

Thanks a lot for kind response.  I am trying to use sympy via Jython from 
java.  I am facing a few challenges:

1.  Although I can call python (*.py, not sympy yet) functions from Jython, 
but I could not find any example or information how to load sympy lib into 
my java project.
2.  From Sympy documentation, there are many examples to use sympi in sympy 
live, but I didn't find any information yet regarding sympy API, for 
example, if I need
     do calculation for symbolic expression:  exp1=x**2+y**2, exp2=x**2, 
the symbolic calculation: exp1-exp2 = y**2,
     how can I know which modules/functions of sympy should be used to do 
this? Obviously, going through codes is not best way to do this.
3.  If we call sympy from java, we need a way to passed in / return values 
between sympy and java, how to do that? In Jython, we can set values, but 
how to set variables?
     I mean for the symbolic expression, sympy need to define variable 
first (please correct me if I am wrong), how to do this from java/Jython 
and passed into sympy?

I started to evaluate sympy and started to touch it two days ago and I have 
no experience to use python, maybe I need to spend more time on this. But 
not sure if or not the solution is workable on high level.

Thanks again and looking forward to any further help.  

Raymond



On Thursday, May 7, 2015 at 11:43:12 AM UTC-7, Ondřej Čertík wrote:
>
> Hi Raymond, 
>
> On Thu, May 7, 2015 at 12:10 PM, Raymond Gong <[email protected] 
> <javascript:>> wrote: 
> > Hey, this is the first time for me to be here, tried to search any 
> examples 
> > or comments or whatever information on usage of sympy in java project. 
> > 
> > Wonderying, anybody ever worked on the similar project? Any example can 
> > share?  It seems all examples in the documentation is using sympy live, 
> > 
> > Any help would be appreciated. 
>
> Is using the Java C interface an option for you? If so, you can then 
> call Python from Java using it, and thus SymPy. Or one can wrap our 
> C++ core SymEngine (https://github.com/sympy/symengine) directly in 
> Java, but SymEngine has only the basic features, compared to SymPy. If 
> you are interested in this, we can see how to get this working. 
>
> 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/54500bf7-9a4e-423b-8315-282a2d582e87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to