negateExp function

Negates a boolean expression.

Negates a boolean expression.

Function that negates a boolean expression.

negateExp(expression)

Arguments

  • expression: A boolean expression. Conditions should be capitalized and negated conditions should be inserted with a "~". Unions of conditions are performed with a "+", while intersections are performed with a "*".

Returns

It returns a negated boolean expression.

Author(s)

Ioana-Elena Oana

Examples

negateExp("~EMP*MA") negateExp("~A*B + C*~D")
  • Maintainer: Ioana-Elena Oana
  • License: GPL-2
  • Last published: 2025-03-21

Useful links