Skip to content

Humble-pie Corner

Vector 5:3, page 19

education programming techniques

Transcribed from the printed issue; not yet reviewed. Read it in the PDF of the issue, page 19

Typesetting APL code is always a challenge; a couple of small glitches crept in to the last Education Vector, namely:

PAGE←2 3 4 20⍴⍳480

… half way down page 21. Also several places where there should have been a new-line to distinguish the bit you typed in from APL’s response. An example would be:

      +/(⍳6)∘.=NOS
2 3 1 2 1 1

… on page 28. At least one sharp-eyed reader (aged 5) spotted that you actually get:

1 5
3 3
5 2

… as the mid-interval frequency table, not 6 3 2 as shown. At some point the vector NOS must have gained an extra element, as there were definitely only 10 numbers in the initial list!