Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Box-the-compass/PARI-GP/box-the-compass.parigp
Normal file
7
Task/Box-the-compass/PARI-GP/box-the-compass.parigp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
box(x)={["North","North by east","North-northeast","Northeast by north","Northeast",
|
||||
"Northeast by east","East-northeast","East by north","East","East by south","East-southeast",
|
||||
"Southeast by east","Southeast","Southeast by south","South-southeast","South by east","South",
|
||||
"South by west","South-southwest","Southwest by south","Southwest","Southwest by west","West-southwest",
|
||||
"West by south","West","West by north","West-northwest","Northwest by west","Northwest",
|
||||
"Northwest by north","North-northwest","North by west"][round(x*4/45)%32+1]};
|
||||
for(i=0,32,print(i%32+1" "box(x=i*11.25+if(i%3==1,5.62,if(i%3==2,-5.62)))" "x))
|
||||
Loading…
Add table
Add a link
Reference in a new issue