#tabela 3.harmonika /256 z obmocjem +/-127 v izhodni izpis 'sin3tab.s' import math izpis=open('sin3tab.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(3.0*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