Difference between revisions of "ESM Math Library"

Jump to navigation Jump to search
133 bytes added ,  21:52, 10 May 2006
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 20 ;Call Arcsine with same input
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>


Anonymous user

Navigation menu