power (^)
- Details
- Last Updated on Monday, 04 February 2013 19:52
syntax
- pow(a, b)
- a^b
definition
pow(a, b) or a^b results in item a power item b. The power operator can not (yet) be used associative, constructions like a^b^c are not allowed (use (a^b)^c instead).
applies to
Data items with value types:
- float32
- float64
conditions
Data items a and b need to match with regard to their:
- value type
- domain unit (constants or parameters can be summed with data items of each domain unit)
since version
5.15
example
1. attribute<float32> powAB (ADomain): expr = "pow(A, B)";
2. attribute<float32> powAB (ADomain): expr = "A^B";
| A | B | powAB | |
| 0 | 1 | 0 | |
| 1 | 1 | 1 | |
| 4 | 2 | 16 | |
| 7 | 3 | 343 | |
| -5 | -2 | 0.04 |