oswald/metawatch/sintab.py
2021-02-14 18:03:13 +01:00

9 lines
200 B
Python

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")