obj::calc::Calculable Class Reference

Abstract mother class of all mathematical objects It is not possible to implement any Calculable object. More...

Inheritance diagram for obj::calc::Calculable:
obj::Printable obj::calc::Exponented obj::calc::Value obj::calc::Item obj::calc::Operation obj::calc::Quotient obj::calc::SquareRoot obj::calc::Product obj::calc::Sum obj::calc::Fraction obj::calc::Expandable obj::calc::Monomial obj::calc::Polynomial obj::calc::BinomialIdentity

List of all members.

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.

Detailed Description

Abstract mother class of all mathematical objects It is not possible to implement any Calculable object.

Definition at line 164 of file __init__.py.


Member Function Documentation

def obj::calc::Calculable::alphabetical_order_cmp (   self,
  other_objct 
)

Sort order : numerics < sorted literals.

Returns:
-1, 0 or +1

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.

Parameters:
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.

Parameters:
objct The second object to be multiplied with

Definition at line 354 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