\frac{r \cdot \sin b}{\cos \left(a + b\right)}\frac{\sin b \cdot r}{\cos b \cdot \cos a + \left(-\sin a \cdot \sin b\right)}double f(double r, double a, double b) {
double r24052 = r;
double r24053 = b;
double r24054 = sin(r24053);
double r24055 = r24052 * r24054;
double r24056 = a;
double r24057 = r24056 + r24053;
double r24058 = cos(r24057);
double r24059 = r24055 / r24058;
return r24059;
}
double f(double r, double a, double b) {
double r24060 = b;
double r24061 = sin(r24060);
double r24062 = r;
double r24063 = r24061 * r24062;
double r24064 = cos(r24060);
double r24065 = a;
double r24066 = cos(r24065);
double r24067 = r24064 * r24066;
double r24068 = sin(r24065);
double r24069 = r24068 * r24061;
double r24070 = -r24069;
double r24071 = r24067 + r24070;
double r24072 = r24063 / r24071;
return r24072;
}



Bits error versus r



Bits error versus a



Bits error versus b
Results
Initial program 15.4
rmApplied cos-sum0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
Simplified0.3
Simplified0.3
rmApplied add-cbrt-cube0.4
Applied add-cbrt-cube0.4
Applied cbrt-unprod0.4
Simplified0.4
Final simplification0.3
herbie shell --seed 2019308
(FPCore (r a b)
:name "r*sin(b)/cos(a+b), A"
:precision binary64
(/ (* r (sin b)) (cos (+ a b))))