Angle difference between two bearings: Difference between revisions
Content added Content deleted
(Added APL entry.) |
m (→{{header|REXX}}: changed the REXX program description comment.) |
||
Line 978: | Line 978: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
A little extra coding was added for a better visual presentation; the angles were centered, the answers were aligned. |
A little extra coding was added for a better visual presentation; the angles were centered, the answers were aligned. |
||
<lang rexx>/*REXX pgm calculates |
<lang rexx>/*REXX pgm calculates difference between two angles (in degrees), normalizes the result.*/ |
||
numeric digits 25 /*use enough decimal diigits for angles*/ |
numeric digits 25 /*use enough decimal diigits for angles*/ |
||
call show 20, 45 /*display the angular difference (deg).*/ |
call show 20, 45 /*display the angular difference (deg).*/ |