Power

The power operator raises all the components of a vector, quaternion to the given power:

vecmath> a = [3.1,4.1]
vecmath> b = 3.0
vecmath> c = a ^ b
vecmath> print c
1
2
3
4

For the resulting vector, all the components have been raised to the third power:

vecmath> c = [29.791,68.921]
1

The power operator also works on a scaler:

a = 2
b = 3.0
c = a ^ b
print c
1
2
3
4

Which is off course the following result:

c = [8]
1