Average Error: 0.0 → 0.0
Time: 2.2s
Precision: binary64
Cost: 320
\[200 \cdot \left(x - y\right)\]
\[200 \cdot \left(x - y\right)\]
200 \cdot \left(x - y\right)
200 \cdot \left(x - y\right)
(FPCore (x y) :precision binary64 (* 200.0 (- x y)))
(FPCore (x y) :precision binary64 (* 200.0 (- x y)))
double code(double x, double y) {
	return 200.0 * (x - y);
}
double code(double x, double y) {
	return 200.0 * (x - y);
}

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.1
Cost1050
\[\begin{array}{l} \mathbf{if}\;y \leq -3.5339745518437 \cdot 10^{-37} \lor \neg \left(y \leq 6.916875205818669 \cdot 10^{-103} \lor \neg \left(y \leq 1.458888362185229 \cdot 10^{-67}\right) \land \left(y \leq 190523838892.67935 \lor \neg \left(y \leq 2.666617938657969 \cdot 10^{+56}\right) \land y \leq 6.269600677571727 \cdot 10^{+75}\right)\right):\\ \;\;\;\;y \cdot -200\\ \mathbf{else}:\\ \;\;\;\;200 \cdot x\\ \end{array}\]
Alternative 2
Error31.4
Cost192
\[y \cdot -200\]
Alternative 3
Error61.9
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[200 \cdot \left(x - y\right)\]
  2. Simplified0.0

    \[\leadsto \color{blue}{200 \cdot \left(x - y\right)}\]
  3. Final simplification0.0

    \[\leadsto 200 \cdot \left(x - y\right)\]

Reproduce

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