Average Error: 0.0 → 0.0
Time: 3.5s
Precision: binary64
\[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

Derivation

  1. Initial program 0.0

    \[200 \cdot \left(x - y\right)\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt_binary64_58970.9

    \[\leadsto \color{blue}{\left(\sqrt{200} \cdot \sqrt{200}\right)} \cdot \left(x - y\right)\]
  4. Applied associate-*l*_binary64_58160.5

    \[\leadsto \color{blue}{\sqrt{200} \cdot \left(\sqrt{200} \cdot \left(x - y\right)\right)}\]
  5. Simplified0.5

    \[\leadsto \sqrt{200} \cdot \color{blue}{\left(\left(x - y\right) \cdot \sqrt{200}\right)}\]
  6. Using strategy rm
  7. Applied *-un-lft-identity_binary64_58750.5

    \[\leadsto \sqrt{\color{blue}{1 \cdot 200}} \cdot \left(\left(x - y\right) \cdot \sqrt{200}\right)\]
  8. Applied sqrt-prod_binary64_58910.5

    \[\leadsto \color{blue}{\left(\sqrt{1} \cdot \sqrt{200}\right)} \cdot \left(\left(x - y\right) \cdot \sqrt{200}\right)\]
  9. Applied associate-*l*_binary64_58160.5

    \[\leadsto \color{blue}{\sqrt{1} \cdot \left(\sqrt{200} \cdot \left(\left(x - y\right) \cdot \sqrt{200}\right)\right)}\]
  10. Simplified0.0

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

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

Reproduce

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