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



Bits error versus x
Initial program 59.7
Simplified59.7
rmApplied add-exp-log_binary6459.7
Applied div-exp_binary6459.7
rmApplied add-log-exp_binary6459.7
Final simplification59.7
herbie shell --seed 2020205
(FPCore (x)
:name "expfmod"
:precision binary64
(* (fmod (exp x) (sqrt (cos x))) (exp (- x))))