\cosh x \cdot \frac{\sin y}{y}\frac{\sin y}{y} \cdot \cosh xdouble f(double x, double y) {
double r21289501 = x;
double r21289502 = cosh(r21289501);
double r21289503 = y;
double r21289504 = sin(r21289503);
double r21289505 = r21289504 / r21289503;
double r21289506 = r21289502 * r21289505;
return r21289506;
}
double f(double x, double y) {
double r21289507 = y;
double r21289508 = sin(r21289507);
double r21289509 = r21289508 / r21289507;
double r21289510 = x;
double r21289511 = cosh(r21289510);
double r21289512 = r21289509 * r21289511;
return r21289512;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
Final simplification0.1
herbie shell --seed 2019200
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))