\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r22484408 = x;
double r22484409 = sin(r22484408);
double r22484410 = y;
double r22484411 = sinh(r22484410);
double r22484412 = r22484409 * r22484411;
double r22484413 = r22484412 / r22484408;
return r22484413;
}
double f(double x, double y) {
double r22484414 = y;
double r22484415 = sinh(r22484414);
double r22484416 = x;
double r22484417 = sin(r22484416);
double r22484418 = r22484417 / r22484416;
double r22484419 = r22484415 * r22484418;
return r22484419;
}




Bits error versus x




Bits error versus y
Results
| Original | 13.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 13.7
Taylor expanded around inf 42.8
Simplified0.1
rmApplied div-inv0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2019168 +o rules:numerics
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:herbie-target
(* (sin x) (/ (sinh y) x))
(/ (* (sin x) (sinh y)) x))