Average Error: 0.0 → 0.0
Time: 2.2s
Precision: 64
\[x + \left(y - z\right) \cdot \left(t - x\right)\]
\[x + \left(y - z\right) \cdot \left(t - x\right)\]
x + \left(y - z\right) \cdot \left(t - x\right)
x + \left(y - z\right) \cdot \left(t - x\right)
double f(double x, double y, double z, double t) {
        double r739374 = x;
        double r739375 = y;
        double r739376 = z;
        double r739377 = r739375 - r739376;
        double r739378 = t;
        double r739379 = r739378 - r739374;
        double r739380 = r739377 * r739379;
        double r739381 = r739374 + r739380;
        return r739381;
}

double f(double x, double y, double z, double t) {
        double r739382 = x;
        double r739383 = y;
        double r739384 = z;
        double r739385 = r739383 - r739384;
        double r739386 = t;
        double r739387 = r739386 - r739382;
        double r739388 = r739385 * r739387;
        double r739389 = r739382 + r739388;
        return r739389;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

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

Derivation

  1. Initial program 0.0

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

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

Reproduce

herbie shell --seed 2020049 
(FPCore (x y z t)
  :name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
  :precision binary64

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

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