Post Reply 
Program listing for RPN Sunrise/Sunset
10-14-2017, 05:25 PM (This post was last modified: 10-14-2017 05:37 PM by Dieter.)
Post: #2
RE: Program listing for RPN Sunrise/Sunset
(10-14-2017 04:10 PM)Craig Bladow Wrote:  In the Articles section there is a listing for Program to calculate Sunrise/Sunset times. I came across a character in the program listing on line 68 (and others) that is puzzling. It looks like it should be an operator, but the section of listing below includes the other common arithmetic operators. Can someone explain what this is?

If you look at the DOY routine it seems that this "•" must be a minus. This also matches line 68 where the difference between 6:00 resp. 18:00 h and the longitude divided by 15° (R07) is calculated. The same is true for the code around line 145 where, depending on flag 02, either a longitude or 360° minus this is calculated.

BTW there seems to be a similar problem with the 35s version. There are several lines with an "1." which also seems to stand for a "–" minus.

However I wonder why this "•" or "1." lines appear in the listing while elsewhere a simple "–" seems to work fine.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Program listing for RPN Sunrise/Sunset - Dieter - 10-14-2017 05:25 PM



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