@Override
	public void setValueAndDerivative(double value, double derivative) {

		if(Math.abs(value) < accuracy)
		{
			accuracy	= Math.abs(value);
			bestPoint	= nextPoint;
		}

		// Calculate next point
		nextPoint -= value / derivative;

		numberOfIterations++;
	}
@ Override public void setValueAndDerivative ( double value , double derivative ) { if ( Math . abs ( value ) < accuracy ) { accuracy = Math . abs ( value ) ; bestPoint = nextPoint ; } nextPoint -= value / derivative ; numberOfIterations ++ ; }
@param value
The value corresponding to the point returned by previous
<code>getNextPoint</code> call.
@param derivative
The derivative corresponding to the point returned by previous
<code>getNextPoint</code> call.