Use the following functions for performing various logarithmic calculations.
Returns the natural logarithm of a given number. The log function is the inverse of the exp function.
Syntax: | log(Number) |
Arguments: |
|
Examples: |
|
Returns the base-10 logarithm of a given number.
Syntax: | log10(Number) |
Arguments: |
|
Examples: |
|
Returns the natural logarithm of 1 plus a given number. The log1p function is the inverse of the expm1 function.
Syntax: | log1p(Number) |
Arguments: |
|
Examples: |
|
Returns the constant e (the base of the natural logarithm) raised to the power of a given number. The exp function is the inverse of the log function.
Syntax: | exp(Number) |
Arguments: |
|
Examples: |
|
Returns the constant e (the base of the natural logarithm) raised to the power of a given number, minus 1. The expm1 function is the inverse of the log1p function.
Syntax: | expm1(Number) |
Arguments: |
|
Examples: |
|