Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-07-2006, 05:25 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
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!

Last edited by Novo; 07-07-2006 at 05:51 AM..
Reply With Quote
  #2  
Old 07-07-2006, 09:50 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:49 AM.


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