(mag, phase_angle)
return mag * phase
Convert polar-form complex number to its rectangular form.
Convert polar-form complex number to its rectangular form.
Convert polar - form complex number to its rectangular form .
def polar2rect(mag, phase_angle):
  """Convert polar-form complex number to its rectangular form."""
  mag = tf.complex(mag, tf.convert_to_tensor(0.0, dtype=mag.dtype))
  phase = tf.complex(tf.cos(phase_angle), tf.sin(phase_angle))
  return mag * phase
def polar2rect ( mag , phase_angle ) : mag = tf . complex ( mag , tf . convert_to_tensor ( 0.0 , dtype = mag . dtype ) ) phase = tf . complex ( tf . cos ( phase_angle ) , tf . sin ( phase_angle ) ) return mag * phase