rect#

rect(r: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex], phi: Union[jax.Array, numpy.ndarray, numpy.bool_, numpy.number, bool, int, float, complex]) jax.Array[source]#

Convert from polar to rectangular coordinates element-wise.

Parameters
  • r (ArrayLike) – The real radii of the complex-valued numbers.

  • phi (ArrayLike) – The real phase of the complex-valued numbers.

Returns

An array of complex-valued numbers.

Return type

ArrayLike