neg

Syntax: neg x, neg[x]

Returns the negation of boolean or numeric x.

q)neg -1 0 1 2
1 0 -1 -2

neg is an atomic function.

Domain and range

domain b g x h i j e f c s p m d z n u v t
range  i . i h i j e f i . p m d z n u v t

Range: ihjefpmdznuvt

Subtract
Basics: Mathematics