MathLib.not()

MathLib.not() negates the input \[ \text{MathLib.not}(x) = \neg x \]

Specification

MathLib.not accepts one single argument. The type of the argument should be boolean. For other argument types see the unary function specification.
  1. MathLib.not(true) = false
  2. MathLib.not(false) = true
For non boolean values the trueness is determined through the JavaScript rules if a value is truthy or falsey: The falsey values are false, undefined, null, NaN, 0, "". All other values are truthy.

Tests

Categories: unary Function