\cosh x \cdot \frac{\sin y}{y}\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{\sin y}{y}\right)\right) \cdot \cosh xdouble f(double x, double y) {
double r19131477 = x;
double r19131478 = cosh(r19131477);
double r19131479 = y;
double r19131480 = sin(r19131479);
double r19131481 = r19131480 / r19131479;
double r19131482 = r19131478 * r19131481;
return r19131482;
}
double f(double x, double y) {
double r19131483 = y;
double r19131484 = sin(r19131483);
double r19131485 = r19131484 / r19131483;
double r19131486 = log1p(r19131485);
double r19131487 = expm1(r19131486);
double r19131488 = x;
double r19131489 = cosh(r19131488);
double r19131490 = r19131487 * r19131489;
return r19131490;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 0.1
rmApplied expm1-log1p-u0.1
Final simplification0.1
herbie shell --seed 2019172 +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)))