Math Log
The math::log function calculates the natural logarithm (base-e) of a number.
Syntax
math::log(<number>, <base>)Parameters
number: The input number for which the natural logarithm will be calculated. The number must be greater than 0.base: The numerical system you want to use for this number.
Returns
- Number: The natural logarithm of the input number.
Example
math::log(2.71828, 10)This function is useful for logarithmic calculations in mathematical and scientific applications.