// output of ./demo/arith/cordic-circ-demo.cc: // Description: //% CORDIC computation of sine and cosine. arg 1: 1.0472 == t [Argument for CORDIC sin/cos computation] default=1.0472 arg 2: 16 == n [Number of iterations] default=16 -1 0.60725293 0.00000000 +1.04719755 +0.00000000 0 0.60725293 0.60725293 +0.26179938 -0.78539816 1 0.30362646 0.91087940 -0.20184822 -0.46364760 2 0.53134631 0.83497278 +0.04313044 +0.24497866 3 0.42697471 0.90139107 -0.08122455 -0.12435499 4 0.48331166 0.87470515 -0.01880574 +0.06241880 5 0.51064619 0.85960166 +0.01243409 +0.03123983 6 0.49721492 0.86758051 -0.00318963 -0.01562372 7 0.50399289 0.86369602 +0.00462270 +0.00781234 8 0.50061908 0.86566474 +0.00071647 -0.00390623 9 0.49892833 0.86664251 -0.00123664 -0.00195312 10 0.49977466 0.86615528 -0.00026008 +0.00097656 11 0.50019758 0.86591124 +0.00022819 +0.00048828 12 0.49998618 0.86603336 -0.00001594 -0.00024414 13 0.50009190 0.86597233 +0.00010612 +0.00012207 14 0.50003904 0.86600285 +0.00004508 -0.00006103 15 0.50001261 0.86601811 +0.00001457 -0.00003051 9999 0.50000000 0.86602540 +0.00000000 +0.00000000 dc = 1.261868568147583858e-05 ds = -7.285703386927799841e-06 2**(-n) = 1.52587890625e-05