Package empro :: Module empro :: Module core :: Class ComplexExpression
[frames] | no frames]

Class ComplexExpression

Updatable --+    
            |    
   Selectable --+
                |
               ComplexExpression

Interface to a complex expression. Complex expressions are complex numbers with real and imaginary parts as expressions.

Class Hierarchy for ComplexExpression
Class Hierarchy for ComplexExpression

Instance Methods
 
__add__(x, y)
x+y
 
__div__(x, y)
x/y
 
__iadd__(x, y)
x+=y
 
__idiv__(x, y)
x/=y
 
__imul__(x, y)
x*=y
 
__isub__(x, y)
x-=y
 
__itruediv__(x, y)
x/=y
 
__mul__(x, y)
x*y
 
__neg__(x)
-x
 
__pos__(x)
+x
 
__radd__(x, y)
y+x
 
__rdiv__(x, y)
y/x
 
__rmul__(x, y)
y*x
 
__rsub__(x, y)
y-x
 
__rtruediv__(x, y)
y/x
 
__sub__(x, y)
x-y
 
__truediv__(x, y)
x/y
float
magnitude()
Returns the magnitude.
float
phase()
Returns the phase.

Inherited from Selectable: clone, isSelected

Inherited from Updatable: __enter__, __exit__, hash, isValid, reasonWhyInvalid

Properties
floatNone imag
The imaginary part of the complex number.
floatNone real
The real part of the complex number.

Inherited from Selectable: metaData, name, notes