Direct application of first derivative method. @param f @param x @param h @return
(final DoubleUnaryOperator f, double x, double h)
| 49 | * @return |
| 50 | */ |
| 51 | static public double getFirst(final DoubleUnaryOperator f, double x, double h) { |
| 52 | return (f.applyAsDouble(x + h) - f.applyAsDouble(x - h)) / h / 2.0; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * First derivative wrapped to re-assign one of the two parameters. |
no test coverage detected