Difference between revisions of "Extensions.Math.Power"
Jump to navigation
Jump to search
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Math]] | + | {{DISPLAYTITLE:'''Power '''}}[[Category:Math]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | Power | Power of a number with a certain exponent | [[Term]] | [[Math|OTX Math Extension]] | | + | {{ClassificationActivity | Power | Power of a number with a certain exponent | [[Term]] | [[Extensions.Math|OTX Math Extension]] | [[Extensions.Math#Actions|Math related Actions]] | - | - | Yes}} |
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | FloatTerm | + | FloatTerm Math.Power(NumericTerm numeral, NumericTerm exponent); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | The '''Power''' term | + | The '''Power''' term will be used for calculating the power of a given number using a given exponent. |
− | {{TermReturnValue| [[Float]] | Result of power calculations.}} | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Float|Float]] | Result of power calculations.}} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| Numeral | | + | {{TableRowPropertie1| Numeral | [[Numeric]] | [[Term]] | - | [1] | The numeric value of type integer or float, on which the power is calculated.}} |
− | {{TableRowPropertie2| Exponent | | + | {{TableRowPropertie2| Exponent | [[Numeric]] | [[Term]] | - | [1] | The numeric value of type integer or float, which will serve as an exponent in the calculation.}} |
|} | |} | ||
== 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; | ||
+ | |||
+ | /// Flow | ||
Float1 = Math.Power(1, 2); | Float1 = Math.Power(1, 2); | ||
Line 28: | Line 32: | ||
== See also == | == See also == | ||
− | [[Log]]<br/> | + | [[Extensions.Math.Log|Log]]<br/> |
− | [[Ln]] <br/> | + | [[Extensions.Math.Ln|Ln]] <br/> |
− | [[Sin]] <br/> | + | [[Extensions.Math.Sin|Sin]] <br/> |
− | [[Cos]] <br/> | + | [[Extensions.Math.Cos|Cos]] <br/> |
− | [[Tan]] | + | [[Extensions.Math.Tan|Tan]] |
Latest revision as of 02:46, 13 September 2019
Contents
Classification
Name | Power |
Short Description | Power of a number with a certain exponent |
Class | Term |
Extension | OTX Math Extension |
Group | Math related Actions |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
FloatTerm Math.Power(NumericTerm numeral, NumericTerm exponent);
Description
The Power term will be used for calculating the power of a given number using a given 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 | Numeric | Term | - | [1] | The numeric value of type integer or float, on which the power is calculated. |
Exponent | Numeric | Term | - | [1] | The numeric value of type integer or float, which will serve as an exponent in the calculation. |
OTL Examples
/// Local Declarations
Float Float1;
/// Flow
Float1 = Math.Power(1, 2);