mathmaker  0.6(alpha)
Public Member Functions
core.root_calculus.Evaluable Class Reference

Abstract mother class of all (evaluable) mathematical objects It is not possible to implement any Evaluable object. More...

Inheritance diagram for core.root_calculus.Evaluable:
core.base.Printable core.base.NamedObject core.base.Clonable core.root_calculus.Calculable core.root_calculus.Signed core.root_calculus.Exponented core.root_calculus.Value core.base_calculus.Item core.base_calculus.Operation core.base_calculus.Function core.base_calculus.CommutativeOperation core.base_calculus.Quotient core.base_calculus.SquareRoot core.base_calculus.Product core.base_calculus.Sum core.base_calculus.Fraction core.base_calculus.Expandable core.base_calculus.Monomial core.base_calculus.Polynomial core.base_calculus.BinomialIdentity

List of all members.

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.

Detailed Description

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.


Member Function Documentation

def core.root_calculus.Evaluable.alphabetical_order_cmp (   self,
  other_objct 
)

To check if this contains a rounded number...

Returns:
True or False

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)

Parameters:
objctThe object to search for
Returns:
True if the object contains exactly the given objct

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.

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().


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