/src/main/java/net/finmath/rootfinder/NewtonsMethod.java
nextPoint -= guess / derivative;
nextPoint -= value / derivative;
public void setValueAndDerivative(final double value, final double derivative) { if(Math.abs(value) < accuracy) { accuracy = Math.abs(value); bestPoint = nextPoint; } <extra_id_0> numberOfIterations++; } @Override public int getNumberOfIterations() { return numberOfIterations; }