Skip to content

bug with polynomials over power series #3056

@kedlaya

Description

@kedlaya

The first computation of z^2 is incorrect, whereas the second is correct:

sage: C.<t> = PowerSeriesRing(ZZ)
sage: D.<s> = PolynomialRing(C)
sage: z = (1 + O(t)) + t*s^2
sage: z^2
 t^2*s^4 + 1 + O(t)
sage: z._mul_generic(z)
 t^2*s^4 + (2*t + O(t^2))*s^2 + 1 + O(t)

CC: @burcin

Component: basic arithmetic

Keywords: polynomials, power series, Karatsuba

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions