Average Error: 0.0 → 0.0
Time: 2.3s
Precision: binary64
Cost: 6592
\[\sqrt{x + y}\]
\[\sqrt{x + y}\]
\sqrt{x + y}
\sqrt{x + y}
(FPCore (x y) :precision binary64 (sqrt (+ x y)))
(FPCore (x y) :precision binary64 (sqrt (+ x y)))
double code(double x, double y) {
	return sqrt(x + y);
}
double code(double x, double y) {
	return sqrt(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
Error10.6
Cost6924
\[\begin{array}{l} \mathbf{if}\;x \leq 2.672711868086791 \cdot 10^{-97} \lor \neg \left(x \leq 1.8874392947596603 \cdot 10^{-75}\right) \land x \leq 7.697410924593447 \cdot 10^{-57}:\\ \;\;\;\;\sqrt{y}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{x}\\ \end{array}\]
Alternative 2
Error31.8
Cost6464
\[\sqrt{x}\]
Alternative 3
Error59.5
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[\sqrt{x + y}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\sqrt{x + y}}\]
  3. Final simplification0.0

    \[\leadsto \sqrt{x + y}\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x y)
  :name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, A"
  :precision binary64
  (sqrt (+ x y)))