\cos x \cdot \frac{\sinh y}{y}\cos x \cdot e^{\log \left(\frac{\sinh y}{y}\right)}(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
(FPCore (x y) :precision binary64 (* (cos x) (exp (log (/ (sinh y) y)))))
double code(double x, double y) {
return cos(x) * (sinh(y) / y);
}
double code(double x, double y) {
return cos(x) * exp(log(sinh(y) / y));
}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
rmApplied add-exp-log_binary64_250334.4
Applied add-exp-log_binary64_250331.5
Applied div-exp_binary64_251631.5
Simplified0.1
Final simplification0.1
herbie shell --seed 2021015
(FPCore (x y)
:name "Linear.Quaternion:$csin from linear-1.19.1.3"
:precision binary64
(* (cos x) (/ (sinh y) y)))