RosettaCodeData/Task/Box-the-compass/Mathematica/box-the-compass.math

3 lines
133 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
Map[List[Part[#,1], dirs[[Part[#,1]]], ToString@Part[#,2]<>"°"]&,
Map[{Floor[Mod[ #+5.625 , 360]/11.25]+1,#}&,input] ]//TableForm