A Monomial is a Product of a numeric Exponented and a literal Item. More...
Public Member Functions | |
def | __init__ |
Constructor. | |
def | __str__ |
Raw display of the Monomial (debugging method). | |
def | is_null |
True if it's the null Monomial. | |
def | is_numeric |
True if Monomial's degree is 0 or lib.ZERO_POLYNOMIAL_DEGREE. | |
def | is_positive |
True if Monomial's coefficient's *sign* is '+'. | |
def | is_negative |
True if Monomial's coefficient's *sign* is '-'. | |
def | get_sign |
Gets the sign of the Monomial. | |
def | get_coeff |
Returns the numeric coefficient of the Monomial. | |
def | get_value |
Gets the value (value_object.value) of a Monomial of degree 0. | |
def | get_degree |
Returns the degree of the Monomial (i.e. | |
def | get_letter |
Returns the letter of the Monomial. | |
def | set_sign |
Set the sign of the object. | |
def | set_letter |
Sets the letter of the Monomial. | |
def | set_degree |
Set the degree of the Monomial. | |
def | set_coeff |
Set the degree of the Monomial. | |
def | plus |
The Sum Monomial + object (returned as a Polynomial if possible). |
A Monomial is a Product of a numeric Exponented and a literal Item.
Definition at line 6718 of file __init__.py.
def obj::calc::Monomial::__init__ | ( | self, | ||
arg, | ||||
options | ||||
) |
Constructor.
arg | __.DEFAULT|Monomial|(sign, coeff, degree)|....... Possible arguments are :
| |
options | any option Options can be :
|
Definition at line 6746 of file __init__.py.
def obj::calc::Monomial::__str__ | ( | self, | ||
options | ||||
) |
Raw display of the Monomial (debugging method).
options | No option available so far |
Reimplemented from obj::calc::Operation.
Definition at line 6850 of file __init__.py.
def obj::calc::Monomial::get_coeff | ( | self | ) |
Returns the numeric coefficient of the Monomial.
Definition at line 6937 of file __init__.py.
def obj::calc::Monomial::get_degree | ( | self | ) |
Returns the degree of the Monomial (i.e.
exponent of factor[1])
Definition at line 6964 of file __init__.py.
def obj::calc::Monomial::get_letter | ( | self | ) |
Returns the letter of the Monomial.
Reimplemented from obj::calc::Operation.
Definition at line 6978 of file __init__.py.
def obj::calc::Monomial::get_sign | ( | self | ) |
Gets the sign of the Monomial.
Reimplemented from obj::calc::Operation.
Definition at line 6921 of file __init__.py.
def obj::calc::Monomial::get_value | ( | self | ) |
Gets the value (value_object.value) of a Monomial of degree 0.
Definition at line 6951 of file __init__.py.
def obj::calc::Monomial::is_negative | ( | self | ) |
True if Monomial's coefficient's *sign* is '-'.
Definition at line 6910 of file __init__.py.
def obj::calc::Monomial::is_positive | ( | self | ) |
True if Monomial's coefficient's *sign* is '+'.
Definition at line 6898 of file __init__.py.
def obj::calc::Monomial::plus | ( | self, | ||
objct | ||||
) |
The Sum Monomial + object (returned as a Polynomial if possible).
objct | The second object to be added with |
Reimplemented from obj::calc::Calculable.
Definition at line 7046 of file __init__.py.