-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Description
There seems to be some problems with the coercion of some datatypes to the symbolic ring:
sage: cos(MatrixSpace(ZZ, 2)([1, 2, -4, 7]))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
.......
TypeError: cannot coerce arguments: no canonical coercion from Full MatrixSpace of 2 by 2 dense matrices over Integer Ring to Symbolic Ring
sage: import numpy
sage: vec = numpy.array([1,2])
sage: sin(vec)
array([ 0.84147098, 0.90929743])
sage: sin(vec[0])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
....
TypeError: cannot coerce arguments: no canonical coercion from <type 'numpy.int64'> to Symbolic Ring
Component: symbolics
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/9769