xir.DecimalComplex

class DecimalComplex(real: Union[str, Decimal] = '0.0', imag: Union[str, Decimal] = '0.0')[source]

Bases: Complex

Complex numbers represented by precision decimal.Decimal terms.

Parameters
  • real (str, Decimal) – the real part of the complex number. Defaults to 0.0 if not input.

  • imag (str, Decimal) – The imaginary part of the complex number. Defaults to 0.0 if not input.

imag

Return the imaginary part of the complex number.

real

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.

conjugate()

Return the complex conjugate of its argument.

conjugate()[source]

Return the complex conjugate of its argument.