Difference between revisions of "Extensions.Math.Power"
Jump to navigation
Jump to search
(Created page with "Category:Math == Classification == {{ClassificationActivity | Power | Power of a number with a certain exponent | Term | OTX Math Extension | - | - | - | Yes}...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | Power | Power of a number with a certain exponent | [[Term]] | [[Math|OTX Math Extension]] | - | - | - | Yes}} | {{ClassificationActivity | Power | Power of a number with a certain exponent | [[Term]] | [[Math|OTX Math Extension]] | - | - | - | Yes}} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | FloatTerm = Math.Power(NumericTerm, NumericTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Float | + | Float Float1; |
+ | |||
+ | Float1 = Math.Power(1, 2); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:28, 10 February 2015
Contents
Classification
Name | Power |
Short Description | Power of a number with a certain exponent |
Class | Term |
Extension | OTX Math Extension |
Group | - |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
FloatTerm = Math.Power(NumericTerm, NumericTerm);
Description
The Power term is used to calculate the power of a number with a specific exponent.
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 power calculations. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Numeral | - | Term | - | [1] | The numeric value of type integer or float, on which the power is calculated. |
Exponent | - | Term | - | [1] | The numeric value of type integer or float, which will serve as an exponent in the calculation. |
OTL Examples
Float Float1;
Float1 = Math.Power(1, 2);