Horizontal sundial calculations: Difference between revisions

→‎{{header|Forth}}: Prevent unexpected sign change in output
m (→‎{{header|REXX}}: added more FUZZ digits to COS subroutine.)
(→‎{{header|Forth}}: Prevent unexpected sign change in output)
Line 729:
faccept
cr ." Enter legal meridian: "
faccept f- fnegate ( sin[latitude] -longitude )
cr ." Hour : HourAngle , DialAngle"
7 -6 do
cr i 4 .r ." : "
fover fover fnegate i 15 * s>d d>f f+
fdup f. ." , "
>radians ftanfsincos fswap frot f* fatanfswap fatan2 >degrees f.
loop fdrop fdrop ;</lang>