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 the difference between 2 angles (degrees), normalizes the result. */
<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).*/