Defined function (traditional): Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 13: Line 13:
   res←2×local
   res←2×local
</source>
[[GNU APL]] allows functions and operators accept an axis argument:<ref>[https://www.gnu.org/software/apl/apl.html#Section-3_002e2 3.2 Axis argument in defined functions] – GNU APL Manual</ref>
<source lang=apl>
∇ Z←Average[X] B
  Z←(+/[X]B) ÷ (⍴B)[X]
      Average[1] 5 5⍴⍳25
11 12 13 14 15
      Average[2] 5 5⍴⍳25
3 8 13 18 23
</source>
</source>


Line 42: Line 53:
* [http://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/Canonical%20Representation.htm#CanonicalRepresentation Dyalog]
* [http://help.dyalog.com/latest/#Language/Defined%20Functions%20and%20Operators/Canonical%20Representation.htm#CanonicalRepresentation Dyalog]
* [http://microapl.com/apl_help/ch_020_010_070.htm APLX]
* [http://microapl.com/apl_help/ch_020_010_070.htm APLX]
{{APL syntax}}[[Category:Kinds of functions]][[Category:Defining functions]]
 
=== References ===
<references/>
 
{{APL syntax}}
[[Category:Kinds of functions]]
[[Category:Defining functions]]
trusted
69

edits

Navigation menu