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

www.microapl.co.uk

÷ Reciprocal


One-argument form  See also two-argument form Divide

Gives the reciprocal of the right-hand argument, that is, the result of dividing 1 by each number in the right-hand argument.

             ÷2                      (Reciprocal of 2, ie 1 divided by 2)
       0.5
             ÷10 5 1 ¯1              (Reciprocal of each number in a vector)
       0.1 0.2 1 ¯1
             ÷.5 .25 .01             (Reciprocal of each number in a vector)
       2 4 100
             ÷(2 2⍴1 2 4 5)(÷⍳4)     (Reciprocal of each element in the vector)
        1                 0.5              1 2 3 4
        0.25              0.2

If the right argument contains a zero, APLX will generate a DOMAIN ERROR.


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