[sympy] Re: Using sympty in jhepwork

2009-07-06 Thread Ondrej Certik
On Sun, Jul 5, 2009 at 6:39 PM, Sergei Chekanov wrote: > Ok, thanks. This seems works well. >  The only thing which had to be change is to replace "**" (power) >  with the usual "^" Nice. If something else doesn't work, let us know. Ondrej --~--~-~--~~~---~--~~ Y

[sympy] Re: Using sympty in jhepwork

2009-07-05 Thread Sergei Chekanov
Ok, thanks. This seems works well. The only thing which had to be change is to replace "**" (power) with the usual "^" The code below works well in jhepwork (shows the function and its differential on the same plot) * from java.awt i

[sympy] Re: Using sympty in jhepwork

2009-07-05 Thread Aaron S. Meurer
Hi, I'm not completely clear on what you are doing, as I don't use jython, but couldn't you just use str(), as in >>> a = str(diff(2*exp(-x*x/50)+sin(pi*x)/x, x)) >>> type(a) >>> F1D(a) # probably works now Also, you can use sympify() or just S() to convert from a string to a SymPy expre