Average Error: 0.1 → 0.1
Time: 7.7s
Precision: 64
\[\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z\]
\[\left(x - \left(\left(y + 0.5\right) \cdot \log y - y\right)\right) - z\]
\left(\left(x - \left(y + 0.5\right) \cdot \log y\right) + y\right) - z
\left(x - \left(\left(y + 0.5\right) \cdot \log y - y\right)\right) - z
double f(double x, double y, double z) {
        double r430456 = x;
        double r430457 = y;
        double r430458 = 0.5;
        double r430459 = r430457 + r430458;
        double r430460 = log(r430457);
        double r430461 = r430459 * r430460;
        double r430462 = r430456 - r430461;
        double r430463 = r430462 + r430457;
        double r430464 = z;
        double r430465 = r430463 - r430464;
        return r430465;
}

double f(double x, double y, double z) {
        double r430466 = x;
        double r430467 = y;
        double r430468 = 0.5;
        double r430469 = r430467 + r430468;
        double r430470 = log(r430467);
        double r430471 = r430469 * r430470;
        double r430472 = r430471 - r430467;
        double r430473 = r430466 - r430472;
        double r430474 = z;
        double r430475 = r430473 - r430474;
        return r430475;
}

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. Using strategy rm
  3. Applied associate-+l-0.1

    \[\leadsto \color{blue}{\left(x - \left(\left(y + 0.5\right) \cdot \log y - y\right)\right)} - z\]
  4. Final simplification0.1

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

Reproduce

herbie shell --seed 2020056 
(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))