/src/main/java/net/finmath/rootfinder/SecantMethod.java
if ( getNextPoint( ) == 0) {
if ( getNumberOfIterations ( ) == 0 ) {
currentPoint = super.getNextPoint(); return currentPoint; } @Override public void setValue(final double value) { double derivative; <extra_id_0> derivative = value / (secondGuess - currentPoint); } else { derivative = (value - lastValue) / (currentPoint - lastPoint); } lastPoint = currentPoint; lastValue = value;