Convert.ToTruthTable
Back to table
/*
Logic-Function-Analysis
Convert.ToTruthTable
[TruthTable g]=Convert.ToTruthTable(LogicFunction f);
f : a logic function
g : a logic function in the TruthTable form
Compute the truth-table of the logic object
*/
//-------------------------------------------------------------------
// examples
f=AndOr()
{
1,-2;
-1,2;
}
g=Convert.ToTruthTable(f);
Print(f,g);
//-------------------------------------------------------------------
// result
Analysis IsBiUnateFunctionTo IsOneFunction IsThresholdFunction AndXor MaxValue BinaryNumberToString GrayCode NineComplement StringToBinaryNumber binary ToAndXor ToOrAnd ToTruthTable logicvardef() RadixFromIndex POS To2LayerNor To2LayerAndXor ToFullAnd Solve ShortestInputsForDistinguishTwoStates TransitionSeries Forwardly GetExcitationTable FullTable StateDeviceName TimingChart XORP Zero