NZMATH  1.2.0 About: NZMATH is a Python based number theory oriented calculation system.   Fossies Dox: NZMATH-1.2.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)
nzmath.poly.uniutil.OrderProvider Class Reference
Inheritance diagram for nzmath.poly.uniutil.OrderProvider:
[legend]
Collaboration diagram for nzmath.poly.uniutil.OrderProvider:
[legend]

## Public Member Functions

def __init__ (self, order=termorder.ascending_order)

def shift_degree_to (self, degree)

def split_at (self, degree)

order

## Detailed Description

```OrderProvider provides order and related operations.
```

Definition at line 28 of file uniutil.py.

## ◆ __init__()

 def nzmath.poly.uniutil.OrderProvider.__init__ ( self, order = `termorder.ascending_order` )
```Do not instantiate OrderProvider.
This initializer should be called from descendant:
OrderProvider.__init__(self, order)
where order is default to termorder.ascending_order.
```

Definition at line 32 of file uniutil.py.

## ◆ shift_degree_to()

 def nzmath.poly.uniutil.OrderProvider.shift_degree_to ( self, degree )
```Return polynomial whose degree is the given degree.

More precisely, let f(X) = a_0 + ... + a_n * X**n, then
order.shift_degree_to(f, m) returns:
- zero polynomial, if f is zero polynomial
- a_(n-m) + ... + a_n * X**m, if 0 <= m < n
- a_0 * X**(m-n) + ... + a_n * X**m, if m >= n
```

Definition at line 43 of file uniutil.py.

## ◆ split_at()

 def nzmath.poly.uniutil.OrderProvider.split_at ( self, degree )
```Return tuple of two polynomials, which are splitted at the
given degree.  The term of the given degree, if exists,
belongs to the lower degree polynomial.
```

Definition at line 62 of file uniutil.py.

## ◆ order

The documentation for this class was generated from the following file: