We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Boolean expression calculator which can simplify the given logical expression.
&&
||
!
AND
OR
NOT
A AND B
AND(A, B)
has_access
isAdmin
∧
∨
¬
~
true
false
T
F
1
0
⊤
⊥
Often used by programmers (or actually not used - hence inefficient code and ifs spanning multiple lines).
if
Input: (a && b) || (a && c) || (!b && !c) (programming notation) (a AND b) OR (a AND c) OR (NOT b AND NOT c) (text notation)
(a && b) || (a && c) || (!b && !c)
(a AND b) OR (a AND c) OR (NOT b AND NOT c)
Output: a || (!b && !c)) a OR (NOT b AND NOT c)
a || (!b && !c))
a OR (NOT b AND NOT c)
Truth table
Venn diagram:
Available as an online tool: Wolfram Alpha, dCode - it'd be handy to have such a tool offline.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What feature or new tool do you think should be added to DevToys?
A Boolean expression calculator which can simplify the given logical expression.
&&
,||
,!
) or text (AND
,OR
,NOT
) notation.A AND B
) and function (Excel-like) notation (AND(A, B)
).has_access
,isAdmin
), so it's possible to paste the code directly (and use the same var names in the output).∧
,∨
,¬
/~
).true
/false
,T
/F
,1
/0
,⊤
/⊥
) in the truth table.Why do you think this is needed?
Often used by programmers (or actually not used - hence inefficient code and
if
s spanning multiple lines).Solution/Idea
Input:
(a && b) || (a && c) || (!b && !c)
(programming notation)(a AND b) OR (a AND c) OR (NOT b AND NOT c)
(text notation)Output:
a || (!b && !c))
a OR (NOT b AND NOT c)
Truth table
Venn diagram:
Comments
Available as an online tool: Wolfram Alpha, dCode - it'd be handy to have such a tool offline.
The text was updated successfully, but these errors were encountered: