Dyalog / APLCourse

Dyalog APL self-study course
https://course.dyalog.com
8 stars 3 forks source link

basic syntax and arithmetic: match step-by-step with solution #43

Closed rikedyp closed 1 year ago

rikedyp commented 1 year ago

From a user 「Just a small comment on the Basic Syntax page (course.dyalog.com/basic-syntax-and-arithmetic).

In the section on Order of Execution, the third example shows an incorrect result. I was confused until I clicked the Show me step-by-step. The example shows

(10×⍳2)+5

and gives an incorrect result

16 17

But the Show me step-by-step shows that the multiply symbol is supposed to be an add symbol and in that case, the result is correct.」