mathmaker  0.4(alpha)
Public Member Functions | Properties
core.calculus.Table Class Reference

All objects that are displayable as Tables. More...

Inheritance diagram for core.calculus.Table:
core.base.Printable core.base.NamedObject core.base.Clonable core.calculus.Table_UP

List of all members.

Public Member Functions

def __init__
 Constructor.
def get_cell
 Returns the Table's content as a list of two lists so it can be addressed.
def into_str
 Creates a string of the given object in the given ML.
def __len__
 Returns the number of columns of the Table.
def cross_product
 Produces the cross product of a cell among 4 given.
def is_numeric
 Returns True if the Table is entirely numeric.

Properties

 cell

Detailed Description

All objects that are displayable as Tables.

Definition at line 1888 of file calculus.py.


Constructor & Destructor Documentation

def core.calculus.Table.__init__ (   self,
  arg 
)

Constructor.

Parameters:
arg[[Calculable], [Calculable]] (the Calculables' lists must have the same length)

Definition at line 1899 of file calculus.py.

References core.calculus.Table._data, and core.calculus.Table._nb_of_cols.

Referenced by core.root_calculus.Value.substitute().


Member Function Documentation

def core.calculus.Table.cross_product (   self,
  col,
  x_position,
  options 
)

Produces the cross product of a cell among 4 given.

Parameters:
cols: (nb of col 1, nb of col 2)
x_position: position of the unknown variable to compute it will be 0, 1, 2 or 3 0: x a 1: a x 2: a b 3: a b b c b c c x x c
optionsAny options
Returns:
A Quotient or possibly a Fraction

Definition at line 2016 of file calculus.py.

References core.calculus.Table.cell.

def core.calculus.Table.into_str (   self,
  options 
)

Creates a string of the given object in the given ML.

Parameters:
optionsAny options
Returns:
The formated string
Todo:
Separate this from the LaTeX format (seems difficult to do)

Reimplemented from core.base.Printable.

Definition at line 1959 of file calculus.py.

References core.calculus.Table.cell.

Referenced by core.calculus.Table_UP.__init__().


Property Documentation

core::calculus.Table::cell [static]
Initial value:
property(get_cell,
                    doc = "t.cell is the complete Table t.cell[i][j] is a cell")

Definition at line 1946 of file calculus.py.

Referenced by core.calculus.Table.cross_product(), core.calculus.Table_UP.into_crossproduct_equation(), core.calculus.Table.into_str(), and core.calculus.Table.is_numeric().


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