예제 #1
0
 public static double Derivative(Func <double, double> function, double number, double h, double eps)
 {
     return(MyMath.Within(eps, DerivativeApproximations(h, function, number)));
 }
예제 #2
0
 public static IEnumerable <double> DerivativeApproximations(double h0, Func <double, double> function, double number)
 {
     return(MyMath.Repeat(Halve, h0).Select(h => EasyDiff(function, number, h)));
 }
예제 #3
0
        public static double Square(double number, double startApproximation, double eps)
        {
            double NextApproximation(double startApprox) => GetNextApproximation(number, startApprox);

            return(MyMath.Within(eps, MyMath.Repeat(NextApproximation, startApproximation)));
        }