Last active
August 6, 2019 14:30
-
-
Save quantumjim/d85c70df24217e7330873a0e7698d7ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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