Package aloha :: Module aloha_lib :: Class MultVariable
[hide private]
[frames] | no frames]

Class MultVariable

source code

object --+    
         |    
      list --+
             |
            MultVariable
Known Subclasses:

A list of Variable with multiplication as operator between themselves.

Nested Classes [hide private]
  add_class
A list of Variable/ConstantObject/...
Instance Methods [hide private]
new list
__init__(self, old_data=[], prefactor=1)
initialization of the object with default value
source code
 
copy(self)
return a copy
source code
 
simplify(self)
simplify the product
source code
 
factorize(self)
Try to factorize this (nothing to do)
source code
 
expand(self)
Pass from High Level object to low level object
source code
 
__mul__(self, obj)
Define the multiplication with different object
source code
 
__add__(self, obj)
define the adition with different object
source code
 
__sub__(self, obj) source code
 
__neg__(self) source code
 
__rsub__(self, obj) source code
 
__div__(self, obj)
define the division
source code
 
__rdiv__(self, obj)
Deal division in a inverse way
source code
 
__radd__(self, obj)
define the adition with different object
source code
 
__iadd__(self, obj)
define the adition with different object
source code
 
__rmul__(self, obj)
Define the multiplication with different object
source code
 
__truediv__(self, obj)
define the division
source code
 
__rtruediv__(self, obj)
Deal division in a inverse way
source code
 
append(self, obj)
add a newVariable in the Multiplication list and look for her power
source code
 
__eq__(self, obj)
Define When two MultVariable are identical
source code
 
__ne__(self, obj)
Define when two Multvariable are not identical
source code
 
__str__(self)
String representation
source code
 
__rep__(self)
String representation
source code

Inherited from list: __contains__, __delitem__, __delslice__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __imul__, __iter__, __le__, __len__, __lt__, __new__, __repr__, __reversed__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]
  vartype = 2

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, old_data=[], prefactor=1)
(Constructor)

source code 

initialization of the object with default value

Returns: new list
Overrides: object.__init__

__mul__(self, obj)

source code 

Define the multiplication with different object

Overrides: list.__mul__

__add__(self, obj)
(Addition operator)

source code 

define the adition with different object

Overrides: list.__add__

__iadd__(self, obj)

source code 

define the adition with different object

Overrides: list.__iadd__

__rmul__(self, obj)

source code 

Define the multiplication with different object

Overrides: list.__rmul__

append(self, obj)

source code 

add a newVariable in the Multiplication list and look for her power

Overrides: list.append

__eq__(self, obj)
(Equality operator)

source code 

Define When two MultVariable are identical

Overrides: list.__eq__

__ne__(self, obj)

source code 

Define when two Multvariable are not identical

Overrides: list.__ne__

__str__(self)
(Informal representation operator)

source code 

String representation

Overrides: object.__str__