Jump to content

Cos(): Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

21 July 2026

  • curprev 13:0213:02, 21 July 2026 Dcurrent talk contribs 7,964 bytes −17 →Lookup Table Tag: Visual edit
  • curprev 12:4512:45, 21 July 2026 Dcurrent talk contribs 7,981 bytes +7,981 Created page with "Accepts an integer angle input of <code>0</code> to <code>359</code> and outputs the cosine from the following lookup table. Out of bounds values are capped between <code>0</code> to <code>359</code>.<syntaxhighlight lang="c" line="1"> int input = 1; float result = cos(input); // result = 0.9998476951563913 </syntaxhighlight> == Lookup Table == <syntaxhighlight lang="c"> float {result} = cos_table[({input} % 360 + 360) % 360]; // Lookup formula. float cos_table[] = /..." Tag: Visual edit