\sqrt{\frac{e^{2 \cdot x} - 1}{e^{x} - 1}}
\sqrt{\log \left(\sqrt{e} \cdot \left(\sqrt{e} \cdot e^{e^{x}}\right)\right)}
(FPCore (x) :precision binary64 (sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))))
(FPCore (x) :precision binary64 (sqrt (log (* (sqrt E) (* (sqrt E) (exp (exp x)))))))
double code(double x) {
return sqrt((exp(2.0 * x) - 1.0) / (exp(x) - 1.0));
}
double code(double x) {
return sqrt(log(sqrt((double) M_E) * (sqrt((double) M_E) * exp(exp(x)))));
}



Bits error versus x
Results
Initial program 41.1
Simplified0.0
Applied add-log-exp_binary640.2
Applied add-log-exp_binary640.2
Applied sum-log_binary640.2
Applied add-sqr-sqrt_binary640.2
Applied associate-*l*_binary640.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2022039
(FPCore (x)
:name "sqrtexp (problem 3.4.4)"
:precision binary64
(sqrt (/ (- (exp (* 2.0 x)) 1.0) (- (exp x) 1.0))))