rect_2_polar

pmrf.math.rect_2_polar(x, deg=False)

Convert rectangular (complex) coordinates to polar coordinates.

Parameters:
  • x (jnp.ndarray) – Complex number input.

  • deg (bool, optional, default=False) – If True, return angle in degrees.

Returns:

  • radii (jnp.ndarray) – Magnitude.

  • angles (jnp.ndarray) – Phase angle.