Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium

New issue 1603 by smichr: mpmath doesn't directly accept sympy numbers
http://code.google.com/p/sympy/issues/detail?id=1603

I wonder if mpmath should more easily accept sympy numbers. I don't use it
that often so I'm unsure of the current philosophy:

>>> mpmath.polyroots((1,2))
[mpf('-2.0')]

>>> mpmath.polyroots((S(1),S(2)))
Traceback (most recent call last):
   File "<interactive input>", line 1, in <module>
   File "C:\Documents and Settings\chris\sympy\sympy\mpmath\calculus.py",
line 1519, in polyroots
     lead = mpmathify(coeffs[0])
   File "C:\Documents and Settings\chris\sympy\sympy\mpmath\mptypes.py",
line 363, in convert
     raise TypeError("cannot create mpf from " + repr(x))
TypeError: cannot create mpf from 1

/c

--
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 sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to