\sin \left({\left(\sqrt{\tan^{-1}_* \frac{b}{b}}\right)}^{\left(b - a\right)}\right)\sin \left(\log \left(\mathsf{expm1}\left(\mathsf{log1p}\left(e^{{\left(\sqrt{\tan^{-1}_* \frac{b}{b}}\right)}^{\left(b - a\right)}}\right)\right)\right)\right)double code(double a, double b) {
return sin(pow(sqrt(atan2(b, b)), (b - a)));
}
double code(double a, double b) {
return sin(log(expm1(log1p(exp(pow(sqrt(atan2(b, b)), (b - a)))))));
}



Bits error versus a



Bits error versus b
Results
Initial program 0.1
rmApplied add-log-exp0.3
rmApplied expm1-log1p-u0.3
Final simplification0.3
herbie shell --seed 2020066 +o rules:numerics
(FPCore (a b)
:name "Random Jason Timeout Test 003"
:precision binary64
(sin (pow (sqrt (atan2 b b)) (- b a))))