Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Numpy
print(np.cos(np.deg2rad(np.array((0.,30.,45.)))))
#[Output]:
#array([1. , 0.8660254 , 0.70710678])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.