Average Error: 0.0 → 0.0
Time: 5.9s
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 r470435 = x;
        double r470436 = y;
        double r470437 = r470435 - r470436;
        double r470438 = z;
        double r470439 = r470438 - r470436;
        double r470440 = r470437 / r470439;
        return r470440;
}

double f(double x, double y, double z) {
        double r470441 = x;
        double r470442 = y;
        double r470443 = r470441 - r470442;
        double r470444 = z;
        double r470445 = r470444 - r470442;
        double r470446 = r470443 / r470445;
        return r470446;
}

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 1978988140 
(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)))