mathmaker
0.6(alpha)
|
Abstract mother class of all (evaluable) mathematical objects It is not possible to implement any Evaluable object. More...
Public Member Functions | |
def | get_first_letter |
If the object is literal, returns the first letter The first term of a Sum, the first factor of a Product etc. | |
def | evaluate |
Returns the numeric value of the object. | |
def | contains_a_rounded_number |
To check if this contains a rounded number... | |
def | contains_exactly |
True if the object contains exactly the given objct It can be used to detect objects embedded in a Sum or a Product that contain only one term (or factor) | |
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. |
Abstract mother class of all (evaluable) mathematical objects It is not possible to implement any Evaluable object.
Definition at line 57 of file root_calculus.py.
def core.root_calculus.Evaluable.alphabetical_order_cmp | ( | self, | |
other_objct | |||
) |
Sort order : numerics < sorted literals.
Definition at line 113 of file root_calculus.py.
References core.root_calculus.Evaluable.get_first_letter(), core.base_calculus.Item.get_first_letter(), core.base_calculus.CommutativeOperation.get_first_letter(), core.base_calculus.Monomial.get_first_letter(), core.root_calculus.Evaluable.is_literal(), core.base_calculus.Item.is_literal(), core.base_calculus.SquareRoot.is_literal(), core.base_calculus.Operation.is_literal(), core.root_calculus.Evaluable.is_numeric(), core.base_calculus.Item.is_numeric(), core.base_calculus.SquareRoot.is_numeric(), core.base_calculus.Operation.is_numeric(), core.calculus.Table.is_numeric(), and core.base_calculus.Monomial.is_numeric().
To check if this contains a rounded number...
Reimplemented in core.base_calculus.CommutativeOperation, core.base_calculus.Quotient, core.base_calculus.SquareRoot, core.root_calculus.Value, and core.base_calculus.Item.
Definition at line 88 of file root_calculus.py.
def core.root_calculus.Evaluable.contains_exactly | ( | self, | |
objct | |||
) |
True if the object contains exactly the given objct It can be used to detect objects embedded in a Sum or a Product that contain only one term (or factor)
objct | The object to search for |
Reimplemented in core.base_calculus.CommutativeOperation, core.base_calculus.Quotient, core.base_calculus.SquareRoot, core.root_calculus.Value, and core.base_calculus.Item.
Definition at line 102 of file root_calculus.py.
def core.root_calculus.Evaluable.get_first_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 core.base_calculus.Monomial, core.base_calculus.CommutativeOperation, core.root_calculus.Value, and core.base_calculus.Item.
Definition at line 67 of file root_calculus.py.
Referenced by core.root_calculus.Evaluable.alphabetical_order_cmp(), and core.root_calculus.Value.into_str().