Simple examples: Difference between revisions

Jump to navigation Jump to search
3 bytes added ,  20:43, 7 November 2019
Miraheze>RikedyP
Miraheze>Adám Brudzewsky
Line 45: Line 45:
└────────────────────┘
└────────────────────┘
</source>
</source>
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 of its elements.
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>

Navigation menu