Skip to content

Log

See Also: Math Functions, Exp

Purpose

The Log function returns the natural logarithm of a value.

Return Type

Real

Syntax

Log({expression})

What It Does

The Log function returns the power to which the constant (2.71828), the natural logarithm base, must be raised to equal the value of {expression}.

Real rRoot
Move (Log(10)) to rRoot

Notes

  • To calculate the natural antilogarithm of a number, use the Exp function.

  • To calculate the common (base 10) logarithm of a value, divide Log({expression}) by Log(10).

Move (Log(45) / Log(10)) to rRoot
In this example, the common logarithm (1.65321) of 45 is output to the variable rRoot.

  • The Log function converts the {expression} parameter to a real value and outputs a real value.