-
-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Description
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