Average Error: 0.1 → 0.1
Time: 9.3s
Precision: 64
\[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b\]
\[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b\]
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b
double f(double x, double y, double z, double t, double a, double b) {
        double r224382 = x;
        double r224383 = y;
        double r224384 = r224382 + r224383;
        double r224385 = z;
        double r224386 = r224384 + r224385;
        double r224387 = t;
        double r224388 = log(r224387);
        double r224389 = r224385 * r224388;
        double r224390 = r224386 - r224389;
        double r224391 = a;
        double r224392 = 0.5;
        double r224393 = r224391 - r224392;
        double r224394 = b;
        double r224395 = r224393 * r224394;
        double r224396 = r224390 + r224395;
        return r224396;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r224397 = x;
        double r224398 = y;
        double r224399 = r224397 + r224398;
        double r224400 = z;
        double r224401 = r224399 + r224400;
        double r224402 = t;
        double r224403 = log(r224402);
        double r224404 = r224400 * r224403;
        double r224405 = r224401 - r224404;
        double r224406 = a;
        double r224407 = 1.0;
        double r224408 = 2.0;
        double r224409 = r224407 / r224408;
        double r224410 = r224406 - r224409;
        double r224411 = b;
        double r224412 = r224410 * r224411;
        double r224413 = r224405 + r224412;
        return r224413;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0.4
Herbie0.1
\[\left(\left(x + y\right) + \frac{\left(1 - {\left(\log t\right)}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b\]

Derivation

  1. Initial program 0.1

    \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b\]
  2. Simplified0.1

    \[\leadsto \color{blue}{\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b}\]
  3. Final simplification0.1

    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b\]

Reproduce

herbie shell --seed 2019304 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (+ (+ (+ x y) (/ (* (- 1 (pow (log t) 2)) z) (+ 1 (log t)))) (* (- a 0.5) b))

  (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))