fast_float(p) trashes the worksheet namespace when p is a polynomial
with 60,000 terms. I tried to pin down the minimum number of terms
that produce this bug, arriving at 56093, but the bug was not
consistent. (Sage 4.3.4 under Linux, Sage 4.4.4 under OS X 10.6.4)
sage: Nterms = 60000
sage: RQ = PolynomialRing(QQ, 1, 'x', sparse=True)
RQ.inject_variables(); vars = RQ.gens(); var=vars[0]
Defining x
sage: p=0;
for k in range(Nterms):
p += var^k;
p in RQ
True
sage: len(p.coefficients())
60000
sage: g=fast_float(p)
sage: Nterms
Traceback (click to the left of this block for traceback)
...
NameError: name 'Nterms' is not defined
--
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-support
URL: http://www.sagemath.org