nzmath.polynomial | (ÆüËܸì)

OneVariablePolynomialCoefficients class

The class is for managing coefficients of one variable polynomials.

Constructor

OneVariablePolynomialCoefficients()

Methods

changeRepresentation(rep)

Change inner representation from list to dict or from dict to list. The method is destructive.

copy()

Return the copy of the object.

degree()

Return the degree.

getAsDict()

Return the data in dict format.

getAsList()

Return the data in list format.

itercoeffs()

Return an iterator which yields non-zero coefficients one by one.

iterdegrees()

Return an iterator which yields degrees having non-zero coefficient.

iteritems()

Return an iterator which yields pairs of degree and non-zero coefficient.

setDict(aDict)

Take in data from a dictionary aDict.

setList(aList)

Take in data from a list aList.

Operators

c[i]Return the coefficient of degree i term.
iter(c)Return an iterator.
len(c)Return the length of list representation.
repr(c)Return the repr string of c.
c[i]=vReplace the coefficient of degree i term by v.

Last-modified: 2005-10-18 (²Ð) 11:28:40