Package sage :: Package rings :: Module polynomial :: Class Polynomial_generic_dense
[show private | hide private]
[frames | no frames]

Type Polynomial_generic_dense

object --+        
         |        
   Element --+    
             |    
    Polynomial --+
                 |
                Polynomial_generic_dense

Known Subclasses:
PowerSeries

Method Summary
  __init__(self, parent, x, check, is_gen)
  __getitem__(self, n)
  __getslice__(self, i, j)
  __reduce__(self)
  __setitem__(self, n, value)
  degree(self)
Return the degree of this polynomial.
  list(self)
    Inherited from Polynomial
  __add__(self, right)
  __call__(self, x)
Compute value of this polynomial at x.
  __cmp__(self, other)
  __div__(self, other)
Division with remainder.
  __float__(self)
  __floordiv__(self, right)
Quotient of division of self by other.
  __hash__(self)
  __int__(self)
  __long__(self)
  __mod__(self, other)
Remainder of division of self by other.
  __mul__(self, right)
EXAMPLES:
  __neg__(self)
  __pos__(self)
  __pow__(self, right)
  __radd__(self, left)
  __rdiv__(self, left)
  __repr__(self)
  __rmul__(self, left)
  __rsub__(self, left)
  __sub__(self, right)
The difference self - right.
  base_ring(self)
Return the base ring of the parent of self.
  complex_roots(self, flag)
Returns the complex roots of this polynomial.
  copy(self)
Return a copy of self.
  denominator(self)
Return the least common multiple of the denominators of the entries of self, when this makes sense, i.e., when the coefficients have a denominator function.
  derivative(self)
  dict(self)
  factor(self)
Return polynomials f1, ..., fn and exponents e1, ..., en such that the gcd fo the coefficients of the fi is 1, and prod fi**ei is equal to a scalar multiple of self.
  gcd(self, other)
Greatest common divisor of self and polynomial other.
  is_gen(self)
  is_irreducible(self)
  is_monic(self)
Returns True if this polynomial is monic.
  is_nonzero(self)
  is_zero(self)
  leading(self)
  pari(self)
  polynomial(self, *args, **kwds)
  resultant(self, other, flag)
  reverse(self)
  valuation(self)
If f = a_r x^r + a_{r+1}x^{r+1} + higher terms ..., with a_r nonzero then the valuation of f is r.
  variable(self)
  xgcd(self, other)
Extended gcd of self and polynomial other.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

degree(self)

Return the degree of this polynomial. The zero polynomial has degree -1. EXAMPLES:
>>> x = PolynomialRing(IntegerRing()).gen()
>>> f = x**93 + 2*x + 1
>>> f.degree()
93

>>> x = PolynomialRing(RationalField(), sparse=True).gen()
>>> f = x**100000 
>>> f.degree()
100000
Overrides:
sage.rings.polynomial.Polynomial.degree (inherited documentation)

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