abs2(arg)

Absolute value squared.

abs(-3)
argThe input number, complex number, quantity, or matrix.
return valueThe absolute value of the argument.

Works in the same way as abs, except all returned values are squared.