Average Error: 0.0 → 0.0
Time: 12.8s
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 r846337 = x;
        double r846338 = y;
        double r846339 = r846337 - r846338;
        double r846340 = z;
        double r846341 = r846340 - r846338;
        double r846342 = r846339 / r846341;
        return r846342;
}

double f(double x, double y, double z) {
        double r846343 = x;
        double r846344 = y;
        double r846345 = r846343 - r846344;
        double r846346 = z;
        double r846347 = r846346 - r846344;
        double r846348 = r846345 / r846347;
        return r846348;
}

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 2019353 
(FPCore (x y z)
  :name "Graphics.Rasterific.Shading:$sgradientColorAt from Rasterific-0.6.1"
  :precision binary64

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

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