Average Error: 0.0 → 0.0
Time: 9.2s
Precision: 64
\[x - y \cdot x\]
\[x - y \cdot x\]
x - y \cdot x
x - y \cdot x
double f(double x, double y) {
        double r497190 = x;
        double r497191 = y;
        double r497192 = r497191 * r497190;
        double r497193 = r497190 - r497192;
        return r497193;
}

double f(double x, double y) {
        double r497194 = x;
        double r497195 = y;
        double r497196 = r497195 * r497194;
        double r497197 = r497194 - r497196;
        return r497197;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x - y \cdot x\]
  2. Final simplification0.0

    \[\leadsto x - y \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (x y)
  :name "x-(y*x)"
  :precision binary64
  (- x (* y x)))