Difference between revisions of "ESM Math Library"

Jump to navigation Jump to search
15 bytes removed ,  21:56, 10 May 2006
imported>Galsiah
imported>Galsiah
Line 374: Line 374:


Takes a float.<br>
Takes a float.<br>
Returns the Arccosine in RADIANS as a float.<br>
Returns the Arccosine in DEGREES as a float.<br>
Implementation relies on Stage 21.<br>
Implementation relies on Stage 20.<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 21 ;Call Arcsine with same input (RADIAN version!! so 21)  
setStage f 20 ;Call Arcsine with same input (DEGREES version)  
set f.fout to ((f.pi / 2) - f.fout)</pre>
set f.fout to (90 - f.fout)</pre>


Usage in another script:
Usage in another script:
Anonymous user

Navigation menu