25262728293031323334
} }; PseudoDerivativeFunction p = new PseudoDerivativeFunction(f); double result = p.compute(1d); assertThat(new BigDecimal(result).setScale(5, BigDecimal.ROUND_HALF_UP).doubleValue(), is(1d)); } }