CORDIC: Difference between revisions

Content added Content deleted
(Added C)
m (→‎{{header|C}}: Added a note.)
Line 34: Line 34:
=={{header|C}}==
=={{header|C}}==
{{trans|Wren}}
{{trans|Wren}}
If the M_PI constant is not defined in your ''math.h'', then you can use 4 * atan(1) instead.
<syntaxhighlight lang="c">#include <stdio.h>
<syntaxhighlight lang="c">#include <stdio.h>
#include <math.h>
#include <math.h>