obj::Equation Class Reference

One degree one variable. More...

Inheritance diagram for obj::Equation:
obj::Printable

List of all members.

Public Member Functions

def __init__
 Constructor.
def set_hand_side
 Setter for hand sides.
def __str__
 Raw display of the Equation (debugging method).
def solve_next_step
 Creates the next Equation object in the resolution.
def make_string
 Creates a string of the given object in the given ML.
def auto_resolution
 Creates a string of the equation's resolution in the given ML.

Detailed Description

One degree one variable.

Sum=Sum. Name, number, left/right hand side.

Definition at line 376 of file __init__.py.


Member Function Documentation

def obj::Equation::__init__ (   self,
  arg,
  options 
)

Constructor.

Warning:
Might raise an UncompatibleType exception.
Parameters:
arg Equation|(Exponented, Exponented)|(__.RANDOMLY, ...)
Returns:
One instance of obj.Equation

Definition at line 388 of file __init__.py.

def obj::Equation::__str__ (   self  ) 

Raw display of the Equation (debugging method).

Returns:
A string containing "type : sign coeff × X ^ degree"

Definition at line 922 of file __init__.py.

def obj::Equation::auto_resolution (   self,
  markup,
  options 
)

Creates a string of the equation's resolution in the given ML.

Parameters:
markup The markup dictionary to use
options Any options
Returns:
The formated string of the equation's resolution

Definition at line 1418 of file __init__.py.

def obj::Equation::make_string (   self,
  markup,
  options 
)

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

Parameters:
markup The markup dictionary to use
options Any options
Returns:
The formated string

Reimplemented from obj::Printable.

Definition at line 1368 of file __init__.py.

def obj::Equation::set_hand_side (   self,
  left_or_right,
  arg 
)

Setter for hand sides.

Warning:
Might raise an UncompatibleType exception.
Returns:
Nothing, just sets the given argument to the left hand side, turned into a Sum if necessary

Definition at line 889 of file __init__.py.

def obj::Equation::solve_next_step (   self,
  options 
)

Creates the next Equation object in the resolution.

Todo:

Expandables (which have to get checked first, btw) !

check the case -x = -7 where the - belongs to the Item's value

Returns:
An Equation

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