Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inanyan/booleanalgebra1
Boolean function truth table generator
https://github.com/inanyan/booleanalgebra1
boolean-algebra console-application truth-table
Last synced: 13 days ago
JSON representation
Boolean function truth table generator
- Host: GitHub
- URL: https://github.com/inanyan/booleanalgebra1
- Owner: InAnYan
- License: mit
- Created: 2022-05-21T13:58:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-21T14:53:38.000Z (over 2 years ago)
- Last Synced: 2024-11-22T01:41:44.221Z (about 2 months ago)
- Topics: boolean-algebra, console-application, truth-table
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
Simple truth table generator.
WRITTEN FOR EDUCATIONAL PURPOSES.
## Output
Boolean function truth table generator
Copyright(C) 2022 Ruslan Popov
Enter operation:
1. Generate truth table for one function
2. Compare two functions
3. Exit
Enter number [1-3]: 2Functions must have same variables
Enter first function: a*b+b*c+a*c
Enter second function: a^b^c
a*b+b*c+a*c a^b^c
--------------------- ---------------------
| a| b| c|func| | a| b| c|func|
|----|----|----|----| |----|----|----|----|
| 0| 0| 0| 0| | 0| 0| 0| 0|
|----|----|----|----| |----|----|----|----|
| 0| 0| 1| 0| | 0| 0| 1| 1|
|----|----|----|----| |----|----|----|----|
| 0| 1| 0| 0| | 0| 1| 0| 1|
|----|----|----|----| |----|----|----|----|
| 0| 1| 1| 1| | 0| 1| 1| 0|
|----|----|----|----| |----|----|----|----|
| 1| 0| 0| 0| | 1| 0| 0| 1|
|----|----|----|----| |----|----|----|----|
| 1| 0| 1| 1| | 1| 0| 1| 0|
|----|----|----|----| |----|----|----|----|
| 1| 1| 0| 1| | 1| 1| 0| 0|
|----|----|----|----| |----|----|----|----|
| 1| 1| 1| 1| | 1| 1| 1| 1|
--------------------- ---------------------
## Syntax
- Variables must be one character long.
- All boolean operators must be written explicitly.
- OR: +
- XOR: ^
- AND: * , &
- NOT: ! , ~ , -