Package sage :: Package rings :: Module multi_polynomial_ring :: Class MPolynomialRing
[show private | hide private]
[frames | no frames]

Type MPolynomialRing

object --+
         |
        MPolynomialRing


Multivariate polynomial ring.

EXAMPLES:
>>> R = MPolynomialRing(RationalField(), 3)
>>> x0,x1,x2 = R.gens()
>>> x0 + x1 + x2
1x_0 + 1x_1 + 1x_2

>>> (x0 + x1 + x2)**2
1x_0^2 + 2x_0x_1 + 2x_0x_2 + 1x_1^2 + 2x_1x_2 + 1x_2^2

>>> (x0 + x1 + x2)**3
1x_0^3 + 3x_0^2x_1 + 3x_0^2x_2 + 3x_0x_1^2 + 6x_0x_1x_2 + 3x_0x_2^2 + 1x_1^3 + 3x_1^2x_2 + 3x_1x_2^2 + 1x_2^3

>>> 2*x0 + x1**2 + 3*x2**2
2x_0 + 1x_1^2 + 3x_2^2

Method Summary
  __init__(self, *args, **kwds)
  __new__(cls, *args, **kwds)
(Static method)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Generated by Epydoc 2.1 on Fri Jun 24 17:58:45 2005 http://epydoc.sf.net