yodel.complex module

This module provides utility functions for complex numbers.

yodel.complex.modulus(real, imag)

Compute the modulus of a complex number.

Parameters:
  • real – real part of the complex number
  • imag – imaginary part of the complex number
Return type:

modulus of complex number

yodel.complex.phase(real, imag)

Compute the phase of a complex number.

Parameters:
  • real – real part of the complex number
  • imag – imaginary part of the complex number
Return type:

phase of complex number