Beispiel #1
0
        public IExpressionNode Simplify()
        {
            FirstParameter  = FirstParameter.Simplify();
            SecondParameter = SecondParameter.Simplify();
            if (!FirstParameter.ContainsVariable() && !SecondParameter.ContainsVariable())
            {
                return(new Constant(this.Evaluate(null)));
            }

            return(this);
        }
Beispiel #2
0
 public bool ContainsVariable()
 {
     return(FirstParameter.ContainsVariable() || SecondParameter.ContainsVariable());
 }