return logarithmic curve rate in console angular code example Example: javascript natural log Math.log(n)