Im using the git version and having weird solver behavior
>>> import sympy
>>> sympy.__version__
'0.7.1-git'
W,H,D,p=symbols('W H D p')
a,b,c,d=3.85, 68E-06, 2.34, -0.017
eqn=-W+(a+b*H+pow(D,c)+d*pow(p,c))
Solving for 'W' is fine:
>>> solve(eqn,W)
[D**(117/50) + 6.8e-5*H - 0.017*p**(117/50) + 3.85]
Solving for 'H' is fine as well:
>>> solve(eqn,H)
[-14705.8823529412*D**(117/50) + 14705.8823529412*W + 250.0*p**(117/50) -
56617.6470588235]
However solving for 'p' or 'D' both basically cause the python shell to
hang unitil I force the shell to quit. No error message, and I can hear the
CPU ramp up
>>> solve(eqn,D)
I'm on OSX and have tried the same procedure using Sympy online interpreter
which seems to be at 0.7.1, and on two linux (debian wheezy/mint) machines
using the aptitude versions of sympy and it works fine. Seems like it must
be something wrong with pow() in the git version? or something about OSX?
My local python is Enthought Python Distribution
Thanks!
Peter
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sympy/-/ipxQRqpy3dAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.