I want to write a module in Mathematica that receives a Boolean function f
. The module should write on screen:
- Truth table of function
f
- Boolean expression which contains only operator NOR
- Minimization in DNF for the function f
This is my try
n = Input["Insert function"]
Module[{t},
t = n;
Print[t]]
TableForm[
BooleanTable[{t}],
TableHeadings -> {None, {t}}]
Table[BooleanConvert[{t}, fm], {fm, {"NOR"}}]
expr = t
BooleanMinimize[expr = t, "DNF"]
Comments
Post a Comment