Average Error: 17.0 → 0.0
Time: 17.7s
Precision: 64
\[\left(\left(x \cdot y + y \cdot y\right) - y \cdot z\right) - y \cdot y\]
\[\left(x - z\right) \cdot y\]
\left(\left(x \cdot y + y \cdot y\right) - y \cdot z\right) - y \cdot y
\left(x - z\right) \cdot y
double f(double x, double y, double z) {
        double r397210 = x;
        double r397211 = y;
        double r397212 = r397210 * r397211;
        double r397213 = r397211 * r397211;
        double r397214 = r397212 + r397213;
        double r397215 = z;
        double r397216 = r397211 * r397215;
        double r397217 = r397214 - r397216;
        double r397218 = r397217 - r397213;
        return r397218;
}

double f(double x, double y, double z) {
        double r397219 = x;
        double r397220 = z;
        double r397221 = r397219 - r397220;
        double r397222 = y;
        double r397223 = r397221 * r397222;
        return r397223;
}

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

Original17.0
Target0.0
Herbie0.0
\[\left(x - z\right) \cdot y\]

Derivation

  1. Initial program 17.0

    \[\left(\left(x \cdot y + y \cdot y\right) - y \cdot z\right) - y \cdot y\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\left(x - z\right) \cdot y}\]
  3. Final simplification0.0

    \[\leadsto \left(x - z\right) \cdot y\]

Reproduce

herbie shell --seed 2019323 
(FPCore (x y z)
  :name "Linear.Quaternion:$c/ from linear-1.19.1.3, C"
  :precision binary64

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

  (- (- (+ (* x y) (* y y)) (* y z)) (* y y)))