Package sage :: Package rings :: Module ring :: Class Ring
[show private | hide private]
[frames | no frames]

Class Ring

Known Subclasses:
Algebra, Algebra, ComplexField, FiniteField, IntegerModRing, IntegerRing, IntervalRing, MPolynomialRing_base, NumberField, pAdicField, PariRing, PolynomialRing, RationalField, RealField

Generic ring class, so all the functions below must be defined by all rings, since they derive from this class.
Method Summary
  __init__(self)
  __call__(self, x)
Coerce x into the ring.
  __hash__(self)
  __repr__(self)
  characteristic(self)
  is_atomic_repr(self)
True if the elements have atomic string representations, in the sense that they print if they print at s, then -s means the negative of s.
  is_field(self)
  name(self)
  type(self)

Method Details

__call__(self, x)
(Call operator)

Coerce x into the ring.

is_atomic_repr(self)

True if the elements have atomic string representations, in the sense that they print if they print at s, then -s means the negative of s. For example, integers are atomic but polynomials are not.

Generated by Epydoc 2.1 on Mon Jun 20 15:43:22 2005 http://epydoc.sf.net