Topic: APLX Help : Help on APL language : APL Primitives : ⍟ Natural log
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

Natural log


One-argument form  See also two-argument form Log to the base

Finds the natural logarithm, that is the log to the base e, of the number or numbers in the right-hand argument (e is approximately 2.7182). The numbers must be positive.

             ⍟ 10                    (Finds the log to base e of 10)
       2.302585093
             ⍟ 3 9 18                (Finds the log to base e of 3 9 and 18)
       1.098612289 2.197224577 2.890371758
             ⍟ 3.3                   (Finds the log to base e of 3.3)
       1.193922468
             ⍟(2 2⍴⍳4) (⍳3)
            0                 0.6931471806     0 0.6931471806 1.098612289
            1.098612289       1.386294361

Topic: APLX Help : Help on APL language : APL Primitives : ⍟ Natural log
[ Previous | Next | Contents | Index | APL Home ]