\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
Applied add-exp-log_binary6459.8
Applied div-exp_binary6459.8
Taylor expanded in x around inf 24.8
Simplified24.8
Final simplification24.8
herbie shell --seed 2022077
(FPCore (x)
:name "expfmod"
:precision binary64
(* (fmod (exp x) (sqrt (cos x))) (exp (- x))))