xir.DecimalComplex¶
- class DecimalComplex(real: Union[str, Decimal] = '0.0', imag: Union[str, Decimal] = '0.0')[source]¶
Bases:
ComplexComplex numbers represented by precision
decimal.Decimalterms.- Parameters
real (str, Decimal) – the real part of the complex number. Defaults to
0.0if not input.imag (str, Decimal) – The imaginary part of the complex number. Defaults to
0.0if not input.
Attributes
Return the imaginary part of the complex number.
Return the real part of the complex number.
- imag¶
Return the imaginary part of the complex number.
- real¶
Return the real part of the complex number.
Methods
api/xir.DecimalComplex
Download Python script
Download Notebook
View on GitHub