Skip to content

In lazy power series rings, 0 + a and 0 - a return 0 #15249

Closed
@darijgr

Description

@darijgr
sage: L = LazyPowerSeriesRing(QQ)
sage: x = L.gen()
sage: L.zero().coefficients(4)
[0, 0, 0, 0]
sage: x.coefficients(4)
[0, 1, 0, 0]

Correct so far...

sage: (L.zero() + x).coefficients(4)
[0, 0, 0, 0]
sage: (L.zero() - x).coefficients(4)
[0, 0, 0, 0]

But x - L.zero() and x + L.zero() return correct results.

See also #15248 for another lazy power series bug.

CC: @mwhansen @mantepse @tscrim

Component: algebra

Keywords: LazyPowerSeries, species

Stopgaps: incorrectAnswerMarker

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/15249

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions