\left|\left(\left(\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\mathsf{expm1}\left(a\right)\right)\right)}{\tan^{-1} a}\right) \bmod a\right)\right|\left|\left(\left(\log \left(\sqrt{e^{\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\mathsf{expm1}\left(a\right)\right)\right)}{\tan^{-1} a}}}\right) + \log \left(\sqrt{e^{\tan^{-1}_* \frac{\mathsf{expm1}\left(\sin \left(\mathsf{expm1}\left(a\right)\right)\right)}{\tan^{-1} a}}}\right)\right) \bmod a\right)\right|double code(double a) {
return fabs(fmod(atan2(expm1(sin(expm1(a))), atan(a)), a));
}
double code(double a) {
return fabs(fmod((log(sqrt(exp(atan2(expm1(sin(expm1(a))), atan(a))))) + log(sqrt(exp(atan2(expm1(sin(expm1(a))), atan(a)))))), a));
}



Bits error versus a
Results
Initial program 33.5
rmApplied add-log-exp33.6
rmApplied add-sqr-sqrt33.5
Applied log-prod33.5
Final simplification33.5
herbie shell --seed 2020057 +o rules:numerics
(FPCore (a)
:name "Random Jason Timeout Test 006"
:precision binary64
(fabs (fmod (atan2 (expm1 (sin (expm1 a))) (atan a)) a)))