Angle difference between two bearings: Difference between revisions
Angle difference between two bearings (view source)
Revision as of 11:39, 13 March 2017
, 7 years ago→{{header|Haskell}}: ( applicative inlining of row display function )
m (→{{header|Haskell}}: (layout, function name, narrowed import)) |
m (→{{header|Haskell}}: ( applicative inlining of row display function )) |
||
Line 216:
main =
mapM_ putStrLn $
uncurry
[ (20.0, 45.0)
, (-45.0, 45.0)
Line 223 ⟶ 224:
, (-45.0, 125.0)
, (-45.0, 145.0)
]</lang>
▲ printf "%6.2f° + %6.2f° -> %7.2f°" x y $ angleBetweenDegrees x y</lang>
{{Out}}
<pre> 20.00° + 45.00° -> 25.00°
|