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



Bits error versus x
Results
Initial program 31.6
rmApplied add-sqr-sqrt_binary6431.6
Applied difference-of-squares_binary6431.6
Applied sqrt-prod_binary640.1
Simplified0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020219
(FPCore (x)
:name "Hyperbolic arc-cosine"
:precision binary64
(log (+ x (sqrt (- (* x x) 1.0)))))