ABS

From STX Wiki
Jump to navigationJump to search

Simple unary operators

[ABS a OUT y]

Compute the absolute value of input A. 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).

Navigation menu

Personal tools