\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}double f(double x, double y) {
double r24876514 = x;
double r24876515 = sin(r24876514);
double r24876516 = y;
double r24876517 = sinh(r24876516);
double r24876518 = r24876515 * r24876517;
double r24876519 = r24876518 / r24876514;
return r24876519;
}
double f(double x, double y) {
double r24876520 = y;
double r24876521 = sinh(r24876520);
double r24876522 = x;
double r24876523 = sin(r24876522);
double r24876524 = r24876523 / r24876522;
double r24876525 = r24876521 * r24876524;
return r24876525;
}




Bits error versus x




Bits error versus y
Results
| Original | 14.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
Initial program 14.2
rmApplied associate-/l*0.8
rmApplied associate-/r/0.1
Final simplification0.1
herbie shell --seed 2019172 +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))