Average Error: 0.1 → 0.1
Time: 57.0s
Precision: 64
\[\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z\]
\[\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z\]
\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z
\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z
double f(double x, double y, double z) {
        double r213553 = x;
        double r213554 = y;
        double r213555 = 0.5;
        double r213556 = r213554 + r213555;
        double r213557 = log(r213554);
        double r213558 = r213556 * r213557;
        double r213559 = r213553 - r213558;
        double r213560 = r213559 + r213554;
        double r213561 = z;
        double r213562 = r213560 - r213561;
        return r213562;
}

double f(double x, double y, double z) {
        double r213563 = x;
        double r213564 = y;
        double r213565 = 0.5;
        double r213566 = r213564 + r213565;
        double r213567 = log(r213564);
        double r213568 = r213566 * r213567;
        double r213569 = r213563 - r213568;
        double r213570 = r213569 + r213564;
        double r213571 = z;
        double r213572 = r213570 - r213571;
        return r213572;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0.1
Herbie0.1
\[\left(\left(y + x\right) - z\right) - \left(y + 0.5\right) \cdot \log y\]

Derivation

  1. Initial program 0.1

    \[\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z\]
  2. Final simplification0.1

    \[\leadsto \left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z\]

Reproduce

herbie shell --seed 2019325 +o rules:numerics
(FPCore (x y z)
  :name "Numeric.SpecFunctions:stirlingError from math-functions-0.1.5.2"
  :precision binary64

  :herbie-target
  (- (- (+ y x) z) (* (+ y 0.5) (log y)))

  (- (+ (- x (* (+ y 0.5) (log y))) y) z))