obj::calc::Polynomial Class Reference

A Polynomial is a Sum of Monomials, not necessarily reduced or ordered. More...

Inheritance diagram for obj::calc::Polynomial:
obj::calc::Sum obj::calc::Operation obj::calc::Exponented obj::calc::Calculable obj::Printable

List of all members.

Public Member Functions

def __init__
 Constructor.
def __str__
 Raw display of the Polynomial (debugging method).
def get_max_degree
 Gets the maximal degree value that can be found in thePolynomial.
def get_degree
 Gets the real Polynomial's degree.
def plus
 The Sum Polynomial + objct(returned as a Polynomial if possible).

Detailed Description

A Polynomial is a Sum of Monomials, not necessarily reduced or ordered.

Definition at line 7070 of file __init__.py.


Member Function Documentation

def obj::calc::Polynomial::__init__ (   self,
  arg 
)

Constructor.

Warning:
Might raise an UncompatibleType exception.
Parameters:
arg __.DEFAULT|[Monomial|Polynomial]|Sum(...)|(__.RANDOMLY, ...) Possible arguments are :

  • __.DEFAULT : Will create a default Monomial embedded in a Polynomial
  • [Monomial|Polynomial] or Sum(Monomial|Polynomial) : They'll get turned into one Polynomial
  • (__.RANDOMLY, max_coeff, max_degree, [length|tuple(__.RANDOMLY, max_length)]) : The coefficients and degrees of the Polynomial will be created randomly. Limits are given by : CONSTANT_TERMS_MAXIMUM_RATIO and CONSTANT_TERMS_MINIMUM_NUMBER. The length can either be given or be let generated randomly. If the argument isn't of the kinds listed above, an exception will be raised.
Returns:
One instance of Polynomial

Reimplemented from obj::calc::Sum.

Definition at line 7097 of file __init__.py.

def obj::calc::Polynomial::__str__ (   self,
  options 
)

Raw display of the Polynomial (debugging method).

Parameters:
options No option available so far
Returns:
" [[ term0, ..., termn ]]"

Reimplemented from obj::calc::Operation.

Definition at line 7246 of file __init__.py.

def obj::calc::Polynomial::get_degree (   self  ) 

Gets the real Polynomial's degree.

Returns:
The real Polynomial's degree

Definition at line 7282 of file __init__.py.

def obj::calc::Polynomial::get_max_degree (   self  ) 

Gets the maximal degree value that can be found in thePolynomial.

Returns:
The maximal degree value that can be found in the Polynomial

Definition at line 7265 of file __init__.py.

def obj::calc::Polynomial::plus (   self,
  objct 
)

The Sum Polynomial + objct(returned as a Polynomial if possible).

Parameters:
objct The second object to be added with

Reimplemented from obj::calc::Calculable.

Definition at line 7325 of file __init__.py.


The documentation for this class was generated from the following file:
Generated on Fri Dec 30 19:26:37 2011 for mathmaker by  doxygen 1.6.3