Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r0811

D toc

Excerpt

Computes the natural logarithm of an input value. The value can be a Decimal or Integer literal or a reference to a column containing numeric values.

  • The natural logarithm of a value is the value of e x such that is the input value.

D s lang vs sql

D s
snippetBasic

Numeric literal example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: ln(10)

ln(10)

Output: Returns the value X, such that e x, is 10. This value is approximately 2.302585092994046.

Column reference example:

D lang syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value: ln(MyValue) as: 'ln_MyValue'

ln(MyValue)

Output: Returns the power to which e is raised to yield the value in the MyValue column.

D s
snippetSyntax

D lang syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value: ln(numeric_value)

ln(numeric_value)


ArgumentRequired?Data TypeDescription
numeric_valueYstring, decimal, or integerName of column or Decimal or Integer literal to apply to the function

D s lang notes

numeric_value

Name of the column or numeric literal, the natural logarithm of which is to be computed.

  • Missing input values generate missing results.
  • Literal numeric values should not be quoted. Quoted values are treated as strings.
  • Multiple columns and wildcards are not supported.

D s
snippetusage

Required?Data TypeExample Value
YesString (column reference) or Integer or Decimal literal10

D s
snippetExamples

Example - Exponential Functions

Include Page
EXAMPLE - Exponentional Functions
EXAMPLE - Exponentional Functions

D s also
labelmath