Average Error: 0 → 0
Time: 154.0ms
Precision: binary64
\[2 - 2\]
\[0\]
2 - 2
0
double code() {
	return ((double) (2.0 - 2.0));
}
double code() {
	return 0.0;
}

Error

Try it out

Your Program's Arguments

    Results

    Enter valid numbers for all inputs

    Derivation

    1. Initial program 0

      \[2 - 2\]
    2. Simplified0

      \[\leadsto \color{blue}{0}\]
    3. Final simplification0

      \[\leadsto 0\]

    Reproduce

    herbie shell --seed 2020152 
    (FPCore ()
      :name "(- 2 2)"
      :precision binary64
      (- 2.0 2.0))