Go to Post Multiple event winners are what drive me and my friends to be better and achieve more. - Akash Rastogi [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 31-10-2001, 21:53
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
I did a quick search on google and found that arcsin(x) = pi/2 - sqrt(1 - x)(a0 + a1*x + a2*x^2 + a3*x^3),

where
a0 = 1.5707288
a1 = -0.2121144
a2 = 0.0742610
a3 = -0.0187293

============
I tested this for x = 1/2:
Expected result: pi/6 = 0.523599 rads
Result using above equation: 0.523645 rads
a difference of 0.000046 rads (0.0026 degrees)

and again for x = sqrt(3)/2:
Expected result: pi/3 = 1.047198 rads
Result using above equation: 1.047174 rads
a difference of 0.000024 rads (0.0014 degrees)
============

then I rounded all of the a values to the nearest thousanth
a0 = 1.571
a1 = -0.212
a2 = 0.074
a3 = -0.019

and did it again

============
x = 1/2:
Expected result: pi/6 = 0.523599 rads
Result using above equation: 0.523483 rads
a difference of 0.000116 rads (0.0066 degrees)

x = sqrt(3)/2:
Expected result: pi/3 = 1.047198 rads
Result using above equation: 1.047174 rads
a difference of 0.000023 rads (0.0013 degrees)
============

Even the one rounded to the thousandths seems accurate enough for me. However, the equation still seems fairly proccessor intensive. I'm not sure how long it would take to calculate it using this method. Maybe someone could test both this method and the other method to see which one is faster.

BTW, you might even be able to round to the hundredths. I'm too lazy to do that right now

Last edited by Jay Lundy : 31-10-2001 at 21:56.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gearing design calculation question caffel Motors 4 24-03-2003 17:34
Motor Calculation Spreadsheet MrB Motors 0 16-02-2002 07:14


All times are GMT -5. The time now is 07:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi