APLX Help : Help on APL language : APL Primitives : ⍟ Log to the base




Twoargument form See also oneargument form Natural Logarithm Computes the log of a number or numbers to an arbitrary base. The lefthand argument is the base and the righthand argument is the number whose log is to be found. 3 ⍟ 9 (The log of 9 to the base 3) 2 2 3 4 5 6⍟4 9 16 25 36 (The log of each number on the right to 2 2 2 2 2 the corresponding base on the left) 2 ⍟ 2 4 8 16 32 64 1 2 3 4 5 6 2 ⍟ 13.9 3.797012978 2 3⍟(2 2⍴2 4 8 16) (3 9 27) 1 2 1 2 3 3 4 (Corresponding elements of left and right arguments used as successive arguments to the ⍟ function) 

APLX Help : Help on APL language : APL Primitives : ⍟ Log to the base

Copyright © 19962010 MicroAPL Ltd