simpeg.utils.coterminal#

simpeg.utils.coterminal(theta)[source]#

Compute coterminal angle

For a set of angles defined in radians, this function outputs their coterminal angles. That is, for an angle \(\theta\) where:

\[\theta = 2\pi N + \gamma\]

and N is an integer, the function returns the value of \(\gamma\). The coterminal angle \(\gamma\) is within the range \([-\pi , \pi)\).

Parameters:
thetaarray_like

Input angles

Returns:
numpy.ndarray

Coterminal angles