\cosh x \cdot \frac{\sin y}{y}\frac{\frac{\sin y}{\frac{1}{2}} \cdot \cosh x}{2 \cdot y}double f(double x, double y) {
double r486938 = x;
double r486939 = cosh(r486938);
double r486940 = y;
double r486941 = sin(r486940);
double r486942 = r486941 / r486940;
double r486943 = r486939 * r486942;
return r486943;
}
double f(double x, double y) {
double r486944 = y;
double r486945 = sin(r486944);
double r486946 = 0.5;
double r486947 = r486945 / r486946;
double r486948 = x;
double r486949 = cosh(r486948);
double r486950 = r486947 * r486949;
double r486951 = 2.0;
double r486952 = r486951 * r486944;
double r486953 = r486950 / r486952;
return r486953;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 0.1
rmApplied cosh-def0.1
Applied frac-times0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2020081
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:precision binary64
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))