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
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
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