Hi All, I am trying to get the Real root as shown below and keep getting a NameError. Any suggestions?
I am using python 2.6.2 and sympy 0.6.5. The solution should be: a=0.31883011387319 >>> from sympy import Symbol, nsolve >>> a=Symbol('a') >>> f1=1/(0.001+a)**3-6/(0.9-a)**3 >>> print nsolve(f1,a,0.3) Traceback (most recent call last): File "<stdin>", line 1, in <module> 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 Thanks. Regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---