Post Reply 
Solved: what is wrong with this LatLong->Distance code? A Trigonometry "feature".
10-13-2016, 04:52 PM (This post was last modified: 10-13-2016 05:04 PM by StephenG1CMZ.)
Post: #5
RE: Can you see what is wrong with this LatLong->Distance code?
Thank you so much for that insight Guenter - I have only briefly read your answer and need to re-read it more thoroughly.

But if I understand you, these two SIN's give different answers, despite - one would have thought - being the same calculation (my home setting is Radians default).

Code:


 EXPORT HMSBUG()
 BEGIN
  IF SIN(12°30′″)≠SIN(HMS→(12°′30″)) THEN
   PRINT("THAT SEEMS WRONG");
  ELSE
   PRINT("SIN WORKS");
  END;
 END;
My understanding of HMS is that it changed how a value was displayed, whether 12.5 or 12:30 - not that it changed the resulting answers! That is so unexpected to me that I would consider it a bug. (The answers differ completely, not just a rounding of the presentation value).

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Can you see what is wrong with this LatLong->Distance code? - StephenG1CMZ - 10-13-2016 04:52 PM



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