Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1567 by anartz.lists: nsolve crashes
http://code.google.com/p/sympy/issues/detail?id=1567
Hi all,
A Real solution to the equation below is a float near 0.32, but nsolve
flags the following error.
Thanks.
Regards, anartz
-----------------------
Code
-----------------------
from sympy import Symbol, nsolve
a=Symbol('a')
print
nsolve(2861.65696309865/(0.00714285714285714+a)**3-20106.1929829747/(0.946904761904762-a)**3,a,0.3)
-----------------------
Error message
-----------------------
Traceback (most recent call last):
File "test.py", line 5, in <module>
print
nsolve(2861.65696309865/(0.00714285714285714+a)**3-20106.1929829747/(0.946904761904762-a)**3,a,0.3)
File "/usr/lib/python2.6/site-packages/sympy/solvers/solvers.py", line
929, in nsolve
return findroot(f, x0, **kwargs)
File "/usr/lib/python2.6/site-packages/sympy/mpmath/mptypes.py", line 68,
in g
return f(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/sympy/mpmath/optimization.py",
line 914, in findroot
fx = f(*x0)
File "<string>", line 1, in <lambda>
NameError: global name 'conjugate' is not defined
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
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-issues?hl=en
-~----------~----~----~----~------~----~------~--~---