If the argument is NaN or less than zero then the result is NaN. The base b logarithm of x is base c logarithm of x divided by the base c logarithm of b. Mathjs is an extensive math library for JavaScript and Nodejs.
Expressed mathematically x is the logarithm of n to the base b if bx n in which case one writes x log b n.
The mathlog x function is used to calculate the natural logarithmic value ie. The javalangMathlogdouble a returns the natural logarithm base e of a double value. Expressed mathematically x is the logarithm of n to the base b if bx n in which case one writes x log b n. The mathlog x function is used to calculate the natural logarithmic value ie.