@@ -22,7 +22,7 @@ are your tuples so big?
2222@docs not, (&&), (||), xor, otherwise
2323
2424# Mathematics
25−@docs (+), (-), (*), (/), (^), (//), rem, (%), abs, sqrt, clamp, logBase, e
25+@docs (+), (-), (*), (/), (^), (//), rem, (%), negate, abs, sqrt, clamp, logBase, e
2626
2727# Trigonometry
2828@docs pi, cos, sin, tan, acos, asin, atan, atan2
@@ -161,6 +161,10 @@ atan2 = Native.Basics.atan2
161161sqrt : Float -> Float
162162sqrt = Native.Basics.sqrt
163163
164+{-| Negate any number: `negate 42 == -42` -}
165+negate : number -> number
166+negate n = -n
167+
164168{-| Take the absolute value of a number. -}
165169abs : number -> number
166170abs = Native.Basics.abs