\log \left(x + \sqrt{x \cdot x - 1}\right)\log \left(x + \left(\sqrt[3]{\sqrt{x + \sqrt{1}}} \cdot \sqrt[3]{\sqrt{x + \sqrt{1}}}\right) \cdot \left(\sqrt[3]{\sqrt{x + \sqrt{1}}} \cdot \sqrt{x - \sqrt{1}}\right)\right)double code(double x) {
return log((x + sqrt(((x * x) - 1.0))));
}
double code(double x) {
return log((x + ((cbrt(sqrt((x + sqrt(1.0)))) * cbrt(sqrt((x + sqrt(1.0))))) * (cbrt(sqrt((x + sqrt(1.0)))) * sqrt((x - sqrt(1.0)))))));
}



Bits error versus x
Results
Initial program 32.3
rmApplied add-sqr-sqrt32.3
Applied difference-of-squares32.3
Applied sqrt-prod0.1
rmApplied add-cube-cbrt0.1
Applied associate-*l*0.1
Final simplification0.1
herbie shell --seed 2020058
(FPCore (x)
:name "Hyperbolic arc-cosine"
:precision binary64
(log (+ x (sqrt (- (* x x) 1)))))