예제 #1
0
        private Expression NewtonBackwardDiffPart(int delta, Expression u, int times)
        {
            var c = FiniteFunctions.ChooseWithDiff(u, delta, times, 1);

            var y = Table[delta + (1)][Rows - 1];

            return(y * c);
        }
예제 #2
0
        private Expression NewtonForwardDiffPart(int delta, Expression u, int times)
        {
            var c = FiniteFunctions.ChooseWithDiff(u, delta, times, -1);

            var y = Table[delta + (1)][0];

            // (y.ToReal() + " * " + c.ToReal() + " = " + (y * c).ToReal()).Print();

            return(y * c);
        }