Analysis.IsPositiveUnateFunctionTo
Back to table
/*
Logic-Function-Analysis
Analysis.IsPositiveUnateFunctionTo
[bool result]=Analysis.IsPositiveUnateFunctionTo(LogicFunction f, var() x);
f : a logic function
x : the index of the variable
result : true | false
Check whether $f$ is positive unate function to its variable x.
The unateness indicates the effect of its logic variables with a logic function when they change their value between (0,1).
*/
//-------------------------------------------------------------------
// examples
[f]=AndXor()
{
	1;2;3;
}
[g]=Analysis.IsPositiveUnateFunctionTo(f, var(1));
Print("IsPositiveUnateFunctionTo?", g);
h=AndOr(){ 1,2,3; }
[g]=Analysis.IsPositiveUnateFunctionTo(h, var(1));
Print("IsPositiveUnateFunctionTo?", g);
//-------------------------------------------------------------------
// result
            
                
                
                
                
                
                
                
                
                
                
                
                
                
                
             
            
            
            
            
            
Analysis IsCovering IsInverse IsLinearFunction IsPositiveUnateFunctionTo IsSelfAntiDualFunction AndXor MaxValue TwoComplement ToVariableInvertedFunction FeedbackDiagram Get logicvardef() long() MantissaToPositiveDecimal PositiveNumberToMantissa RadixToIndex real() Solve Assign CreateCompactTableWithFullSimplification Simplification Fast SimpleCover StateDeviceName StateTransition TimingChart CreateFromLogicFunctions XORP Zero