#13556: vector(RR, QQ) stalls
----------------------------------+-----------------------------------------
Reporter: eviatarbach | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.5
Component: linear algebra | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by fwclarke):
The reason this takes for ever is that Sage is trying to create the
infinite vector
{{{
(0.000000000000000, 1.00000000000000, -1.00000000000000,
0.500000000000000, -0.500000000000000, 2.00000000000000,
-2.00000000000000, 0.333333333333333, -0.333333333333333,
3.00000000000000, -3.00000000000000, 0.666666666666667,
-0.666666666666667, 1.50000000000000, ... )
}}}
whose entries are an enumeration of the rationals. It's line 504 of
`sage/structure/sequence.py` (sage-5.3):
{{{
x = [universe(t) for t in x]
}}}
in which `universe` is `RR` and `x` is `QQ`, that's hanging.
An initial segment of this vector can created as
{{{
sage: vector(RR, QQ.range_by_height(3))
(0.000000000000000, 1.00000000000000, -1.00000000000000,
0.500000000000000, -0.500000000000000, 2.00000000000000,
-2.00000000000000)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13556#comment:1>
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.