ABS
From STX Wiki
Jump to navigationJump to search
Absolute value.
[SPU ABS A OUT Y]
if A is a number → Y = |A| if A is a vector → Y[i] = |A[i]|
Usage:
ABS A
Inputs:
- A
- A number or vector.
Outputs:
- Y
- A number or vector (same as type of A).