public void EnsureCapturingOperatorinExpression()
        {
            Expression math_add  = new Expression();
            Stack      dict      = new Stack();
            ParsedExp  exp       = math_add.collectTerms("1+2", dict);
            int        opPresent = '+';

            //prove that the operator was saved and ensures that the correct operation was called
            Assert.AreEqual(opPresent, exp.oper);
        }
        public void EnsureCapturingTerm2inExpression()
        {
            Evaluate   mathey   = new Evaluate();
            Expression math_add = new Expression();
            Stack      dict     = new Stack();
            ParsedExp  exp      = math_add.collectTerms("1+2", dict);

            //tests to prove that the operator and terms were saved as numbers

            Assert.AreEqual(typeof(int), exp.term2.GetType());
        }
        public void SetTwoDimenComplexDrawer(string xz, string yz, string xc, string yc)
        {
            ParsedExp parser = new ParsedExp();

            parser.InsertExpression(xz);
            XFunc = parser.ExpTree();
            parser.InsertExpression(yz);
            YFunc = parser.ExpTree();
            parser.InsertExpression(xc);
            CXFunc = parser.ExpTree();
            parser.InsertExpression(yc);
            CYFunc     = parser.ExpTree();
            Iterations = 50;
        }
        public void SetTwoDimenDrawer(string xfunc, string yfunc, string tlowbound, string tupbound)
        {
            ParsedExp parser = new ParsedExp();

            parser.InsertExpression(xfunc);
            XFunc = parser.ExpTree();
            parser.InsertExpression(yfunc);
            YFunc = parser.ExpTree();
            parser.InsertExpression(tlowbound);
            TLowerBound = parser.ExpTree();
            parser.InsertExpression(tupbound);
            THigherBound       = parser.ExpTree();
            FragmentationDepth = 200;
        }
        public void SetThreeDimenDrawer(string zfunc, string xlowbound, string xupbound, string ylowbound, string yupbound)
        {
            ParsedExp parser = new ParsedExp();

            parser.InsertExpression(zfunc);
            ZFunc = parser.ExpTree();
            parser.InsertExpression(xlowbound);
            XLowerBound = parser.ExpTree();
            parser.InsertExpression(xupbound);
            XHigherBound = parser.ExpTree();
            parser.InsertExpression(ylowbound);
            YLowerBound = parser.ExpTree();
            parser.InsertExpression(yupbound);
            YHigherBound        = parser.ExpTree();
            XFragmentationDepth = 50;
            YFragmentationDepth = 50;
        }