public override IBaseMathOperator CalculateSimplyfy()
        {
            var cos = new CosMathOperator();

            cos.Instantiate(new [] { A.Simplyfy() });
            return(cos);
        }
Esempio n. 2
0
        public override IBaseMathOperator Derivate()
        {
            if (IsConstant())
            {
                return(new ConstantMathOperator(0));
            }

            var cos = new CosMathOperator();

            cos.Instantiate(new [] { A });

            var result = new MultiplyMathOperator();

            result.Instantiate(new [] { A.Derivate(), cos });
            return(result);
        }