Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium Matrices

New issue 2244 by asmeurer: N(Matrix) does not work (but Matrix.evalf() does)
http://code.google.com/p/sympy/issues/detail?id=2244

In [14]: A.evalf()
Out[14]:
⎡      -0.25        -0.433012701892219⎤
⎢                                     ⎥
⎣0.433012701892219        -0.25       ⎦

In [15]: N(A)
---------------------------------------------------------------------------
SympifyError                              Traceback (most recent call last)

/Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython console> in <module>()

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/evalf.pyc in N(x, n, **options)
   1119     >>> N(Sum(1/k**k, (k, 1, oo)), 4)
   1120     1.291
   1121
   1122     """
-> 1123     return sympify(x).evalf(n, **options)

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/sympify.pyc in sympify(a, locals, convert_xor, strict)
     78
     79     try:
---> 80         return converter[cls](a)
     81     except KeyError:
     82         for superclass in getmro(cls):

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/matrices/matrices.pyc in _matrix_sympify(matrix)
   1846 # Add sympify converters

   1847 def _matrix_sympify(matrix):
-> 1848     raise SympifyError('Matrix cannot be sympified')
   1849 converter[Matrix] = _matrix_sympify
   1850 del _matrix_sympify

SympifyError: SympifyError: 'Matrix cannot be sympified'

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

Reply via email to