Current issue

Vol.26 No.4

Vol.26 No.4

Volumes

© 1984-2024
British APL Association
All rights reserved.

Archive articles posted online on request: ask the archivist.

archive/24/4

Volume 24, No.4

  • Proof for author
  • 0.1

Bring something beautiful

Roger Hui

The following e-mail exchange took place on 2010-06-24 during a discussion on numeric representation.

Morten Kromberg: And… I shall fight against adding any form of NaN / Infinity – to the death! They will horribly complicate our implementation and don’t help users do anything useful.

Roger Hui: In the year 2033 Earth was discovered by Survey Fleet MCXII of the Galactic Empire. The Emperor ordered Earth to send a representative to the court, with strict instructions to “bring something beautiful”.

Emperor
What beautiful things does Earth have?
Earth Representative
Your excellency, our mathematician Euler proved in our year 1737 that +/(1+⍳∞)*-s ←→ ×/÷1-(⍭⍳∞)*-s
Emperor
What is the symbol?
Earth Rep.
⍭i is the i-th prime.
Emperor
And what is ∞? Does it do anything useful?
Earth Rep.
It denotes infinity, your excellency.
Emperor
(ponders equation for a minute or two) Respect!
Emperor
Neat notation you have there. Tell me more.
Earth Rep.
Your excellency, it’s called APL. It was invented by the Canadian Kenneth E. Iverson…

 

script began 3:37:32
caching off
debug mode off
cache time 3600 sec
indmtime not found in cache
cached index is fresh
recompiling index.xml
index compiled in 0.188 secs
read index
read issues/index.xml
identified 26 volumes, 101 issues
array (
  'id' => '10500390',
)
regenerated static HTML
article source is 'XHTML'
completed in 0.2085 secs