A logical function is an expression that takes logical variables (true or false values) as input and computes the output from them.
Formally, an n-variable logical function is a mapping from the set {0,1}^n to {0,1}. That is, the input is 0 (false) or 1 (true), and the output is also 0 or 1.
The operation of logical functions can be most simply demonstrated with truth tables. These list all possible inputs and the corresponding outputs.
An n-variable logical function has 2^(2^n) different forms. For example:
A logical function has truth values as input and always returns a truth value. Every logical operation can be interpreted as such a function.
We have reviewed and checked the materials, but errors may still occur. The content is provided for educational purposes only, so use it at your own responsibility and verify with other sources if needed.
Please sign in to ask Lara about Logical Functions.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.