mathmaker  0.4(alpha)
Public Member Functions | Public Attributes
core.calculus.Equation Class Reference

One degree one variable. More...

Inheritance diagram for core.calculus.Equation:
core.calculus.ComposedCalculable core.base.Printable core.base.NamedObject core.base.Clonable core.calculus.CrossProductEquation

List of all members.

Public Member Functions

def __init__
 Constructor.
def set_hand_side
 Setter for hand sides.
def dbg_str
 Raw display of the Equation (debugging method)
def solve_next_step
 Creates the next Equation object in the resolution.
def into_str
 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.

Public Attributes

 number
 left_hand_side
 right_hand_side
 variable_letter

Detailed Description

One degree one variable.

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

Definition at line 409 of file calculus.py.


Constructor & Destructor Documentation

def core.calculus.Equation.__init__ (   self,
  arg,
  options 
)

Constructor.

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

Definition at line 422 of file calculus.py.

References core.base.NamedObject.__init__(), core.base_geometry.Point.__init__(), core.base_calculus.Item.__init__(), core.calculus.ComposedCalculable.__init__(), core.calculus.Expression.__init__(), core.calculus.Equality.__init__(), core.base_geometry.Segment.__init__(), core.calculus.Equation.__init__(), core.base_geometry.Ray.__init__(), core.base_geometry.Angle.__init__(), core.base_calculus.Function.__init__(), core.base_calculus.SquareRoot.__init__(), core.base_calculus.Operation.__init__(), core.base_calculus.Quotient.__init__(), core.base_calculus.Fraction.__init__(), core.base_calculus.CommutativeOperation.__init__(), core.base_calculus.Product.__init__(), core.base_calculus.Sum.__init__(), core.base_calculus.Monomial.__init__(), core.base_calculus.Polynomial.__init__(), core.base_calculus.Expandable.__init__(), core.base_calculus.BinomialIdentity.__init__(), core.base_geometry.Point._name, core.base.NamedObject._name, core.calculus.Expression._name, core.calculus.Equation._name, core.base_geometry.Ray._name, core.base_geometry.Angle._name, core.base_calculus.Function._name, core.calculus.Equation.dbg_str(), core.calculus.Equation.left_hand_side, core.calculus.Equation.number, core.calculus.Expression.right_hand_side, core.calculus.Equation.right_hand_side, and core.calculus.Equation.variable_letter.

Referenced by core.calculus.Equation.__init__(), and core.root_calculus.Value.substitute().


Member Function Documentation

def core.calculus.Equation.auto_resolution (   self,
  options 
)

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

Parameters:
optionsAny options
Returns:
The formated string of the equation's resolution

Definition at line 1516 of file calculus.py.

References core.base.NamedObject.name, core.base_geometry.Point.name, core.base_geometry.Segment.name, core.base_geometry.Angle.name, and core.calculus.Equation.number.

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

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

Parameters:
optionsAny options
Returns:
The formated string

Reimplemented from core.base.Printable.

Definition at line 1469 of file calculus.py.

References core.base.NamedObject.name, core.base_geometry.Point.name, core.base_geometry.Segment.name, core.base_geometry.Angle.name, and core.calculus.Equation.number.

def core.calculus.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 953 of file calculus.py.

References core.calculus.Equation.left_hand_side, core.calculus.Expression.right_hand_side, and core.calculus.Equation.right_hand_side.

def core.calculus.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

Reimplemented in core.calculus.CrossProductEquation.

Definition at line 1003 of file calculus.py.

References core.base_calculus.Item.dbg_str(), core.calculus.Equation.dbg_str(), core.base_calculus.SquareRoot.dbg_str(), core.base_calculus.Quotient.dbg_str(), core.base_calculus.Fraction.dbg_str(), core.base_calculus.CommutativeOperation.dbg_str(), core.base_calculus.Monomial.dbg_str(), and core.base_calculus.Polynomial.dbg_str().


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