{"id":1664,"date":"2014-12-03T11:33:03","date_gmt":"2014-12-03T11:33:03","guid":{"rendered":"http:\/\/www.dyalog.com\/blog\/?p=1664"},"modified":"2014-12-04T10:45:05","modified_gmt":"2014-12-04T10:45:05","slug":"ken-iversons-favourite-apl-expression","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2014\/12\/ken-iversons-favourite-apl-expression\/","title":{"rendered":"Ken Iverson&#8217;s Favourite APL Expression?"},"content":{"rendered":"<p>What was Ken Iverson&#8217;s favourite APL expression? I don&#8217;t know that he had one and if he had I don\u2019t know what it was, but if I have to guess \u2026<\/p>\n<p>From <a href=\"http:\/\/www.jsoftware.com\/papers\/amuse-bouches.htm#8\"><i>Sixteen APL Amuse-Bouches<\/i><\/a>:<\/p>\n<div style=\"margin: 15px 30px 15px 30px;\">The expression <code class=\"language-apl\">(0,x)+(x,0)<\/code> or its commute, which generates the next set of binomial coefficients, is present in the document that introduced <em>APL<\/em>\\360 in 1967 <acronym title=\"Falkoff, A.D., and K.E. Iverson, The APL\\360 Terminal System, Research Report RC-1922, IBM, 1967-10-16.\">[20,\u00a0Fig.1]<\/acronym> and the one that introduced J in 1990 <acronym title=\"Hui, R.K.W., K.E. Iverson, E.E. McDonnell, and A.T. Whitney, APL\\?, APL90, APL Quote Quad, Volume 20, Number 4, 1990-07.\">[21,\u00a0Gc&amp;Gd]<\/acronym>; in <em>Elementary Functions: An Algorithmic Treatment<\/em> in 1966 <acronym title=\"Iverson, K.E., Elementary Functions: An Algorithmic Treatment, Science Research Associates, Inc., 1966.\">[22,\u00a0p.69]<\/acronym>, in <em>APL\\360 User&#8217;s Manual<\/em> in 1968 <acronym title=\"Falkoff, A.D. and K.E. Iverson, APL\\360 User's Manual, IBM Corporation, 1968-08.\">[23,\u00a0A.5]<\/acronym>, in <em>Algebra: An Algorithmic Treatment<\/em> in 1972 <acronym title=\"Iverson, K.E., Algebra: An Algorithmic Treatment, Addison-Wesley, 1972.\">[24,\u00a0p.141]<\/acronym>, in <em>Introducing APL to Teachers<\/em> in 1972 <acronym title=\"Iverson, K.E., Introducing APL to Teachers, IBM Corporation, 1972-07.\">[25,\u00a0p.22]<\/acronym>, in <em>An Introduction to APL for Scientists and Engineers<\/em> in 1973 <acronym title=\"Iverson, K.E., An Introduction to APL for Scientists and Engineers, IBM Corporation, 1973-03.\">[26,\u00a0p.19]<\/acronym>, in <em>Elementary Analysis<\/em> in 1976 <acronym title=\"Iverson, K.E., Elementary Analysis, APL Press, 1976.\">[27,\u00a0ex.1.68]<\/acronym>, in <em>Programming Style in APL<\/em> in 1978 <acronym title=\"Iverson, K.E., Programming Style in APL, 1978 APL Users Meeting Proceedings, 1978-09-18.\">[28,\u00a0\u00a76]<\/acronym>, in <em>Notation as a Tool of Thought<\/em> in 1980 <acronym title=\"Iverson, K.E., Notation as a Tool of Thought, Communications of the ACM, Volume 23, Number 8, 1980-08.\">[29,\u00a0A.3]<\/acronym>, in <em>A Dictionary of APL<\/em> in 1987 <acronym title=\"Iverson, K.E., A Dictionary of APL, APL Quote Quad, Volume 18, Number 1, 1987-09.\">[30, <code class=\"language-apl\">m\u2207n<\/code>]<\/acronym>, and probably others.<\/div>\n<p>The expression in action:<\/p>\n<pre><code class=\"language-apl\">   \u2395\u2190x\u2190,1\r\n1\r\n   \u2395\u2190x\u2190(0,x)+(x,0)\r\n1 1\r\n   \u2395\u2190x\u2190(0,x)+(x,0)\r\n1 2 1\r\n   \u2395\u2190x\u2190(0,x)+(x,0)\r\n1 3 3 1\r\n   \u2395\u2190x\u2190(0,x)+(x,0)\r\n1 4 6 4 1\r\n   \u2395\u2190x\u2190(0,x)+(x,0)\r\n1 5 10 10 5 1\r\n   \u2395\u2190x\u2190(0,x)+(x,0)\r\n1 6 15 20 15 6 1\r\n<\/code><\/pre>\n<p>It is easily seen from the expression that the <code class=\"language-apl\">n<\/code>-th vector of binomial coefficients is a palindrome and that its sum is <code class=\"language-apl\">2*n<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What was Ken Iverson&#8217;s favourite APL expression? I don&#8217;t know that he had one and if he had I don\u2019t know what it was, but if I have to guess \u2026 From Sixteen APL Amuse-Bouches: The expression (0,x)+(x,0) or its &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2014\/12\/ken-iversons-favourite-apl-expression\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,23],"tags":[],"class_list":["post-1664","post","type-post","status-publish","format-standard","hentry","category-apl-language","category-musings"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/1664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=1664"}],"version-history":[{"count":10,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/1664\/revisions"}],"predecessor-version":[{"id":1678,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/1664\/revisions\/1678"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=1664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=1664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=1664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}