\cos x \cdot \frac{\sinh y}{y}\frac{\cos x \cdot \sqrt{\frac{\sinh y}{y}}}{\sqrt{\frac{y}{\sinh y}}}(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
(FPCore (x y) :precision binary64 (/ (* (cos x) (sqrt (/ (sinh y) y))) (sqrt (/ y (sinh y)))))
double code(double x, double y) {
return cos(x) * (sinh(y) / y);
}
double code(double x, double y) {
return (cos(x) * sqrt(sinh(y) / y)) / sqrt(y / sinh(y));
}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
rmApplied clear-num_binary64_48510.0
rmApplied add-sqr-sqrt_binary64_48740.0
Applied associate-*r*_binary64_47920.0
Simplified0.0
rmApplied sqrt-div_binary64_48690.0
Applied associate-*r/_binary64_47940.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y)
:name "Linear.Quaternion:$csin from linear-1.19.1.3"
:precision binary64
(* (cos x) (/ (sinh y) y)))