You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: the order of the types here seems to have to be (float, int, symbolic ring) for this to occur. If one uses proper Sage types, the problem goes away:
This has been fixed in the switch to Pynac symbolics:
----------------------------------------------------------------------
| Sage Version 4.0.1.rc1, Release Date: 2009-06-04 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: sage: vector(eval("[0.78, 1, 1 + 2.38 * I]"))
(0.78, 1.0, 1.00000000000000 + 2.38000000000000*I)
sage: _.parent()
Vector space of dimension 3 over Symbolic Ring
sage: sage: vector([float(5.52), int(1), 1.3*x])
(5.52, 1.0, 1.30000000000000*x)
sage: _.parent()
Vector space of dimension 3 over Symbolic Ring
sage: vector(sage_eval("[0.78, 1, 1 + 2.38 * I]"))
(0.780000000000000, 1.00000000000000, 1.00000000000000 + 2.38000000000000*I)
sage: _.parent()
Vector space of dimension 3 over Symbolic Ring
In the following (isomorphic) cases, the first entry is floored
Note: the order of the types here seems to have to be (float, int, symbolic ring) for this to occur. If one uses proper Sage types, the problem goes away:
Component: coercion
Issue created by migration from https://trac.sagemath.org/ticket/3348
The text was updated successfully, but these errors were encountered: