Skip to content

Instantly share code, notes, and snippets.

@Robofied
Created February 15, 2019 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robofied/ac796702d5c8931d2ef0eeba09287651 to your computer and use it in GitHub Desktop.
Save Robofied/ac796702d5c8931d2ef0eeba09287651 to your computer and use it in GitHub Desktop.
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