Add log, log2 and log10 functions