Utility.ShannonExpansion
Back to table
/*
Logic-Function-Analysis
Utility.ShannonExpansion
[LogicFunction() g]=Utility.ShannonExpansion(LogicFunction F1, LogicFunction F2);
F1 : a logic function as a target.
F2 : a logic function as a factor.
g : two logic function (g1,g2) are returned.
Compute the Shannon expansion of $F_1$, where $F_1=g_1 \cdot F2 + g_2 \cdot \not{F_2}$ .
*/
//-------------------------------------------------------------------
// examples
f = AndOr()
{
1;
2;
3;
}
h=And(-1,2);
g=Utility.ShannonExpansion(f,h);
Print(f,h,g);
[r]=Or( And(h,List.Get(g,1)), And(Not(h),List.Get(g,2)) );
Print(r,And(Not(r),f));
//-------------------------------------------------------------------
// result
IsBiUnateFunctionTo IsOneFunction IsParityFunction IsSelfAntiDualFunction IsSymmetricFunctionTo BDD FromBinary BCDEx3 GrayCode NineComplement binaryioset ToAndXor ToOrAnd Email logicvardef LeastSignificantDigit PositiveNumberToMantissa Radixes Print To2LayerOrAnd To2LayerAndOr StateTransitionBasedly ToStateTransitionTable To2layerOrAnd FullTable ROBDD string() IndependentBase ShrinkLogicFunction Zero
The website is simply translated by using the Google Translate. Please inform us if you find the wrong/funny/weird translation.