ln1

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the ln1 of <number>
ln1(<number>)
Summary

Returns the natural logarithm of a number plus one.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
number

A number greater than -1, or an expression that evaluates to such a number.

Example
ln1(0) -- returns zero
put ln1(myValue) into logValue
Values
NameTypeDescription
return

The ln1 function returns a number.

RelatedOperator: ^
Function: ln, log10, log2, exp1
Glossary: return, math operation
Control Structure: function
Description

Use the ln1 function to obtain a base e logarithm, ln(number + 1).

The natural logarithm of a number is the power to which e must be raised to obtain the number.

The transcendental number e appears in many mathematical formulas.

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

Tagsmath