Topic: APLX Help : Help on APL language : APL Primitives : - Negate
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

- Negate


One-argument form  See also two-argument form Subtract

Reverses the signs of the right-hand argument:

             - 5 6 2
       ¯5 ¯6 ¯2
             - ¯1 4 ¯6 1
       1 ¯4 6 ¯1
             -(¯11 17 ¯23) (2 3⍴¯3+⍳6)
        11 ¯17 23     2  1  0
                     ¯1 ¯2 ¯3

Topic: APLX Help : Help on APL language : APL Primitives : - Negate
[ Previous | Next | Contents | Index | APL Home ]