Package sympycore :: Package arithmetic :: Package mpmath :: Module mptypes :: Class mpc
[hide private]
[frames] | no frames]

Class mpc

source code


An mpc represents a complex number using a pair of mpf:s (one
for the real part and another for the imaginary part.) The mpc
class behaves fairly similarly to Python's complex type.



Instance Methods [hide private]
 
__repr__(s)
repr(x)
source code
 
__str__(s)
str(x)
source code
 
__complex__(s) source code
 
__pos__(s) source code
call graph 
 
__abs__(s) source code
call graph 
 
__neg__(s) source code
call graph 
 
__nonzero__(s) source code
 
conjugate(s) source code
 
__eq__(s, t) source code
 
_compare(*args) source code
 
__le__(*args) source code
 
__gt__(*args) source code
 
__ge__(*args) source code
 
__add__(s, t) source code
call graph 
 
__sub__(s, t) source code
call graph 
 
__mul__(s, t) source code
call graph 
 
__div__(s, t) source code
 
__pow__(s, n) source code
 
__radd__(s, t) source code
call graph 
 
__rmul__(s, t) source code
call graph 
 
__rsub__(s, t) source code
 
__rpow__(s, t) source code
 
__rdiv__(s, t) source code
 
ae(s, t, rel_eps=None, abs_eps=None) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__

Static Methods [hide private]
 
__new__(cls, real=0, imag=0) source code
call graph 
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, real=0, imag=0)
Static Method

source code 
call graph 
Overrides: mpnumeric.__new__

__repr__(s)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

__str__(s)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)