public void initializeIterations(){
  if (df == null)   df=new FunctionDerivative(f);
  if (Double.isNaN(result))   result=0;
  int n=0;
  while (DrMath.equal(df.value(result),0)) {
    if (++n > getMaximumIterations())     break;
    result+=Math.random();
  }
}

public void initializeIterations ( ) { if ( df == null ) df = new FunctionDerivative ( f ) ; if ( Double . isNaN ( result ) ) result = 0 ; int n = 0 ; while ( DrMath . equal ( df . value ( result ) , 0 ) ) { if ( ++ n > getMaximumIterations ( ) ) break ; result += Math . random ( ) ; } }
initializes internal parameters to start the iterative process . assigns default derivative if necessary .
