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



Bits error versus x
Results
Initial program 31.5
Simplified31.5
Taylor expanded in x around inf 0.6
Final simplification0.6
herbie shell --seed 2021280
(FPCore (x)
:name "Hyperbolic arc-cosine"
:precision binary64
(log (+ x (sqrt (- (* x x) 1.0)))))