\cos x \cdot \frac{\sinh y}{y}\frac{\cos x}{\frac{y}{\sinh y}}(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
(FPCore (x y) :precision binary64 (/ (cos x) (/ y (sinh y))))
double code(double x, double y) {
return cos(x) * (sinh(y) / y);
}
double code(double x, double y) {
return cos(x) / (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 |
| Alternative 5 | |
|---|---|
| Error | 59.9 |
| Cost | 64 |

Initial program 0.0
rmApplied clear-num_binary64_34870.0
rmApplied un-div-inv_binary64_34860.0
rmApplied *-un-lft-identity_binary64_34880.0
Applied *-un-lft-identity_binary64_34880.0
Applied times-frac_binary64_34940.0
Simplified0.0
rmApplied pow1_binary64_35490.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021014
(FPCore (x y)
:name "Linear.Quaternion:$csin from linear-1.19.1.3"
:precision binary64
(* (cos x) (/ (sinh y) y)))