Average Error: 0.1 → 0.1
Time: 25.2s
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 r75602033 = x;
        double r75602034 = y;
        double r75602035 = 0.5;
        double r75602036 = r75602034 + r75602035;
        double r75602037 = log(r75602034);
        double r75602038 = r75602036 * r75602037;
        double r75602039 = r75602033 - r75602038;
        double r75602040 = r75602039 + r75602034;
        double r75602041 = z;
        double r75602042 = r75602040 - r75602041;
        return r75602042;
}

double f(double x, double y, double z) {
        double r75602043 = x;
        double r75602044 = y;
        double r75602045 = 0.5;
        double r75602046 = r75602044 + r75602045;
        double r75602047 = log(r75602044);
        double r75602048 = r75602046 * r75602047;
        double r75602049 = r75602048 - r75602044;
        double r75602050 = r75602043 - r75602049;
        double r75602051 = z;
        double r75602052 = r75602050 - r75602051;
        return r75602052;
}

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 2019173 
(FPCore (x y z)
  :name "Numeric.SpecFunctions:stirlingError from math-functions-0.1.5.2"

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

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