Skip to content

Instantly share code, notes, and snippets.

@quantumjim
Last active August 6, 2019 14:30
Show Gist options
  • Save quantumjim/d85c70df24217e7330873a0e7698d7ed to your computer and use it in GitHub Desktop.
Save quantumjim/d85c70df24217e7330873a0e7698d7ed to your computer and use it in GitHub Desktop.
pi=3.14159265359
def cos(T):
T=T%(2*pi)
c=1
t=1
for j in range(1,16):
t=-t*T**2/(2*j*(2*j-1))
c+=t
return c
def sin(T):
return cos(T-pi/2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment