Abstract mother class of all mathematical objects It is not possible to implement any Calculable object. More...
Public Member Functions | |
def | alphabetical_order_cmp |
Sort order : numerics < sorted literals. | |
def | is_numeric |
True if the object only contains numeric objects. | |
def | is_literal |
True if the object only contains literal objects. | |
def | is_null |
True if the evaluated value of an object is null. | |
def | get_letter |
If the object is literal, returns the first letter The first term of a Sum, the first factor of a Product etc. | |
def | is_equivalent_to_a_single_1 |
True if the object can be displayed as a single 1 For instance, the Product 1×1×1×1 or the Sum 0 + 0 + 1 + 0. | |
def | is_equivalent_to_a_single_minus_1 |
True if the object can be displayed as a single -1 For instance, the Product 1×1×(-1)×1 or the Sum 0 + 0 - 1 + 0. | |
def | is_equivalent_to_a_single_0 |
True if the object can be displayed as a single 0 For instance, the Product 0×0×0×0 (but not 0×1) or the Sum 0 + 0 + 0 (but not 0 + 1 - 1). | |
def | is_equivalent_to_a_single_neutral |
True if the Item can be displayed as a single neutral element. | |
def | is_equivalent_to_a_single_numeric_Item |
True if the object is or only contains one numeric Item. | |
def | is_equivalent_to_an_irreducible_Fraction |
True if the object is or only contains one irreducible Fraction. | |
def | evaluate |
Returns the numeric value of the object. | |
def | calculate_next_step |
Returns None. | |
def | deep_copy |
Returns a deep copy of the object. | |
def | times |
Returns the Product of two Calculable objects. | |
def | plus |
Returns the Sum of two objects. |
Abstract mother class of all mathematical objects It is not possible to implement any Calculable object.
Definition at line 164 of file __init__.py.
def obj::calc::Calculable::alphabetical_order_cmp | ( | self, | ||
other_objct | ||||
) |
Sort order : numerics < sorted literals.
Definition at line 173 of file __init__.py.
def obj::calc::Calculable::get_letter | ( | self | ) |
If the object is literal, returns the first letter The first term of a Sum, the first factor of a Product etc.
Reimplemented in obj::calc::Value, obj::calc::Item, obj::calc::Operation, and obj::calc::Monomial.
Definition at line 234 of file __init__.py.
def obj::calc::Calculable::plus | ( | self, | ||
objct | ||||
) |
Returns the Sum of two objects.
objct | The second object to be added with |
Reimplemented in obj::calc::Monomial, and obj::calc::Polynomial.
Definition at line 366 of file __init__.py.
def obj::calc::Calculable::times | ( | self, | ||
objct | ||||
) |
Returns the Product of two Calculable objects.
objct | The second object to be multiplied with |
Definition at line 354 of file __init__.py.