logo-header

 
 

power (^)

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:

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
Table ADomain, nr of rows = 5

OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904



Recent Wiki Changes