Average Error: 0.0 → 0.0
Time: 15.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 r35658916 = x;
        double r35658917 = y;
        double r35658918 = r35658916 - r35658917;
        double r35658919 = z;
        double r35658920 = r35658919 - r35658917;
        double r35658921 = r35658918 / r35658920;
        return r35658921;
}

double f(double x, double y, double z) {
        double r35658922 = x;
        double r35658923 = y;
        double r35658924 = r35658922 - r35658923;
        double r35658925 = z;
        double r35658926 = r35658925 - r35658923;
        double r35658927 = r35658924 / r35658926;
        return r35658927;
}

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