Ejemplo n.º 1
0
        public static void PrintExpressionFor3DirDerivative(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            Console.WriteLine(DirDerivStrings[6] + " = " + BooleanExpression.FindMininalExpressionInBasis(
                                  f.DirectionalDeriv(VarLists[6]).Eval(), AvdoshinBases[0], AvdoshinVars[0]).ToString());

            Console.WriteLine();
        }
Ejemplo n.º 2
0
        public static void Print3DirectionalDerivative(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            PrintJustTruthTable(f);

            Console.WriteLine(f.DirectionalDeriv(VarLists[6]).ToString(DirDerivStrings[6]));

            Console.WriteLine();
        }
Ejemplo n.º 3
0
        public static void PrintExpressionsFor2DirDerivatives(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            for (int i = 3; i <= 5; i++)
            {
                Console.WriteLine(DirDerivStrings[i] + " = " + BooleanExpression.FindMininalExpressionInBasis(
                                      f.DirectionalDeriv(VarLists[i]).Eval(), AvdoshinBases[0], AvdoshinVars[0]).ToString());
            }

            Console.WriteLine();
        }
Ejemplo n.º 4
0
        public static void Print2DirectionalDerivatives(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            PrintJustTruthTable(f);

            for (int i = 3; i <= 5; i++)
            {
                Console.WriteLine(f.DirectionalDeriv(VarLists[i]).ToString(DirDerivStrings[i]));
            }

            Console.WriteLine();
        }
Ejemplo n.º 5
0
        public static void PrintExpressionsFor2DirDerivatives(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            for(int i = 3; i <= 5; i++) {
                Console.WriteLine(DirDerivStrings[i] + " = " + BooleanExpression.FindMininalExpressionInBasis(
                    f.DirectionalDeriv(VarLists[i]).Eval(), AvdoshinBases[0], AvdoshinVars[0]).ToString());
            }

            Console.WriteLine();
        }
Ejemplo n.º 6
0
        public static void PrintExpressionFor3DirDerivative(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            Console.WriteLine(DirDerivStrings[6] + " = " + BooleanExpression.FindMininalExpressionInBasis(
                f.DirectionalDeriv(VarLists[6]).Eval(), AvdoshinBases[0], AvdoshinVars[0]).ToString());

            Console.WriteLine();
        }
Ejemplo n.º 7
0
        public static void Print3DirectionalDerivative(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            PrintJustTruthTable(f);

            Console.WriteLine(f.DirectionalDeriv(VarLists[6]).ToString(DirDerivStrings[6]));

            Console.WriteLine();
        }
Ejemplo n.º 8
0
        public static void Print2DirectionalDerivatives(int n)
        {
            BooleanFunction f = new BooleanFunction((byte)n);

            PrintJustTruthTable(f);

            for(int i = 3; i <= 5; i++) {
                Console.WriteLine(f.DirectionalDeriv(VarLists[i]).ToString(DirDerivStrings[i]));
            }

            Console.WriteLine();
        }