nzmath.polynomial | (ÆüËܸì)

MultiVariableSparsePolynomial

A class for polynomials with multiple variables. *1

Constructor

MultiVariableSparsePolynomial(coefficient, variable)

Methods

adjust()

Return a simplified polynomial.

copy

It is same as adjust() .

differentiate(var)

Return partial differentiation with var.

getRing()

Return a ring to which the polynomial belongs.

integrate(var [,mini, maxi])

Return definite or indefinite integration of the polynomial.

toOneVariableDensePolynomial()

Return an OneVariablePolynomial instance if the polynomial has only one variable. Raise a ValueError, otherwise.

toOneVariableSparsePolynomial()

Same as above.

The methods below are considered private.

Operators

unary operators

-negation
+simplify if possible
strstr string
reprrepr string

binary operators

+addition
-subtraction
*multiplication
**, powpower*2
//quotient
%remainder
divmodReturn tuple of quotient and remainder
/division
==equality

ternary operator

powpower with modulus

*1 Sparse in the name is a trace that there is another multivariable polynomial class of dense type.
*2 see ternary operator pow also

Last-modified: 2005-12-06 (²Ð) 15:55:13