Average Error: 0.0 → 0.0
Time: 21.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 r764543 = x;
        double r764544 = y;
        double r764545 = r764543 - r764544;
        double r764546 = z;
        double r764547 = r764546 - r764544;
        double r764548 = r764545 / r764547;
        return r764548;
}

double f(double x, double y, double z) {
        double r764549 = x;
        double r764550 = y;
        double r764551 = r764549 - r764550;
        double r764552 = z;
        double r764553 = r764552 - r764550;
        double r764554 = r764551 / r764553;
        return r764554;
}

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