\sqrt{x - 1} \cdot \sqrt{x}\sqrt{x - 1} \cdot \sqrt{x}(FPCore (x) :precision binary64 (* (sqrt (- x 1.0)) (sqrt x)))
(FPCore (x) :precision binary64 (* (sqrt (- x 1.0)) (sqrt x)))
double code(double x) {
return sqrt(x - 1.0) * sqrt(x);
}
double code(double x) {
return sqrt(x - 1.0) * sqrt(x);
}



Bits error versus x
Results
Initial program 0.5
Final simplification0.5
herbie shell --seed 2020233
(FPCore (x)
:name "sqrt times"
:precision binary64
(* (sqrt (- x 1.0)) (sqrt x)))