Go to Post Even in the worst times, I get a reminder of just how wonderful my big FIRST family is. - 216Robochick288 [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
  #2   Spotlight this post!  
Unread 30-10-2001, 06:16
Leo M Leo M is offline
Registered User
#0384 (Tucker Tigers)
 
Join Date: Jun 2001
Location: Richmond, VA
Posts: 70
Leo M is just really niceLeo M is just really niceLeo M is just really niceLeo M is just really niceLeo M is just really nice
After looking up some information on 'two's complement' arithmetic, I think the arcsin algorithm should work just fine in Pbasic. You run into problems doing 'two's complement' calculations with very large numbers, and get strange results like adding two large positive numbers and getting a negative result. However, all of the functions in the arcsin calculation are bounded. The sine and cosine range between -1 and 1, the arcsin result will be between -pi/2 and pi/2, the epsilon constant will be a small positive number, and the 'first guess' will also fall between -1 and 1. So, this algorithm should rapidly converge to the angle you are looking for and not head off into deep space.

By the way, does anyone find any of this useful, or even interesting? I love this kind of stuff, but then, I have gotten strange looks all my life and am used to them. Actually, I like them. But, have I gone too deep into the Nerdly Woods to interest even confirmed FIRST-ers?
__________________
Leo M.
 


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