Last active
August 29, 2015 14:07
-
-
Save make-github-pseudonymous-again/6ba71fb8b25b4e84eb3c to your computer and use it in GitHub Desktop.
helloworld using the sine and cosine function
This file contains 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
from math import * | |
def f(x): | |
return int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\ | |
+ 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\ | |
+ 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\ | |
+ 5.878*sin(5*x*1.118))) | |
print "".join([chr(f(x)) for x in range(12)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment