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



Bits error versus x
Results
Initial program 31.8
Simplified31.8
Taylor expanded in x around inf 0.7
Simplified0.7
Final simplification0.7
herbie shell --seed 2022068
(FPCore (x)
:name "Hyperbolic arc-cosine"
:precision binary64
(log (+ x (sqrt (- (* x x) 1.0)))))