Go to Post Coaxial swerve modules with a suspension and differential aren't normal. But on Winnovation they are. - Andrew Schreiber [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
  #12   Spotlight this post!  
Unread 05-11-2001, 08:31
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
In going through the Basic Stamp Pbasic manual, the greatest obstacle I can see to implementing the Newton's Method algorithm is in the division step. The manual recommends that division NOT be performed in cases where either numerator or denominator are negative; results can be unpredictable. For the demoninator, cos(x), this is not a problem over the restricted range -pi/2 to +pi/2. However, the numerator can certainly go negative. The additional steps necessary to handle that make the algorithm needlessly complicated and slow - getting back to Dr. Joe's wise advice about time of execution.

The second difficulty comes from the different sizes of the sin function argument and result. SIN takes a byte argument (-127 to +127), and outputs a word result (-32,767 to +32,767). Scaling the word result back down to byte-size to send back through the function at the next iteration could be tricky (i.e., an infinite sink of time trying to work out the programming).

It could be that Jay Lundy's method (which looks to me like a truncated Maclaurin series, or Taylor series about x=0) may actually be more efficient.

Math on a Basic Stamp is definitely not for the faint of heart.
__________________
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