Average Error: 0.0 → 0.0
Time: 2.0s
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 r1030694 = x;
        double r1030695 = y;
        double r1030696 = z;
        double r1030697 = r1030695 - r1030696;
        double r1030698 = t;
        double r1030699 = r1030698 - r1030694;
        double r1030700 = r1030697 * r1030699;
        double r1030701 = r1030694 + r1030700;
        return r1030701;
}

double f(double x, double y, double z, double t) {
        double r1030702 = x;
        double r1030703 = y;
        double r1030704 = z;
        double r1030705 = r1030703 - r1030704;
        double r1030706 = t;
        double r1030707 = r1030706 - r1030702;
        double r1030708 = r1030705 * r1030707;
        double r1030709 = r1030702 + r1030708;
        return r1030709;
}

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