Average Error: 1.3 → 1.3
Time: 9.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 r739822 = x;
        double r739823 = y;
        double r739824 = z;
        double r739825 = t;
        double r739826 = r739824 - r739825;
        double r739827 = a;
        double r739828 = r739824 - r739827;
        double r739829 = r739826 / r739828;
        double r739830 = r739823 * r739829;
        double r739831 = r739822 + r739830;
        return r739831;
}

double f(double x, double y, double z, double t, double a) {
        double r739832 = x;
        double r739833 = y;
        double r739834 = z;
        double r739835 = t;
        double r739836 = r739834 - r739835;
        double r739837 = a;
        double r739838 = r739834 - r739837;
        double r739839 = r739836 / r739838;
        double r739840 = r739833 * r739839;
        double r739841 = r739832 + r739840;
        return r739841;
}

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.3
Target1.2
Herbie1.3
\[x + \frac{y}{\frac{z - a}{z - t}}\]

Derivation

  1. Initial program 1.3

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

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

Reproduce

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