Difference between revisions of "ESM Math Library"
→Stage 22: Arccosine
imported>Galsiah |
imported>Galsiah |
||
Line 373: | Line 373: | ||
Based on [[Trigonometry_Functions|Trigonometry Functions]] Article | Based on [[Trigonometry_Functions|Trigonometry Functions]] Article | ||
Takes a float.<br> | |||
Returns the Arccosine in RADIANS as a float.<br> | |||
Implementation relies on Stage 21.<br> | |||
Code for the Stage Result Script: | Code for the Stage Result Script: | ||
<pre>;FUNCTION float Arccosine(float cos) | <pre>;FUNCTION float Arccosine(float cos) | ||
setStage f | setStage f 21 ;Call Arcsine with same input (RADIAN version!! so 21) | ||
set f.fout to ((f.pi / 2) - f.fout)</pre> | set f.fout to ((f.pi / 2) - f.fout)</pre> | ||