(FPCore (x y) :precision binary64 (* (cos x) (/ (sinh y) y)))
(FPCore (x y) :precision binary64 (/ (cos x) (cbrt (pow (/ y (sinh y)) 3.0))))
double code(double x, double y) {
return cos(x) * (sinh(y) / y);
}
double code(double x, double y) {
return cos(x) / cbrt(pow((y / sinh(y)), 3.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.cbrt(Math.pow((y / Math.sinh(y)), 3.0));
}
function code(x, y) return Float64(cos(x) * Float64(sinh(y) / y)) end
function code(x, y) return Float64(cos(x) / cbrt((Float64(y / sinh(y)) ^ 3.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[Power[N[(y / N[Sinh[y], $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]
\cos x \cdot \frac{\sinh y}{y}
\frac{\cos x}{\sqrt[3]{{\left(\frac{y}{\sinh y}\right)}^{3}}}
Results
Initial program 0.0
Applied egg-rr0.0
Applied egg-rr0.1
Final simplification0.1
herbie shell --seed 2022210
(FPCore (x y)
:name "Linear.Quaternion:$csin from linear-1.19.1.3"
:precision binary64
(* (cos x) (/ (sinh y) y)))