\left(\left(e^{x}\right) \bmod \left(\sqrt{\cos x}\right)\right) \cdot e^{-x}e^{-x}(FPCore (x) :precision binary64 (* (fmod (exp x) (sqrt (cos x))) (exp (- x))))
(FPCore (x) :precision binary64 (exp (- x)))
double code(double x) {
return fmod(exp(x), sqrt(cos(x))) * exp(-x);
}
double code(double x) {
return exp(-x);
}



Bits error versus x
Initial program 59.8
Simplified59.8
rmApplied add-exp-log_binary64_79859.8
Applied div-exp_binary64_81159.8
Taylor expanded around inf 25.0
Final simplification25.0
herbie shell --seed 2021032
(FPCore (x)
:name "expfmod"
:precision binary64
(* (fmod (exp x) (sqrt (cos x))) (exp (- x))))