Open
Description
This ticket aims at improving the method valuation
for polynomials in two ways:
-
The method
valuation
for dense polynomials can be called in the following ways:- Without argument, return the largest power of the variable that divides the input polynomial.
- With a polynomial (with the same parent) as argument, return the largest power of this polynomial which divides the input polynomial.
I propose to allow another possible argument: If the argument is an element of the base ring of the parent, it returns the minimum of the valuations of the coefficients. This is consistent with PARI.
-
The method
valuation
for sparse polynomials is much less capable than the method for dense polynomials. I propose to have the same behaviors in both cases.
Depends on #19171
Component: commutative algebra
Keywords: polynomial
Work Issues: Rebase
Author: Bruno Grenet
Branch/Commit: u/roed/t19172_valuation @ aa040dc
Issue created by migration from https://trac.sagemath.org/ticket/19172