public override Node ReturnDerivative(double x)
        {
            SineFunction   sineNode   = new SineFunction(child.Copy());
            CosineFunction cosineNode = new CosineFunction(child.Copy());
            DivisionSign   division   = new DivisionSign(sineNode, cosineNode);

            return(division.ReturnDerivative(x));
        }
예제 #2
0
        public override Node ReturnDerivative(double x)
        {
            NaturalNumberNode zero                = new NaturalNumberNode(0);
            SineFunction      sineNode            = new SineFunction(child.Copy());
            MinusSign         minusNode           = new MinusSign(zero, sineNode);
            Node childDerivative                  = child.ReturnDerivative(x);
            MultiplicationSign multiplicationSign = new MultiplicationSign(minusNode, childDerivative);

            return(multiplicationSign);
        }