
header <napatool.hdr>
header <Resource/cordic.hdr>

fs     1.0e6

title  "File $F"   // $F is predefined in the macropreprocessor MAC

# ************************************************************
init  void     CORDIC_tables_compute(60, 16)

node   x       dalgebra  _pi2_ - (_pi_*1234.56789*TIME)
node   a       dalgebra         cos(x)
node   b       dalgebra  CORDIC_cos(x)
node   c       dalgebra  ABS(a-b)

node   y       dalgebra  RAD2DEG(x)
node   z       cell mx  <Range/dmax.net>  c

# ************************************************************
terminate  TIME >= 1.0/1234.56789

# ************************************************************
decimate  10

output stderr  y  a b c  z

# ************************************************************
directive   NO_TIME_OUTPUT
debug       CORDIC