Difference between revisions of "Extensions.Math.Log"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | /// Local Declarations | |
+ | Float FloatVariable; | ||
+ | /// Flow | ||
+ | FloatVariable = Math.Log(NumericTerm, NumericTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 25: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
Float Float1; | Float Float1; | ||
Revision as of 07:21, 25 October 2018
Contents
Classification
Name | Log |
Short Description | Calculates the logarithm of a given number to a given base |
Class | Term |
Extension | OTX Math Extension |
Group | Math related Actions |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
Float FloatVariable;
/// Flow
FloatVariable = Math.Log(NumericTerm, NumericTerm);
Description
The Log term is used for calculating the logarithm of a given number to a given base.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Float | Result of the calculation of the logarithm of a number. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Numeral | Numeric | Term | - | [1] | Represents the numeric value on which the logarithm shall be calculated. If the value is Integer, it shall be automatically promoted to Float. |
Base | Numeric | Term | - | [1] | The numerical value (of type Integer or Float), which will serve as the logarithmic basis of the calculation. If the value is Integer, it shall be automatically promoted to Float. |
OTL Examples
/// Local Declarations
Float Float1;
/// Flow
Float1 = Math.Log(4, 2);