Status: Started
Owner: [email protected]
CC: [email protected]
Labels: Type-Defect Priority-Medium Matrices NeedsReview
New issue 3488 by [email protected]: sqrt(A) with A a matrix
http://code.google.com/p/sympy/issues/detail?id=3488
from sympy import *
A = ImmutableMatrix(2, 2, [1, I, 0, 2])
sqrt(A)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy/functions/elementary/miscellaneous.py", line 108, in sqrt
return C.Pow(arg, S.Half)
File "sympy/core/cache.py", line 92, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File "sympy/core/power.py", line 99, in __new__
obj = b._eval_power(e)
File "sympy/matrices/matrices.py", line 2834, in __getattr__
"%s has no attribute %s." % (self.__class__.__name__, attr))
AttributeError: ImmutableMatrix has no attribute _eval_power.
A = MatrixSymbol("A", 2, 2)
sqrt(A)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy/functions/elementary/miscellaneous.py", line 108, in sqrt
return C.Pow(arg, S.Half)
File "sympy/core/cache.py", line 92, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File "sympy/core/power.py", line 99, in __new__
obj = b._eval_power(e)
AttributeError: 'MatrixSymbol' object has no attribute '_eval_power'
I started this at https://github.com/sympy/sympy/pull/1627
--
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.