Skip to content

univariate homogenize is not the same as multivariate homogenize #2352

@ncalexan

Description

@ncalexan
mannequin

Ticket #2349 fixes the multivariate case. This ticket is for the univariate case. Some examples (these work after like this AFTER #2349 has been applied):

sage: x = Zmod(3)['x'].0; (x^2 + x).homogenize()
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'>        Traceback (most recent call last)

/Users/ncalexan/<ipython console> in <module>()

<type 'exceptions.AttributeError'>: 'sage.rings.polynomial.polynomial_modn_dense_ntl.Po' object has no attribute 'homogenize'
sage: x = PolynomialRing(Zmod(3), 1, 'x').0; (x^2 + x).homogenize()
x^2 + x*h
sage: x = GF(3)['x'].0; (x^2 + x).homogenize()
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'>        Traceback (most recent call last)

/Users/ncalexan/<ipython console> in <module>()

<type 'exceptions.AttributeError'>: 'sage.rings.polynomial.polynomial_modn_dense_ntl.Po' object has no attribute 'homogenize'
sage: x = PolynomialRing(GF(3), 1, 'x').0; (x^2 + x).homogenize()
x^2 + x*h

CC: @ncalexan

Component: commutative algebra

Keywords: univariate polynomial homogenize

Author: Luis Felipe Tabera Alonso, Julian Rueth

Branch/Commit: 03bf755

Reviewer: Julian Rueth, Luis Felipe Tabera Alonso

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions