Average Error: 0 → 0
Time: 875.0ms
Precision: 64
\[a - b\]
\[a - b\]
a - b
a - b
double f(double a, double b) {
        double r23640768 = a;
        double r23640769 = b;
        double r23640770 = r23640768 - r23640769;
        return r23640770;
}

double f(double a, double b) {
        double r23640771 = a;
        double r23640772 = b;
        double r23640773 = r23640771 - r23640772;
        return r23640773;
}

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[a - b\]
  2. Final simplification0

    \[\leadsto a - b\]

Reproduce

herbie shell --seed 1 
(FPCore (a b)
  :name "a-b"
  (- a b))