ABS
From STX Wiki
Jump to navigationJump to search
Absolute value.
[SPU ABS A OUT Y]
In !Out !Description | ||
---|---|---|
Anumber | Ynumber | Y = |A| |
Avector | Yvector | Y[i] = |A[i]| |
A number or vector
- Out
Y same type as A
- Function
if A is a number → Y = |A| if A is a vector → Y[i] = |A[i]|
- See also
<SP-atoms>