oswald/metawatch/sintab.py

10 lines
200 B
Python
Raw Permalink Normal View History

2021-02-14 18:03:13 +01:00
import sys
import math
sys.stdout.write ("int16_t sintab[]={ ")
for i in range (0, 360):
sys.stdout.write ("%4.0f," % (math.sin(((2*3.14159265358979323846)/360)*i)*100))
sys.stdout.write ("};\n")