ln function

Syntax

  • float ln(x)

Parameters

  1. x—float

Returns

Natural logarithm of x.

Description

The ln function calculates the natural logarithm of x. The natural logarithm is the base-e logarithm, the inverse of the natural exponential function (exp). For base-10 logarithms, use the function log10.

Related