Average Error: 0.0 → 0.0
Time: 35.4s
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 r548634 = x;
        double r548635 = y;
        double r548636 = z;
        double r548637 = r548635 - r548636;
        double r548638 = t;
        double r548639 = r548638 - r548634;
        double r548640 = r548637 * r548639;
        double r548641 = r548634 + r548640;
        return r548641;
}

double f(double x, double y, double z, double t) {
        double r548642 = x;
        double r548643 = y;
        double r548644 = z;
        double r548645 = r548643 - r548644;
        double r548646 = t;
        double r548647 = r548646 - r548642;
        double r548648 = r548645 * r548647;
        double r548649 = r548642 + r548648;
        return r548649;
}

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