Takes the natural logarithm of a value.

Syntax

Result = SRP_Math("LOG", Value, "", DecimalPlaces, ScientificNotation)

Returns

The natural logarithm of Value.

Remarks

The LOG operation computes the natural logarithm (base 2.718) of Value. Value must be a positive non-zero number, else the following error is returned.

"ERROR: Value must be > 0."

Example

// Take the natural log of PI 
Val = "3.1415926535897932384626433832795" 
Result = SRP_Math("LOG", Val) 
!! Result = 1.14472988584940017414342735135306 !! 
// Attempting to take the natural log of 0 results in an error 
Result = SRP_Math("LOG", 0) 
!! Result = "ERROR: Value must be > 0." !!
  • No labels