\sqrt{\frac{e^{2 \cdot x} - 1}{e^{x} - 1}}
\sqrt{\frac{1 + {\left(e^{x}\right)}^{3}}{\left(1 + {\left(e^{x}\right)}^{2}\right) - e^{x}}}
(FPCore (x) :precision binary64 (sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))))
(FPCore (x) :precision binary64 (sqrt (/ (+ 1.0 (pow (exp x) 3.0)) (- (+ 1.0 (pow (exp x) 2.0)) (exp x)))))
double code(double x) {
return sqrt((exp(2.0 * x) - 1.0) / (exp(x) - 1.0));
}
double code(double x) {
return sqrt((1.0 + pow(exp(x), 3.0)) / ((1.0 + pow(exp(x), 2.0)) - exp(x)));
}



Bits error versus x
Results
Initial program 41.1
Simplified0.0
rmApplied flip3-+_binary640.1
Simplified0.1
Simplified0.1
Taylor expanded in x around inf 0.1
Final simplification0.1
herbie shell --seed 2021206
(FPCore (x)
:name "sqrtexp (problem 3.4.4)"
:precision binary64
(sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))))