#3348: Coercion problem: creating vectors from a mix of python and symbolic
types
----------------------+-----------------------------------------------------
Reporter: dunfield | Owner: robertwb
Type: defect | Status: closed
Priority: major | Milestone: sage-duplicate/invalid/wontfix
Component: coercion | Resolution: invalid
Keywords: |
----------------------+-----------------------------------------------------
Changes (by mhansen):
* status: new => closed
* resolution: => invalid
* milestone: sage-4.0.1 => sage-duplicate/invalid/wontfix
Comment:
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
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3348#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---