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







Bits error versus x







Bits error versus y
Results
| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 13120 |
| Alternative 2 | |
|---|---|
| Error | 0.8 |
| Cost | 6976 |
| Alternative 3 | |
|---|---|
| Error | 1.1 |
| Cost | 6464 |
| Alternative 4 | |
|---|---|
| Error | 29.4 |
| Cost | 64 |

Initial program 0.0
rmApplied clear-num_binary64_28050.0
rmApplied add-sqr-sqrt_binary64_28280.0
Applied associate-*r*_binary64_27460.0
Simplified0.0
rmApplied sqrt-div_binary64_28230.0
Applied associate-*r/_binary64_27480.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y)
:name "Linear.Quaternion:$csin from linear-1.19.1.3"
:precision binary64
(* (cos x) (/ (sinh y) y)))