ln

Syntax

  • float ln(x)

Parameters

  1. xfloat

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

Was this article helpful?