Average Error: 0.0 → 0.0
Time: 6.1s
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 r4680 = x;
        double r4681 = y;
        double r4682 = z;
        double r4683 = r4681 - r4682;
        double r4684 = t;
        double r4685 = r4684 - r4680;
        double r4686 = r4683 * r4685;
        double r4687 = r4680 + r4686;
        return r4687;
}

double f(double x, double y, double z, double t) {
        double r4688 = x;
        double r4689 = y;
        double r4690 = z;
        double r4691 = r4689 - r4690;
        double r4692 = t;
        double r4693 = r4692 - r4688;
        double r4694 = r4691 * r4693;
        double r4695 = r4688 + r4694;
        return r4695;
}

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