9 lines
200 B
Python
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")
|