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.
Numeric literal example:
D lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive 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 |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive 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 lang syntax |
---|
RawWrangle | true |
---|
Type | syntax |
---|
showNote | true |
---|
WrangleText | derive type:single value: ln(numeric_value) |
---|
|
ln(numeric_value) |
Argument | Required? | Data Type | Description |
---|
numeric_value | Y | string, decimal, or integer | Name of column or Decimal or Integer literal to apply to the function |
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.
Required? | Data Type | Example Value |
---|
Yes | String (column reference) or Integer or Decimal literal | 10 |
Example - Exponential Functions
Include Page |
---|
| EXAMPLE - Exponentional Functions |
---|
| EXAMPLE - Exponentional Functions |
---|
|