Average Error: 3.7 → 3.7
Time: 13.2s
Precision: 64
\[x \cdot \left(1 - y \cdot z\right)\]
\[\left(1 - z \cdot y\right) \cdot x\]
x \cdot \left(1 - y \cdot z\right)
\left(1 - z \cdot y\right) \cdot x
double f(double x, double y, double z) {
        double r219984 = x;
        double r219985 = 1.0;
        double r219986 = y;
        double r219987 = z;
        double r219988 = r219986 * r219987;
        double r219989 = r219985 - r219988;
        double r219990 = r219984 * r219989;
        return r219990;
}

double f(double x, double y, double z) {
        double r219991 = 1.0;
        double r219992 = z;
        double r219993 = y;
        double r219994 = r219992 * r219993;
        double r219995 = r219991 - r219994;
        double r219996 = x;
        double r219997 = r219995 * r219996;
        return r219997;
}

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

Derivation

  1. Initial program 3.7

    \[x \cdot \left(1 - y \cdot z\right)\]
  2. Simplified3.7

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

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

Reproduce

herbie shell --seed 2019196 +o rules:numerics
(FPCore (x y z)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
  (* x (- 1.0 (* y z))))