---
title: "Polynomials Associated with Newton Polygons"
canonical: "https://docs.magma-maths.org/v2.30-1/LocalFields/NewtonPolygons/newton-polynomials.html"
source: "https://docs.magma-maths.org/v2.30-1/LocalFields/NewtonPolygons/newton-polynomials.md"
part: "Local Fields"
chapter: "Newton Polygons"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Local Fields", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/index-local-fields.md"}
  - {"title": "Newton Polygons", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/NewtonPolygons/index-newton-polygons.md"}
prev: {"title": "Newton Polygons", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/NewtonPolygons/newton.md"}
next: {"title": "Finding Valuations of Roots of Polynomials from Newton Polygons", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/NewtonPolygons/val.md"}
intrinsics:
  - {"name": "HasPolynomial", "signature": "HasPolynomial(N): NwtnPgon -> BoolElt"}
  - {"name": "Polynomial", "signature": "Polynomial(N): NwtnPgon -> RngElt"}
  - {"name": "ParentRing", "signature": "ParentRing(N): NwtnPgon -> Rng"}
  - {"name": "IsNewtonPolygonOf", "signature": "IsNewtonPolygonOf(N, f): NwtnPgon, RngElt -> BoolElt"}
  - {"name": "FaceFunction", "signature": "FaceFunction(F): NwtnPgonFace -> RngElt"}
  - {"name": "IsDegenerate", "signature": "IsDegenerate(F): NwtnPgonFace -> BoolElt"}
  - {"name": "IsDegenerate", "signature": "IsDegenerate(N): NwtnPgon -> BoolElt"}
  - {"name": "IsNondegenerate", "signature": "IsNondegenerate(F): NwtnPgonFace -> BoolElt"}
  - {"name": "IsNondegenerate", "signature": "IsNondegenerate(N): NwtnPgon -> BoolElt"}
---

# Polynomials Associated with Newton Polygons

The polynomial used to define a polygon can be recovered, but more usefully so can those restrictions of that polynomial to parts of the polygon, the so-called face functions in particular.

Note that most of these functions will return an error if $N$ was not defined in terms of a polynomial.

<a id="function-haspolynomial-nwtnpgon"></a>
## `HasPolynomial(N): NwtnPgon -> BoolElt`

Return `true` if and only if the polygon $N$ was defined as the Newton polygon of some polynomial.

<a id="function-polynomial-nwtnpgon"></a>
## `Polynomial(N): NwtnPgon -> RngElt`

The polynomial used to define the polygon $N$.

<a id="function-parentring-nwtnpgon"></a>
## `ParentRing(N): NwtnPgon -> Rng`

The parent ring of the polynomial of the polygon $N$.

<a id="function-isnewtonpolygonof-nwtnpgon-rngelt"></a>
## `IsNewtonPolygonOf(N, f): NwtnPgon, RngElt -> BoolElt`

Return whether the newton polygon $N$ is defined by the polynomial $f$.

<a id="function-facefunction-nwtnpgonface"></a>
## `FaceFunction(F): NwtnPgonFace -> RngElt`

If the polygon $N$ is defined by a polynomial in two variables $f$ this returns those monomial terms of $f$ whose corresponding Newton points lie on the face $F$. On the other hand, if $N$ is determined by a univariate polynomial over a series ring, this returns the univariate polynomial supported on the face $F$.

<a id="function-isdegenerate-nwtnpgonface"></a>
## `IsDegenerate(F): NwtnPgonFace -> BoolElt`

Return `true` if the face function along $F$ is not squarefree.

<a id="function-isdegenerate-nwtnpgon"></a>
## `IsDegenerate(N): NwtnPgon -> BoolElt`

Return `true` if a face function on some face of $N$ is degenerate.

<a id="function-isnondegenerate-nwtnpgonface"></a>
## `IsNondegenerate(F): NwtnPgonFace -> BoolElt`

Return `false` if the face function along $F$ is not squarefree.

<a id="function-isnondegenerate-nwtnpgon"></a>
## `IsNondegenerate(N): NwtnPgon -> BoolElt`

Return `false` if a face function on some face of $N$ is degenerate.
