\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 r20538639 = x;
double r20538640 = cosh(r20538639);
double r20538641 = y;
double r20538642 = sin(r20538641);
double r20538643 = r20538642 / r20538641;
double r20538644 = r20538640 * r20538643;
return r20538644;
}
double f(double x, double y) {
double r20538645 = y;
double r20538646 = sin(r20538645);
double r20538647 = r20538646 / r20538645;
double r20538648 = log1p(r20538647);
double r20538649 = expm1(r20538648);
double r20538650 = x;
double r20538651 = cosh(r20538650);
double r20538652 = r20538649 * r20538651;
return r20538652;
}




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)))