(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
(FPCore (x y) :precision binary64 (/ (cos x) (pow (log1p (expm1 (sqrt (/ y (sinh y))))) 2.0)))
double code(double x, double y) {
return cos(x) * (sinh(y) / y);
}
double code(double x, double y) {
return cos(x) / pow(log1p(expm1(sqrt((y / sinh(y))))), 2.0);
}
public static double code(double x, double y) {
return Math.cos(x) * (Math.sinh(y) / y);
}
public static double code(double x, double y) {
return Math.cos(x) / Math.pow(Math.log1p(Math.expm1(Math.sqrt((y / Math.sinh(y))))), 2.0);
}
def code(x, y): return math.cos(x) * (math.sinh(y) / y)
def code(x, y): return math.cos(x) / math.pow(math.log1p(math.expm1(math.sqrt((y / math.sinh(y))))), 2.0)
function code(x, y) return Float64(cos(x) * Float64(sinh(y) / y)) end
function code(x, y) return Float64(cos(x) / (log1p(expm1(sqrt(Float64(y / sinh(y))))) ^ 2.0)) end
code[x_, y_] := N[(N[Cos[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
code[x_, y_] := N[(N[Cos[x], $MachinePrecision] / N[Power[N[Log[1 + N[(Exp[N[Sqrt[N[(y / N[Sinh[y], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
\cos x \cdot \frac{\sinh y}{y}
\frac{\cos x}{{\left(\mathsf{log1p}\left(\mathsf{expm1}\left(\sqrt{\frac{y}{\sinh y}}\right)\right)\right)}^{2}}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
Applied egg-rr0.0
Applied egg-rr0.0
Applied egg-rr0.0
Final simplification0.0
herbie shell --seed 2022133
(FPCore (x y)
:name "Linear.Quaternion:$csin from linear-1.19.1.3"
:precision binary64
(* (cos x) (/ (sinh y) y)))