#9769: Coercon problems to symbolic ring
-------------------------+--------------------------------------------------
Reporter: maldun | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone:
Component: symbolics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
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
----
sage: x = PolynomialRing(QQ, 'x').gen()
sage: sin(x)
sin(x)
sage: x = PolynomialRing(RR, 'x').gen()
sage: sin(x)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
.....
TypeError: cannot coerce arguments: __call__() takes exactly 1 positional
argument (0 given)
sage: x = PolynomialRing(CC, 'x').gen()
sage: sin(x)
sin(x)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9769>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.