ph-math/src/main/java/com/helger/numbercruncher/mathutils/ImprovedRegulaFalsiRootFinder.java
@Override
  protected void computeNextPosition ()
  {
    m_fPrevXFalse = m_fXFalse;
    m_fPrevFFalse = m_fFalse;
    m_fXFalse = m_fXPos - m_fPos * (m_fXNeg - m_fXPos) / (m_fNeg - m_fPos);
    m_fFalse = m_aFunction.at (m_fXFalse);

    m_bDecreasePos = m_bDecreaseNeg = false;

    // If there was no sign change in f(xFalse),
    // or if this is the first iteration step,
    // then decrease the slope of the secant.
    if (Float.isNaN (m_fPrevFFalse) || (m_fPrevFFalse * m_fFalse > 0))
    {
      if (m_fFalse < 0)
        m_bDecreasePos = true;
      else
        m_bDecreaseNeg = true;
    }
  }
@Override
  protected void computeNextPosition ()
  {
    m_fPrevXFalse = m_fXFalse;
    m_fPrevFFalse = m_fFalse;
    m_fXFalse = m_fXPos - m_fPos * (m_fXNeg - m_fXPos) / (m_fNeg - m_fPos);
    m_fFalse = m_aFunction.at (m_fXFalse);

    m_bDecreasePos = m_bDecreaseNeg = false;

    // If there was no sign change in f(xFalse),
    // or if this is the first iteration step,
    // then decrease the slope of the secant.
    if (Float.isNaN (m_fPrevFFalse) || (m_fPrevFFalse * m_fFalse > 0))
    {
      if (m_fFalse < 0)
        m_bDecreasePos = true;
      else
        m_bDecreaseNeg = true;
    }
  }
Compute the next position of xFalse.