Mathjs can be used as a front end solution, as well as in node.js. In anode.js environment just install with npm like always.
In this post I am using mathjs 4.x, and I assume a node.js environment.
mathjs has a plug in system, and there are additional projects that wok well with mathjs when it comes to getting into a certain discipline involving math. Of course it is not that hard to add my own functionality as well if I cant fine something.
For starters I checked out the mathjs natural logarithm method, and have found that it is an improved alternative over the native Math.log method as it can also be used to find base log.
The improvement has to do with base log
With math.js I can just give a second argument
If you are still wondering what base log is, just think of it as the opposite of using Math.pow. Where I want to find an unknown exponent given a number and base, rater than finding an unknown number given a base, and exponent.