code: private static double QUARD_MINIMIZER2(double qm, double u, double du, double v, double dv) {
          double a, d, gamma, theta, p, q, r, s;
          a = (u) - (v);
          (qm) = (v) + (dv) / ((dv) - (du)) * a;
          return qm;
      }
docs: Find a minimizer of an interpolated quadratic function.
  @param  qm      The minimizer of the interpolated quadratic.
  @param  u       The value of one point, u.
  @param  du      The value of f'(u).
  @param  v       The value of another point, v.
  @param  dv      The value of f'(v).