Average Error: 0 → 0
Time: 749.0ms
Precision: binary64
Cost: 64
\[x = 0 \lor x = 10\]
\[x\]
\[x\]
x
x
(FPCore (x) :precision binary64 x)
(FPCore (x) :precision binary64 x)
double code(double x) {
	return x;
}
double code(double x) {
	return x;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error57.9
Cost64
\[1\]
Alternative 2
Error30.6
Cost64
\[0\]
Alternative 3
Error62.5
Cost64
\[-1\]

Error

Derivation

  1. Initial program 0

    \[x\]
  2. Simplified0

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

    \[\leadsto x\]

Reproduce

herbie shell --seed 2021042 
(FPCore (x)
  :name "x"
  :precision binary64
  :pre (or (== x 0.0) (== x 10.0))
  x)