Home | Trees | Index | Help |
|
---|
Package sage :: Package rings :: Module polynomial :: Class Polynomial_generic_sparse |
|
object
--+ |Element
--+ |Polynomial
--+ | Polynomial_generic_sparse
Method Summary | |
---|---|
__init__(self,
parent,
x,
check,
is_gen)
| |
__getitem__(self,
n)
| |
__getslice__(self,
i,
j)
| |
__reduce__(self)
| |
__setitem__(self,
n,
value)
| |
Return the degree of this polynomial. | |
list(self)
| |
Inherited from Polynomial | |
| |
Compute value of this polynomial at x. | |
| |
Division with remainder. | |
| |
Quotient of division of self by other. | |
| |
| |
| |
Remainder of division of self by other. | |
EXAMPLES: | |
| |
| |
| |
| |
| |
| |
| |
| |
The difference self - right. | |
Return the base ring of the parent of self. | |
Returns the complex roots of this polynomial. | |
Return a copy of 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. | |
| |
| |
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. | |
Greatest common divisor of self and polynomial other. | |
| |
| |
Returns True if this polynomial is monic. | |
| |
| |
| |
| |
| |
| |
| |
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. | |
| |
Extended gcd of self and polynomial other. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
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
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 17:58:46 2005 | http://epydoc.sf.net |