angle#
- class brainunit.math.angle(x, unit_to_scale=None, **kwargs)#
Return the angle of the complex argument, element-wise.
- Parameters:
- Returns:
out – Angle in radians, in
(-pi, pi].- Return type:
Array
Examples
>>> import saiunit as u >>> import jax.numpy as jnp >>> u.math.angle(jnp.array([1.0 + 1.0j, 1.0 + 0.0j])) Array([0.7853982, 0. ], dtype=float32)