Average Error: 1.4 → 1.4
Time: 18.6s
Precision: 64
\[x + y \cdot \frac{z - t}{z - a}\]
\[x + y \cdot \frac{z - t}{z - a}\]
x + y \cdot \frac{z - t}{z - a}
x + y \cdot \frac{z - t}{z - a}
double f(double x, double y, double z, double t, double a) {
        double r382168 = x;
        double r382169 = y;
        double r382170 = z;
        double r382171 = t;
        double r382172 = r382170 - r382171;
        double r382173 = a;
        double r382174 = r382170 - r382173;
        double r382175 = r382172 / r382174;
        double r382176 = r382169 * r382175;
        double r382177 = r382168 + r382176;
        return r382177;
}

double f(double x, double y, double z, double t, double a) {
        double r382178 = x;
        double r382179 = y;
        double r382180 = z;
        double r382181 = t;
        double r382182 = r382180 - r382181;
        double r382183 = a;
        double r382184 = r382180 - r382183;
        double r382185 = r382182 / r382184;
        double r382186 = r382179 * r382185;
        double r382187 = r382178 + r382186;
        return r382187;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original1.4
Target1.4
Herbie1.4
\[x + \frac{y}{\frac{z - a}{z - t}}\]

Derivation

  1. Initial program 1.4

    \[x + y \cdot \frac{z - t}{z - a}\]
  2. Final simplification1.4

    \[\leadsto x + y \cdot \frac{z - t}{z - a}\]

Reproduce

herbie shell --seed 2019325 +o rules:numerics
(FPCore (x y z t a)
  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
  :precision binary64

  :herbie-target
  (+ x (/ y (/ (- z a) (- z t))))

  (+ x (* y (/ (- z t) (- z a)))))