Closed MohamedEbrahem1 closed 1 year ago
Feature Request: Implementation of Canonical SoP (sum of products) and PoS (product of sums) Function
Problem: There isn't a function that provides canonical SoP and PoS based on a given truth table.
Proposed Solution:
Inputs:
generateTruthTable
tokenize
Variable Sequence:
Var
vector
Output Structure: The function will return its outputs in a vector of Tokens. The process is as follows:
a. For SoP:
A
A'
+
*
b. For PoS:
Return Value:
Feature Request: Implementation of Canonical SoP (sum of products) and PoS (product of sums) Function
Problem: There isn't a function that provides canonical SoP and PoS based on a given truth table.
Proposed Solution:
Inputs:
generateTruthTable
function.tokenize
function.Variable Sequence:
tokenize
function.Var
.vector
, ensuring uniqueness.Output Structure: The function will return its outputs in a
vector
of Tokens. The process is as follows:a. For SoP:
A
translates toA
while a logic '0' becomesA'
.+
symbol after each minterm permutation, and a*
between each variable within a minterm.b. For PoS:
A'
translates toA
while a logic '0' becomesA'
.*
symbol after each maxterm permutation, and a+
between each variable within a maxterm.Return Value: