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 θ where:

θ=2πN+γ

and N is an integer, the function returns the value of γ. The coterminal angle γ is within the range [π,π).

Parameters:
thetaarray_like

Input angles

Returns:
numpy.ndarray

Coterminal angles