Polynomial Interfaces to Singular¶
AUTHORS:
 Martin Albrecht <malb@informatik.unibremen.de> (20060421)
 Robert Bradshaw: Refactor to avoid multiple inheritance vs. Cython (200709)
 Syed Ahmad Lavasani: Added function field to _singular_init_ (20111216)
 Added nonprime finite fields to _singular_init_ (2012122)

class
sage.rings.polynomial.polynomial_singular_interface.
PolynomialRing_singular_repr
¶ Implements methods to convert polynomial rings to Singular.
This class is a base class for all univariate and multivariate polynomial rings which support conversion from and to Singular rings.

class
sage.rings.polynomial.polynomial_singular_interface.
Polynomial_singular_repr
¶ Implements coercion of polynomials to Singular polynomials.
This class is a base class for all (univariate and multivariate) polynomial classes which support conversion from and to Singular polynomials.
Due to the incompatibility of Python extension classes and multiple inheritance, this just defers to modulelevel functions.

sage.rings.polynomial.polynomial_singular_interface.
can_convert_to_singular
(R)¶ Returns True if this ring’s base field or ring can be represented in Singular, and the polynomial ring has at least one generator. If this is True then this polynomial ring can be represented in Singular.
The following base rings are supported: finite fields, rationals, number fields, and real and complex fields.
EXAMPLES:
sage: from sage.rings.polynomial.polynomial_singular_interface import can_convert_to_singular sage: can_convert_to_singular(PolynomialRing(QQ, names=['x'])) True sage: can_convert_to_singular(PolynomialRing(ZZ, names=['x'])) True sage: can_convert_to_singular(PolynomialRing(QQ, names=[])) False