Average Error: 0.0 → 0.0
Time: 5.1s
Precision: 64
\[\frac{x - y}{z - y}\]
\[\frac{x - y}{z - y}\]
\frac{x - y}{z - y}
\frac{x - y}{z - y}
double f(double x, double y, double z) {
        double r13231193 = x;
        double r13231194 = y;
        double r13231195 = r13231193 - r13231194;
        double r13231196 = z;
        double r13231197 = r13231196 - r13231194;
        double r13231198 = r13231195 / r13231197;
        return r13231198;
}

double f(double x, double y, double z) {
        double r13231199 = x;
        double r13231200 = y;
        double r13231201 = r13231199 - r13231200;
        double r13231202 = z;
        double r13231203 = r13231202 - r13231200;
        double r13231204 = r13231201 / r13231203;
        return r13231204;
}

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.0
Target0.0
Herbie0.0
\[\frac{x}{z - y} - \frac{y}{z - y}\]

Derivation

  1. Initial program 0.0

    \[\frac{x - y}{z - y}\]
  2. Final simplification0.0

    \[\leadsto \frac{x - y}{z - y}\]

Reproduce

herbie shell --seed 2019156 
(FPCore (x y z)
  :name "Graphics.Rasterific.Shading:$sgradientColorAt from Rasterific-0.6.1"

  :herbie-target
  (- (/ x (- z y)) (/ y (- z y)))

  (/ (- x y) (- z y)))