Simple examples: Difference between revisions
Jump to navigation
Jump to search
→Tacit programming
Miraheze>Adám Brudzewsky |
Miraheze>Adám Brudzewsky |
||
Line 61: | Line 61: | ||
</source> | </source> | ||
The operator <source lang=apl inline> | The operator <source lang=apl inline>⌿</source> can also be used to modify the <source lang=apl inline>(+⌿÷≢)</source> function to produce a moving average. | ||
<source lang=apl> | <source lang=apl> | ||
2 (+⌿÷≢)/ 3 4.5 7 21 | 2 (+⌿÷≢)/ 3 4.5 7 21 | ||
Line 71: | Line 71: | ||
ave 3 4.5 7 21 | ave 3 4.5 7 21 | ||
8.875 | 8.875 | ||
mave ← | mave ← ave⌿ | ||
2 mave 3 4.5 7 21 | 2 mave 3 4.5 7 21 | ||
3.75 5.75 14 | 3.75 5.75 14 |