You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The map_coefficients() function of a multivariate polynomial ring cannot change the base ring. Sometimes this would be nice, e.g.
sage: R.<r> = GF(9); S.<s> = GF(81)
sage: h = Hom(R,S)[0]; h
Ring morphism:
From: Finite Field in r of size 3^2
To: Finite Field in s of size 3^4
Defn: r |--> 2*s^3 + 2*s^2 + 1
sage: T.<X,Y> = R[]
sage: f = r*X+Y
sage: f.map_coefficients(h)
Traceback (most recent call last)
...
NotImplementedError:
NotImplementedError comes, because R(2*s^3 + 2*s^2 + 1) is not possible; it should be S(2*s^3 + 2*s^2 + 1).
Component: algebra
Keywords: map coefficients, multivariate polynomial ring, base ring, sd35
The
map_coefficients()
function of a multivariate polynomial ring cannot change the base ring. Sometimes this would be nice, e.g.NotImplementedError
comes, becauseR(2*s^3 + 2*s^2 + 1)
is not possible; it should beS(2*s^3 + 2*s^2 + 1)
.Component: algebra
Keywords: map coefficients, multivariate polynomial ring, base ring, sd35
Author: Daniel Krenn
Reviewer: Julian Rueth
Merged: sage-5.0.beta3
Issue created by migration from https://trac.sagemath.org/ticket/11981
The text was updated successfully, but these errors were encountered: