Predefined Functions – abs
| Function name: | abs – Calculate absolute values per component |
| Synopsis: | abs(x) |
| Input data type | Output data type |
|---|---|
| real | real |
| complex | complex |
| quaternion | quaternion |
Description:
abs takes the absolute value of each component, thus calculates:
abs(q)=abs(a+bi+cj+dk) = abs(a)+abs(b)i+abs(c)j+abs(d)k
abs(z)=abs(x+iy) = abs(x)+i*abs(y)
and abx(x)=|x|