Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Where is Arcsin? (https://forums.graalonline.com/forums/showthread.php?t=67187)

Novo 07-07-2006 05:25 AM

Where is Arcsin?
 
Umm... Clientside doesn't have arcsin/arccos function! Why is that?

Temp Solution:

PHP Code:

function arcsin)
  {
  
temp.step 10000;
  for ( 
0abs(i); += temp.step )
    
temp.sum += (/ (j^2)^0.5) * temp.step ;
  return 
temp.sum;
  } 

=] Actually... That's only a rough estimation. To get a more accurate answer, one would have to make the steps an infinitely small size... But there is a loop limit to Graal!

Admins 07-07-2006 09:50 AM

PHP Code:

function arcsin(val) return arctan(val/((1-val^2)^0.5)); 

You can 'easily' calculate arcsin and arccos using the arctan function, but in the recent versions arcsin and arccos are also built-in functions (it is in my version but not in the public version yet).


All times are GMT +2. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.