Пример #1
0
        public override Node Clone()
        {
            Node newNode  = new NodeCos();
            Node newNode1 = node1.Clone();

            newNode.AddNode1(newNode1);
            return(newNode);
        }
Пример #2
0
        public override Node GetDerivative() //O = original, D = derivative
        {
            Node node1O    = node1.Clone();
            Node node1D    = node1.GetDerivative();
            Node cosnode   = new NodeCos();
            Node timesnode = new NodeTimes();

            timesnode.AddNode1(cosnode);
            timesnode.AddNode2(node1D);

            cosnode.AddNode1(node1O);

            return(timesnode);
        }