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



Bits error versus x
Results
Initial program 31.3
Simplified31.3
Taylor expanded in x around inf 0.8
Simplified0.8
Applied pow1_binary640.8
Applied log-pow_binary640.8
Applied pow1_binary640.8
Applied log-pow_binary640.8
Applied distribute-lft-out_binary640.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2022160
(FPCore (x)
:name "Hyperbolic arc-cosine"
:precision binary64
(log (+ x (sqrt (- (* x x) 1.0)))))