internal.types.complex

Standard library module View source
class complex
@tuple
class complex
Fields 2
real float
imag float
Constructors 3
__new__
__new__()
__new__
@overload
__new__(what)
__new__
@overload
__new__(real, imag)
Methods 2
cdiv
cdiv(self, other: complex)
conjugate
conjugate(self)
Special methods 20
__complex__
__complex__(self)
__bool__
__bool__(self)
__pos__
__pos__(self)
__neg__
__neg__(self)
__abs__
__abs__(self)
__copy__
__copy__(self)
__hash__
__hash__(self)
__add__
__add__(self, other: float)
__add__(self, other: int)
__add__(self, other: complex)
__sub__
__sub__(self, other: float)
__sub__(self, other: int)
__sub__(self, other: complex)
__mul__
__mul__(self, other: float)
__mul__(self, other: int)
__mul__(self, other: complex)
__truediv__
__truediv__(self, other: float)
__truediv__(self, other: int)
__truediv__(self, other: complex)
__eq__
__eq__(self, other: float)
__eq__(self, other: int)
__eq__(self, other: complex)
__ne__
__ne__(self, other: float)
__ne__(self, other: int)
__ne__(self, other: complex)
__pow__
__pow__(self, other: float)
__pow__(self, other: int)
__pow__(self, other: complex)
__radd__
__radd__(self, other: float)
__radd__(self, other: int)
__rsub__
__rsub__(self, other: float)
__rsub__(self, other: int)
__rmul__
__rmul__(self, other: float)
__rmul__(self, other: int)
__rtruediv__
__rtruediv__(self, other: float)
__rtruediv__(self, other: int)
__rpow__
__rpow__(self, other: float)
__rpow__(self, other: int)
__repr__
__repr__(self)
class int
@extend
class int
Special methods 1
__suffix_j__
__suffix_j__(x: int)
class complex64
@extend
class complex64
Constructors 5
__new__
__new__()
__new__
__new__(other)
__new__
__new__(real: float32)
__new__
__new__(other: complex)
__new__
__new__(real, imag)
Methods 2
cdiv
cdiv(self, other: complex64)
conjugate
conjugate(self)
Special methods 21
__complex__
__complex__(self)
__bool__
__bool__(self)
__pos__
__pos__(self)
__neg__
__neg__(self)
__abs__
__abs__(self)
__copy__
__copy__(self)
__hash__
__hash__(self)
__add__
__add__(self, other: complex)
__add__(self, other: float32)
__add__(self, other: float)
__add__(self, other: int)
__add__(self, other: complex64)
__sub__
__sub__(self, other: complex)
__sub__(self, other: float32)
__sub__(self, other: float)
__sub__(self, other: int)
__sub__(self, other: complex64)
__mul__
__mul__(self, other: complex)
__mul__(self, other: float32)
__mul__(self, other: float)
__mul__(self, other: int)
__mul__(self, other: complex64)
__truediv__
__truediv__(self, other: complex)
__truediv__(self, other: float32)
__truediv__(self, other: float)
__truediv__(self, other: int)
__truediv__(self, other: complex64)
__pow__
__pow__(self, other: complex)
__pow__(self, other: float32)
__pow__(self, other: float)
__pow__(self, other: int)
__pow__(self, other: complex64)
__eq__
__eq__(self, other: complex)
__eq__(self, other: float32)
__eq__(self, other: float)
__eq__(self, other: int)
__eq__(self, other: complex64)
__ne__
__ne__(self, other: complex)
__ne__(self, other: float32)
__ne__(self, other: float)
__ne__(self, other: int)
__ne__(self, other: complex64)
__radd__
__radd__(self, other: complex)
__radd__(self, other: float32)
__radd__(self, other: float)
__radd__(self, other: int)
__rsub__
__rsub__(self, other: complex)
__rsub__(self, other: float32)
__rsub__(self, other: float)
__rsub__(self, other: int)
__rmul__
__rmul__(self, other: complex)
__rmul__(self, other: float32)
__rmul__(self, other: float)
__rmul__(self, other: int)
__rtruediv__
__rtruediv__(self, other: complex)
__rtruediv__(self, other: float32)
__rtruediv__(self, other: float)
__rtruediv__(self, other: int)
__rpow__
__rpow__(self, other: complex)
__rpow__(self, other: float32)
__rpow__(self, other: float)
__rpow__(self, other: int)
__repr__
__repr__(self)
__str__
__str__(self)