\cosh x \cdot \frac{\sin y}{y}\cosh x \cdot \frac{1}{\frac{y}{\sin y}}double f(double x, double y) {
double r343332 = x;
double r343333 = cosh(r343332);
double r343334 = y;
double r343335 = sin(r343334);
double r343336 = r343335 / r343334;
double r343337 = r343333 * r343336;
return r343337;
}
double f(double x, double y) {
double r343338 = x;
double r343339 = cosh(r343338);
double r343340 = 1.0;
double r343341 = y;
double r343342 = sin(r343341);
double r343343 = r343341 / r343342;
double r343344 = r343340 / r343343;
double r343345 = r343339 * r343344;
return r343345;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
rmApplied clear-num0.2
Final simplification0.2
herbie shell --seed 2019199
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))