Average Error: 0.0 → 0.0
Time: 997.0ms
Precision: binary64
Cost: 320
\[x - \frac{y}{200}\]
\[x - \frac{y}{200}\]
x - \frac{y}{200}
x - \frac{y}{200}
(FPCore (x y) :precision binary64 (- x (/ y 200.0)))
(FPCore (x y) :precision binary64 (- x (/ y 200.0)))
double code(double x, double y) {
	return x - (y / 200.0);
}
double code(double x, double y) {
	return x - (y / 200.0);
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error16.9
Cost1050
\[\begin{array}{l} \mathbf{if}\;y \leq -4.884132055789445 \cdot 10^{-63} \lor \neg \left(y \leq 2.253701988489841 \cdot 10^{-59} \lor \neg \left(y \leq 7.147788070644602 \cdot 10^{-50}\right) \land \left(y \leq 3.182123080566351 \cdot 10^{+25} \lor \neg \left(y \leq 6.561011205482206 \cdot 10^{+39}\right) \land y \leq 5.981266544615255 \cdot 10^{+61}\right)\right):\\ \;\;\;\;y \cdot -0.005\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array}\]
Alternative 2
Error31.3
Cost64
\[x\]
Alternative 3
Error61.8
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[x - \frac{y}{200}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{x - \frac{y}{200}}\]
  3. Final simplification0.0

    \[\leadsto x - \frac{y}{200}\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, D"
  :precision binary64
  (- x (/ y 200.0)))