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

Class AddVariable

source code

object --+    
         |    
      list --+
             |
            AddVariable

A list of Variable/ConstantObject/... This object represent the operation between those object.

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 deep copy of the object
source code
 
simplify(self, short=False)
apply rule of simplification
source code
 
expand(self)
Pass from High level object to low level object
source code
 
__mul__(self, obj)
define the multiplication of
source code
 
__add__(self, obj)
Define all the different addition.
source code
 
__div__(self, obj)
Implement division
source code
 
__rdiv__(self, obj)
Deal division in a inverse way
source code
 
__sub__(self, obj) source code
 
__radd__(self, obj)
Define all the different addition.
source code
 
__iadd__(self, obj)
Define all the different addition.
source code
 
__rmul__(self, obj)
define the multiplication of
source code
 
__truediv__(self, obj)
Implement division
source code
 
__rtruediv__(self, obj)
Deal division in a inverse way
source code
 
__rsub__(self, obj) source code
 
append(self, obj)
add a newVariable in the Multiplication list
source code
 
__eq__(self, obj)
Define The Equality
source code
 
__ne__(self, obj)
Define the unequality
source code
 
__str__(self)
str(x)
source code
 
count_term(self) source code
 
factorize(self)
try to factorize as much as possible the expression
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 = 1

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 of

  • a AddVariable with a number
  • a AddVariable with an AddVariable

other type of multiplication are define via the symmetric operation base on the obj class.

Overrides: list.__mul__

__add__(self, obj)
(Addition operator)

source code 

Define all the different addition.

Overrides: list.__add__

__iadd__(self, obj)

source code 

Define all the different addition.

Overrides: list.__iadd__

__rmul__(self, obj)

source code 

define the multiplication of

  • a AddVariable with a number
  • a AddVariable with an AddVariable

other type of multiplication are define via the symmetric operation base on the obj class.

Overrides: list.__rmul__

append(self, obj)

source code 

add a newVariable in the Multiplication list

Overrides: list.append

__eq__(self, obj)
(Equality operator)

source code 

Define The Equality

Overrides: list.__eq__

__ne__(self, obj)

source code 

Define the unequality

Overrides: list.__ne__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)