Post Reply 
Any Surveyors?
04-22-2016, 08:14 PM
Post: #55
RE: Any Surveyors?
(04-18-2016 02:25 AM)DavidM Wrote:  
(04-18-2016 01:54 AM)Brad Barton Wrote:  When working with vectors, I always run this simple subroutine before any angle output, because as you know the calculator will return angles in the -180 to +180 degree range. You can call it anything you like. I call it TEST360. I keep it in the Home directory so I can call it from any program I write.

Code:
IF 0. < THEN
   360. +
END

Brad, did you mean to put a DUP in there somewhere? Seems like one might be needed (either before or after the "IF" most likely).

Yes, you'd need a DUP in there for it to work correctly. Thanks for pointing that out.

Quote:I'm also wondering if this would work just as well:
Code:
360. MOD

Are there situations where it won't provide the correct results?

I like this very much, and I don't see any cases where it wouldn't return the correct answer. Thanks for the tip.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Any Surveyors? - CosmicTruth - 06-10-2014, 11:14 AM
RE: Any Surveyors? - MNH - 06-11-2014, 03:33 AM
RE: Any Surveyors? - Jacob Wall - 06-14-2014, 01:29 AM
RE: Any Surveyors? - CosmicTruth - 06-14-2014, 12:10 PM
RE: Any Surveyors? - Jacob Wall - 06-14-2014, 02:48 PM
RE: Any Surveyors? - rprosperi - 06-14-2014, 05:05 PM
RE: Any Surveyors? - CosmicTruth - 06-14-2014, 05:39 PM
RE: Any Surveyors? - Jacob Wall - 06-15-2014, 08:11 AM
RE: Any Surveyors? - HP67 - 06-16-2014, 02:56 PM
RE: Any Surveyors? - Jacob Wall - 06-17-2014, 01:46 AM
RE: Any Surveyors? - Peter Murphy - 06-15-2014, 02:38 PM
RE: Any Surveyors? - Jacob Wall - 06-15-2014, 09:01 PM
RE: Any Surveyors? - Peter Murphy - 06-16-2014, 02:49 PM
RE: Any Surveyors? - Jacob Wall - 06-17-2014, 01:30 AM
RE: Any Surveyors? - Peter Murphy - 06-17-2014, 03:10 PM
RE: Any Surveyors? - Jacob Wall - 06-18-2014, 02:25 AM
RE: Any Surveyors? - Thomas Klemm - 06-17-2014, 04:16 PM
RE: Any Surveyors? - Tim Wessman - 06-17-2014, 04:35 PM
RE: Any Surveyors? - CosmicTruth - 06-17-2014, 10:11 PM
RE: Any Surveyors? - Jacob Wall - 06-18-2014, 01:45 AM
RE: Any Surveyors? - CosmicTruth - 06-23-2014, 10:28 PM
RE: Any Surveyors? - RMollov - 06-24-2014, 01:34 AM
RE: Any Surveyors? - CosmicTruth - 06-24-2014, 02:28 AM
RE: Any Surveyors? - Alex Liggett - 03-22-2016, 08:15 AM
RE: Any Surveyors? - BrendanJ - 03-22-2016, 02:25 AM
RE: Any Surveyors? - Alex Liggett - 03-22-2016, 08:19 AM
RE: Any Surveyors? - RMollov - 03-29-2016, 12:03 AM
RE: Any Surveyors? - buffalo - 03-29-2016, 12:27 PM
RE: Any Surveyors? - MNH - 03-22-2016, 03:52 PM
RE: Any Surveyors? - MNH - 03-22-2016, 06:52 PM
RE: Any Surveyors? - MNH - 03-22-2016, 07:58 PM
RE: Any Surveyors? - BrendanJ - 03-23-2016, 02:29 AM
RE: Any Surveyors? - MNH - 03-23-2016, 04:01 PM
RE: Any Surveyors? - MNH - 03-26-2016, 01:33 PM
RE: Any Surveyors? - buffalo - 03-26-2016, 02:53 PM
RE: Any Surveyors? - RMollov - 03-27-2016, 01:41 PM
RE: Any Surveyors? - buffalo - 03-27-2016, 03:02 PM
RE: Any Surveyors? - John Keith - 03-29-2016, 02:04 AM
RE: Any Surveyors? - RMollov - 03-29-2016, 02:42 AM
RE: Any Surveyors? - MNH - 03-26-2016, 11:05 PM
RE: Any Surveyors? - ls41028 - 03-27-2016, 02:18 AM
RE: Any Surveyors? - buffalo - 03-29-2016, 08:21 AM
RE: Any Surveyors? - RMollov - 03-29-2016, 09:13 AM
RE: Any Surveyors? - RMollov - 03-29-2016, 09:17 AM
RE: Any Surveyors? - buffalo - 03-29-2016, 09:22 AM
RE: Any Surveyors? - RMollov - 03-29-2016, 11:01 AM
RE: Any Surveyors? - buffalo - 03-29-2016, 11:36 AM
RE: Any Surveyors? - John Keith - 03-29-2016, 04:03 PM
RE: Any Surveyors? - buffalo - 04-05-2016, 09:27 AM
RE: Any Surveyors? - BrendanJ - 04-17-2016, 07:35 PM
RE: Any Surveyors? - BrendanJ - 04-17-2016, 07:35 PM
RE: Any Surveyors? - Brad Barton - 04-18-2016, 01:54 AM
RE: Any Surveyors? - DavidM - 04-18-2016, 02:25 AM
RE: Any Surveyors? - Brad Barton - 04-22-2016 08:14 PM
RE: Any Surveyors? - BrendanJ - 04-18-2016, 07:18 AM



User(s) browsing this thread: 1 Guest(s)