Average Error: 0.1 → 0.1
Time: 17.3s
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 r410311 = x;
        double r410312 = y;
        double r410313 = 0.5;
        double r410314 = r410312 + r410313;
        double r410315 = log(r410312);
        double r410316 = r410314 * r410315;
        double r410317 = r410311 - r410316;
        double r410318 = r410317 + r410312;
        double r410319 = z;
        double r410320 = r410318 - r410319;
        return r410320;
}

double f(double x, double y, double z) {
        double r410321 = x;
        double r410322 = y;
        double r410323 = 0.5;
        double r410324 = r410322 + r410323;
        double r410325 = log(r410322);
        double r410326 = r410324 * r410325;
        double r410327 = r410321 - r410326;
        double r410328 = r410327 + r410322;
        double r410329 = z;
        double r410330 = r410328 - r410329;
        return r410330;
}

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 2020046 +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))