#tabela sinusa /256 z obmocjem +/-127 v izhodni izpis 'sintab.s'
import math
izpis=open('sintab.s','w')
i=0
while i<320:
	if i%16==0:
		g=chr(13)+chr(10)+chr(9)+'DCB'+chr(9)
		print g,
		izpis.write(g)
	f=127.0*math.sin(math.radians(i*360.0/256.0))
	ff=0.5
	if f<0:
		ff=-0.5
	f=str(int(f+ff))
	print f,
	izpis.write(f)
	i=i+1
	if i%16<>0:
		izpis.write(',')
#konec
