Source code for aerosandbox.numpy.trig
import numpy as _onp
from numpy import pi as _pi
[docs]def sind(x):
"""Returns the sin of an angle x, given in degrees"""
return _onp.sin(radians(x))
[docs]def cosd(x):
"""Returns the cos of an angle x, given in degrees"""
return _onp.cos(radians(x))
[docs]def tand(x):
"""Returns the tangent of an angle x, given in degrees"""
return _onp.tan(radians(x))
[docs]def arctan2d(y, x):
"""Returns the angle associated with arctan(y, x), in degrees"""
return degrees(_onp.arctan2(y, x))