\frac{\sin x \cdot \sinh y}{x}\sinh y \cdot \frac{\sin x}{x}(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
(FPCore (x y) :precision binary64 (* (sinh y) (/ (sin x) x)))
double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
double code(double x, double y) {
return sinh(y) * (sin(x) / x);
}









Bits error versus x









Bits error versus y
Results
| Original | 14.0 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
| Alternative 1 | |
|---|---|
| Error | 0.2 |
| Cost | 13120 |
| Alternative 2 | |
|---|---|
| Error | 1.2 |
| Cost | 6720 |
| Alternative 3 | |
|---|---|
| Error | 16.2 |
| Cost | 7362 |
| Alternative 4 | |
|---|---|
| Error | 46.2 |
| Cost | 64 |
| Alternative 5 | |
|---|---|
| Error | 61.7 |
| Cost | 64 |

Initial program 14.0
rmApplied associate-/l*_binary64_146860.8
rmApplied associate-/r/_binary64_146870.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2021044
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:precision binary64
:herbie-target
(* (sin x) (/ (sinh y) x))
(/ (* (sin x) (sinh y)) x))