Average Error: 0.1 → 0.1
Time: 36.6s
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 r212319 = x;
        double r212320 = y;
        double r212321 = 0.5;
        double r212322 = r212320 + r212321;
        double r212323 = log(r212320);
        double r212324 = r212322 * r212323;
        double r212325 = r212319 - r212324;
        double r212326 = r212325 + r212320;
        double r212327 = z;
        double r212328 = r212326 - r212327;
        return r212328;
}

double f(double x, double y, double z) {
        double r212329 = x;
        double r212330 = y;
        double r212331 = 0.5;
        double r212332 = r212330 + r212331;
        double r212333 = log(r212330);
        double r212334 = r212332 * r212333;
        double r212335 = r212334 - r212330;
        double r212336 = r212329 - r212335;
        double r212337 = z;
        double r212338 = r212336 - r212337;
        return r212338;
}

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 2019322 
(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))