Skip to content

module internal.types.complex

Source: stdlib/internal/types/complex.codon


complex64 @tuple Class is named tuple (cannot write fields)

Fields

real: float32

imag: float32


complex @tuple Class is named tuple (cannot write fields)

Fields

real: float

imag: float

Magic methods

__new__()

__new__(what) @overload Function is overloaded

__new__(real, imag) @overload Function is overloaded

__complex__(self)

__bool__(self)

__pos__(self)

__neg__(self)

__abs__(self)

__copy__(self)

__hash__(self)

__add__(self, other: float)

__sub__(self, other: float)

__mul__(self, other: float)

__truediv__(self, other: float)

__eq__(self, other: float)

__ne__(self, other: float)

__pow__(self, other: float)

__add__(self, other: int)

__sub__(self, other: int)

__mul__(self, other: int)

__truediv__(self, other: int)

__eq__(self, other: int)

__ne__(self, other: int)

__radd__(self, other: float)

__rsub__(self, other: float)

__rmul__(self, other: float)

__rtruediv__(self, other: float)

__rpow__(self, other: float)

__radd__(self, other: int)

__rsub__(self, other: int)

__rmul__(self, other: int)

__rtruediv__(self, other: int)

__rpow__(self, other: int)

__add__(self, other: complex)

__sub__(self, other: complex)

__mul__(self, other: complex)

__truediv__(self, other: complex)

__eq__(self, other: complex)

__ne__(self, other: complex)

__pow__(self, other: int)

__pow__(self, other: complex)

__repr__(self)

Methods

conjugate(self)


int @extend Class is extended to add given methods

Magic methods

__suffix_j__(x: int)


float @extend Class is extended to add given methods

Magic methods

__complex__(self)

__suffix_j__(x: float)


f32 = float32


complex64 @extend Class is extended to add given methods

Magic methods

__new__()

__new__(other)

__new__(real: f32)

__new__(other: complex)

__new__(real, imag)

__complex__(self)

__bool__(self)

__pos__(self)

__neg__(self)

__abs__(self)

__copy__(self)

__hash__(self)

__add__(self, other: complex)

__sub__(self, other: complex)

__mul__(self, other: complex)

__truediv__(self, other: complex)

__pow__(self, other: complex)

__eq__(self, other: complex)

__ne__(self, other: complex)

__radd__(self, other: complex)

__rsub__(self, other: complex)

__rmul__(self, other: complex)

__rtruediv__(self, other: complex)

__rpow__(self, other: complex)

__add__(self, other: float32)

__sub__(self, other: float32)

__mul__(self, other: float32)

__truediv__(self, other: float32)

__pow__(self, other: float32)

__eq__(self, other: float32)

__ne__(self, other: float32)

__radd__(self, other: float32)

__rsub__(self, other: float32)

__rmul__(self, other: float32)

__rtruediv__(self, other: float32)

__rpow__(self, other: float32)

__add__(self, other: float)

__sub__(self, other: float)

__mul__(self, other: float)

__truediv__(self, other: float)

__pow__(self, other: float)

__eq__(self, other: float)

__ne__(self, other: float)

__radd__(self, other: float)

__rsub__(self, other: float)

__rmul__(self, other: float)

__rtruediv__(self, other: float)

__rpow__(self, other: float)

__add__(self, other: int)

__sub__(self, other: int)

__mul__(self, other: int)

__truediv__(self, other: int)

__eq__(self, other: int)

__ne__(self, other: int)

__radd__(self, other: int)

__rsub__(self, other: int)

__rmul__(self, other: int)

__rtruediv__(self, other: int)

__rpow__(self, other: int)

__add__(self, other: complex64)

__sub__(self, other: complex64)

__mul__(self, other: complex64)

__truediv__(self, other: complex64)

__eq__(self, other: complex64)

__ne__(self, other: complex64)

__pow__(self, other: int)

__pow__(self, other: complex64)

__repr__(self)

__str__(self)

Methods

conjugate(self)


int @extend Class is extended to add given methods

Magic methods

__complex__(self)