public static double Derivative(Func <double, double> function, double number, double h, double eps) { return(MyMath.Within(eps, DerivativeApproximations(h, function, number))); }
public static IEnumerable <double> DerivativeApproximations(double h0, Func <double, double> function, double number) { return(MyMath.Repeat(Halve, h0).Select(h => EasyDiff(function, number, h))); }
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))); }