graphinglib.MathematicalObject#

class graphinglib.MathematicalObject(*args, **kwargs)[source]#

This class implements the __r* (reverse) and __i* (inplace) methods for adding, subtracting, multiplying, dividing and raising to a power an object that implements the direct methods.

Warning

This class works only if the children class implements the __add__, __sub__, __mul__, __truediv__ and __pow__ methods. Note also that the __rpow__ method is not implemented by this class.

Methods

__init__(*args, **kwargs)