suve

awful: function: log

Declaration

float :log ( float $BASE , float $NUMBER )
float :log ( float $NUMBER )

Summary

Returns a BASE-based logarithm of NUMBER. If BASE is omitted, Euler's number (e ≈ 2.7182818284590…) is used.

Example

# :log example.
:set &NUM i0
!repeat
   :add &NUM i4
   :writeln s'log(4,' $NUM s') = ' :log i4 $NUM
   :writeln s'ln(' $NUM s') = ' :log $NUM
!until :eq $NUM i64

wikipage modified on 2014/0601/2317