projects
/
debian
/
gnuradio
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
if you ever tried to interpolate by 44 it didn't work. now it does.
[debian/gnuradio]
/
usrp
/
fpga
/
sdr_lib
/
gen_cordic_consts.py
1
#!/usr/bin/env python
2
3
import math
4
5
zwidth = 16
6
7
for i in range(17):
8
c = math.atan (1.0/(2**i)) / (2 * math.pi) * (1 << zwidth)
9
print "`define c%02d %d'd%d" % (i, zwidth, round (c))
10