\cosh x \cdot \frac{\sin y}{y}\frac{\sin y}{y} \cdot \cosh xdouble f(double x, double y) {
double r15635538 = x;
double r15635539 = cosh(r15635538);
double r15635540 = y;
double r15635541 = sin(r15635540);
double r15635542 = r15635541 / r15635540;
double r15635543 = r15635539 * r15635542;
return r15635543;
}
double f(double x, double y) {
double r15635544 = y;
double r15635545 = sin(r15635544);
double r15635546 = r15635545 / r15635544;
double r15635547 = x;
double r15635548 = cosh(r15635547);
double r15635549 = r15635546 * r15635548;
return r15635549;
}




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 +o rules:numerics
(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)))