Opened 5 years ago

#17177 new defect

Latex function for sparse PolynomialRing is not sparsely implemented

Reported by: jsrn Owned by:
Priority: minor Milestone: sage-6.4
Component: algebra Keywords: sparse polynomial
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

When pretty-printing a sparse polynomial, the latex function seems to run in linear time and memory on the size of the greatest exponent:

sage: F = GF(59)
sage: PF = PolynomialRing(F, 'x', sparse=True)
sage: x,=PF.gens()
sage: str(x^(10^12) + x)
x^1000000000000 + x
sage: latex(x^(10^12) + x)
<BOOM: MemoryError>

Change History (0)

Note: See TracTickets for help on using tickets.