Simple examples: Difference between revisions

Jump to navigation Jump to search
3 bytes added ,  15:06, 26 June 2020
m
(greek alpha and omega → apl alpha and omega (regular greek letters return a syntax error in Dyalog APL))
m (→‎Operators: mistake)
Line 35: Line 35:
So back to our mean example. <source lang=apl inline>(+⌿⍵)</source> gives the sum of the list, which is then divided by <source lang=apl inline>≢⍵</source>, the number elements in it.
So back to our mean example. <source lang=apl inline>(+⌿⍵)</source> gives the sum of the list, which is then divided by <source lang=apl inline>≢⍵</source>, the number elements in it.
<source lang=apl>
<source lang=apl>
       {(+)÷≢⍵} 3 4.5 7 21
       {(+⌿⍵)÷≢⍵} 3 4.5 7 21
8.875
8.875
</source>
</source>
trusted
69

edits

Navigation menu