
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cosh x \cdot \frac{\sin y}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cosh x \cdot \frac{\sin y}{y}
\end{array}
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cosh x \cdot \frac{\sin y}{y}
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y) :precision binary64 (if (<= (cosh x) 1.002) (/ (sin y) y) (cosh x)))
double code(double x, double y) {
double tmp;
if (cosh(x) <= 1.002) {
tmp = sin(y) / y;
} else {
tmp = cosh(x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (cosh(x) <= 1.002d0) then
tmp = sin(y) / y
else
tmp = cosh(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (Math.cosh(x) <= 1.002) {
tmp = Math.sin(y) / y;
} else {
tmp = Math.cosh(x);
}
return tmp;
}
def code(x, y): tmp = 0 if math.cosh(x) <= 1.002: tmp = math.sin(y) / y else: tmp = math.cosh(x) return tmp
function code(x, y) tmp = 0.0 if (cosh(x) <= 1.002) tmp = Float64(sin(y) / y); else tmp = cosh(x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (cosh(x) <= 1.002) tmp = sin(y) / y; else tmp = cosh(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[Cosh[x], $MachinePrecision], 1.002], N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], N[Cosh[x], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\cosh x \leq 1.002:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{else}:\\
\;\;\;\;\cosh x\\
\end{array}
\end{array}
if (cosh.f64 x) < 1.002Initial program 99.9%
Taylor expanded in x around 0 99.6%
if 1.002 < (cosh.f64 x) Initial program 100.0%
associate-*r/100.0%
clear-num100.0%
*-commutative100.0%
Applied egg-rr100.0%
inv-pow100.0%
add-sqr-sqrt76.3%
unpow-prod-down76.3%
associate-/r*76.3%
associate-/r*76.3%
Applied egg-rr76.3%
pow-sqr76.3%
metadata-eval76.3%
Simplified76.3%
Taylor expanded in y around 0 76.3%
+-commutative76.3%
rec-exp76.3%
unpow276.3%
rem-square-sqrt76.3%
cosh-def76.3%
Simplified76.3%
Final simplification87.3%
(FPCore (x y)
:precision binary64
(if (<= x 0.058)
(/ (+ 1.0 (* x (* x 0.5))) (/ y (sin y)))
(if (<= x 9.4e+148)
(* (cosh x) (+ 1.0 (* -0.16666666666666666 (* y y))))
(* (sin y) (+ (* 0.5 (/ (* x x) y)) (/ 1.0 y))))))
double code(double x, double y) {
double tmp;
if (x <= 0.058) {
tmp = (1.0 + (x * (x * 0.5))) / (y / sin(y));
} else if (x <= 9.4e+148) {
tmp = cosh(x) * (1.0 + (-0.16666666666666666 * (y * y)));
} else {
tmp = sin(y) * ((0.5 * ((x * x) / y)) + (1.0 / y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.058d0) then
tmp = (1.0d0 + (x * (x * 0.5d0))) / (y / sin(y))
else if (x <= 9.4d+148) then
tmp = cosh(x) * (1.0d0 + ((-0.16666666666666666d0) * (y * y)))
else
tmp = sin(y) * ((0.5d0 * ((x * x) / y)) + (1.0d0 / y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.058) {
tmp = (1.0 + (x * (x * 0.5))) / (y / Math.sin(y));
} else if (x <= 9.4e+148) {
tmp = Math.cosh(x) * (1.0 + (-0.16666666666666666 * (y * y)));
} else {
tmp = Math.sin(y) * ((0.5 * ((x * x) / y)) + (1.0 / y));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.058: tmp = (1.0 + (x * (x * 0.5))) / (y / math.sin(y)) elif x <= 9.4e+148: tmp = math.cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))) else: tmp = math.sin(y) * ((0.5 * ((x * x) / y)) + (1.0 / y)) return tmp
function code(x, y) tmp = 0.0 if (x <= 0.058) tmp = Float64(Float64(1.0 + Float64(x * Float64(x * 0.5))) / Float64(y / sin(y))); elseif (x <= 9.4e+148) tmp = Float64(cosh(x) * Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y)))); else tmp = Float64(sin(y) * Float64(Float64(0.5 * Float64(Float64(x * x) / y)) + Float64(1.0 / y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.058) tmp = (1.0 + (x * (x * 0.5))) / (y / sin(y)); elseif (x <= 9.4e+148) tmp = cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))); else tmp = sin(y) * ((0.5 * ((x * x) / y)) + (1.0 / y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.058], N[(N[(1.0 + N[(x * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y / N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.4e+148], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[y], $MachinePrecision] * N[(N[(0.5 * N[(N[(x * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.058:\\
\;\;\;\;\frac{1 + x \cdot \left(x \cdot 0.5\right)}{\frac{y}{\sin y}}\\
\mathbf{elif}\;x \leq 9.4 \cdot 10^{+148}:\\
\;\;\;\;\cosh x \cdot \left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin y \cdot \left(0.5 \cdot \frac{x \cdot x}{y} + \frac{1}{y}\right)\\
\end{array}
\end{array}
if x < 0.0580000000000000029Initial program 99.9%
associate-*r/99.9%
clear-num99.9%
*-commutative99.9%
Applied egg-rr99.9%
associate-/r*99.9%
clear-num99.9%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 86.5%
unpow-186.5%
+-commutative86.5%
unpow286.5%
unpow-186.5%
Simplified86.5%
Taylor expanded in y around inf 83.0%
associate-/l*82.9%
unpow282.9%
*-commutative82.9%
associate-*l*82.9%
Simplified82.9%
if 0.0580000000000000029 < x < 9.3999999999999994e148Initial program 100.0%
Taylor expanded in y around 0 78.1%
unpow278.1%
Simplified78.1%
if 9.3999999999999994e148 < x Initial program 100.0%
associate-*r/100.0%
clear-num100.0%
*-commutative100.0%
Applied egg-rr100.0%
associate-/r*100.0%
clear-num100.0%
associate-/r/100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 97.7%
unpow-197.7%
+-commutative97.7%
unpow297.7%
unpow-197.7%
Simplified97.7%
Final simplification84.6%
(FPCore (x y) :precision binary64 (if (or (<= x 0.054) (not (<= x 1.9e+154))) (/ (+ 1.0 (* x (* x 0.5))) (/ y (sin y))) (cosh x)))
double code(double x, double y) {
double tmp;
if ((x <= 0.054) || !(x <= 1.9e+154)) {
tmp = (1.0 + (x * (x * 0.5))) / (y / sin(y));
} else {
tmp = cosh(x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((x <= 0.054d0) .or. (.not. (x <= 1.9d+154))) then
tmp = (1.0d0 + (x * (x * 0.5d0))) / (y / sin(y))
else
tmp = cosh(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((x <= 0.054) || !(x <= 1.9e+154)) {
tmp = (1.0 + (x * (x * 0.5))) / (y / Math.sin(y));
} else {
tmp = Math.cosh(x);
}
return tmp;
}
def code(x, y): tmp = 0 if (x <= 0.054) or not (x <= 1.9e+154): tmp = (1.0 + (x * (x * 0.5))) / (y / math.sin(y)) else: tmp = math.cosh(x) return tmp
function code(x, y) tmp = 0.0 if ((x <= 0.054) || !(x <= 1.9e+154)) tmp = Float64(Float64(1.0 + Float64(x * Float64(x * 0.5))) / Float64(y / sin(y))); else tmp = cosh(x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((x <= 0.054) || ~((x <= 1.9e+154))) tmp = (1.0 + (x * (x * 0.5))) / (y / sin(y)); else tmp = cosh(x); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[x, 0.054], N[Not[LessEqual[x, 1.9e+154]], $MachinePrecision]], N[(N[(1.0 + N[(x * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y / N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Cosh[x], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.054 \lor \neg \left(x \leq 1.9 \cdot 10^{+154}\right):\\
\;\;\;\;\frac{1 + x \cdot \left(x \cdot 0.5\right)}{\frac{y}{\sin y}}\\
\mathbf{else}:\\
\;\;\;\;\cosh x\\
\end{array}
\end{array}
if x < 0.0539999999999999994 or 1.8999999999999999e154 < x Initial program 99.9%
associate-*r/99.9%
clear-num99.9%
*-commutative99.9%
Applied egg-rr99.9%
associate-/r*99.9%
clear-num99.9%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 88.8%
unpow-188.8%
+-commutative88.8%
unpow288.8%
unpow-188.8%
Simplified88.8%
Taylor expanded in y around inf 85.9%
associate-/l*85.9%
unpow285.9%
*-commutative85.9%
associate-*l*85.9%
Simplified85.9%
if 0.0539999999999999994 < x < 1.8999999999999999e154Initial program 100.0%
associate-*r/100.0%
clear-num100.0%
*-commutative100.0%
Applied egg-rr100.0%
inv-pow100.0%
add-sqr-sqrt82.4%
unpow-prod-down82.4%
associate-/r*82.4%
associate-/r*82.4%
Applied egg-rr82.4%
pow-sqr82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in y around 0 82.4%
+-commutative82.4%
rec-exp82.4%
unpow282.4%
rem-square-sqrt82.4%
cosh-def82.4%
Simplified82.4%
Final simplification85.4%
(FPCore (x y) :precision binary64 (if (<= x 9e-15) (/ (sin y) y) (* (cosh x) (+ 1.0 (* -0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (x <= 9e-15) {
tmp = sin(y) / y;
} else {
tmp = cosh(x) * (1.0 + (-0.16666666666666666 * (y * y)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 9d-15) then
tmp = sin(y) / y
else
tmp = cosh(x) * (1.0d0 + ((-0.16666666666666666d0) * (y * y)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 9e-15) {
tmp = Math.sin(y) / y;
} else {
tmp = Math.cosh(x) * (1.0 + (-0.16666666666666666 * (y * y)));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 9e-15: tmp = math.sin(y) / y else: tmp = math.cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))) return tmp
function code(x, y) tmp = 0.0 if (x <= 9e-15) tmp = Float64(sin(y) / y); else tmp = Float64(cosh(x) * Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 9e-15) tmp = sin(y) / y; else tmp = cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 9e-15], N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 9 \cdot 10^{-15}:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{else}:\\
\;\;\;\;\cosh x \cdot \left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if x < 8.9999999999999995e-15Initial program 99.9%
Taylor expanded in x around 0 66.4%
if 8.9999999999999995e-15 < x Initial program 100.0%
Taylor expanded in y around 0 78.1%
unpow278.1%
Simplified78.1%
Final simplification69.8%
(FPCore (x y) :precision binary64 (cosh x))
double code(double x, double y) {
return cosh(x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x)
end function
public static double code(double x, double y) {
return Math.cosh(x);
}
def code(x, y): return math.cosh(x)
function code(x, y) return cosh(x) end
function tmp = code(x, y) tmp = cosh(x); end
code[x_, y_] := N[Cosh[x], $MachinePrecision]
\begin{array}{l}
\\
\cosh x
\end{array}
Initial program 99.9%
associate-*r/99.9%
clear-num99.9%
*-commutative99.9%
Applied egg-rr99.9%
inv-pow99.9%
add-sqr-sqrt73.7%
unpow-prod-down73.7%
associate-/r*73.7%
associate-/r*73.7%
Applied egg-rr73.7%
pow-sqr73.7%
metadata-eval73.7%
Simplified73.7%
Taylor expanded in y around 0 61.6%
+-commutative61.6%
rec-exp61.6%
unpow261.6%
rem-square-sqrt62.1%
cosh-def62.1%
Simplified62.1%
Final simplification62.1%
(FPCore (x y) :precision binary64 (if (<= x 2.75e+157) (+ 1.0 (* y (* y -0.16666666666666666))) (+ 1.0 (* x (* x 0.5)))))
double code(double x, double y) {
double tmp;
if (x <= 2.75e+157) {
tmp = 1.0 + (y * (y * -0.16666666666666666));
} else {
tmp = 1.0 + (x * (x * 0.5));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 2.75d+157) then
tmp = 1.0d0 + (y * (y * (-0.16666666666666666d0)))
else
tmp = 1.0d0 + (x * (x * 0.5d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 2.75e+157) {
tmp = 1.0 + (y * (y * -0.16666666666666666));
} else {
tmp = 1.0 + (x * (x * 0.5));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 2.75e+157: tmp = 1.0 + (y * (y * -0.16666666666666666)) else: tmp = 1.0 + (x * (x * 0.5)) return tmp
function code(x, y) tmp = 0.0 if (x <= 2.75e+157) tmp = Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666))); else tmp = Float64(1.0 + Float64(x * Float64(x * 0.5))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 2.75e+157) tmp = 1.0 + (y * (y * -0.16666666666666666)); else tmp = 1.0 + (x * (x * 0.5)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 2.75e+157], N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(x * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.75 \cdot 10^{+157}:\\
\;\;\;\;1 + y \cdot \left(y \cdot -0.16666666666666666\right)\\
\mathbf{else}:\\
\;\;\;\;1 + x \cdot \left(x \cdot 0.5\right)\\
\end{array}
\end{array}
if x < 2.7500000000000001e157Initial program 99.9%
associate-*r/99.9%
clear-num99.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in x around 0 56.6%
Taylor expanded in y around 0 30.7%
*-commutative30.7%
unpow230.7%
Simplified30.7%
Taylor expanded in y around 0 30.7%
*-commutative30.7%
unpow230.7%
associate-*r*30.7%
Simplified30.7%
if 2.7500000000000001e157 < x Initial program 100.0%
associate-*r/100.0%
clear-num100.0%
*-commutative100.0%
Applied egg-rr100.0%
associate-/r*100.0%
clear-num100.0%
associate-/r/100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 100.0%
unpow-1100.0%
+-commutative100.0%
unpow2100.0%
unpow-1100.0%
Simplified100.0%
Taylor expanded in y around 0 68.4%
unpow268.4%
*-commutative68.4%
associate-*l*68.4%
Simplified68.4%
Final simplification36.3%
(FPCore (x y) :precision binary64 (+ 1.0 (* x (* x 0.5))))
double code(double x, double y) {
return 1.0 + (x * (x * 0.5));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + (x * (x * 0.5d0))
end function
public static double code(double x, double y) {
return 1.0 + (x * (x * 0.5));
}
def code(x, y): return 1.0 + (x * (x * 0.5))
function code(x, y) return Float64(1.0 + Float64(x * Float64(x * 0.5))) end
function tmp = code(x, y) tmp = 1.0 + (x * (x * 0.5)); end
code[x_, y_] := N[(1.0 + N[(x * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + x \cdot \left(x \cdot 0.5\right)
\end{array}
Initial program 99.9%
associate-*r/99.9%
clear-num99.9%
*-commutative99.9%
Applied egg-rr99.9%
associate-/r*99.9%
clear-num99.9%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 80.9%
unpow-180.9%
+-commutative80.9%
unpow280.9%
unpow-180.9%
Simplified80.9%
Taylor expanded in y around 0 42.7%
unpow242.7%
*-commutative42.7%
associate-*l*42.7%
Simplified42.7%
Final simplification42.7%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.9%
associate-*r/99.9%
clear-num99.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in x around 0 48.6%
Taylor expanded in y around 0 23.3%
Final simplification23.3%
(FPCore (x y) :precision binary64 (/ (* (cosh x) (sin y)) y))
double code(double x, double y) {
return (cosh(x) * sin(y)) / y;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (cosh(x) * sin(y)) / y
end function
public static double code(double x, double y) {
return (Math.cosh(x) * Math.sin(y)) / y;
}
def code(x, y): return (math.cosh(x) * math.sin(y)) / y
function code(x, y) return Float64(Float64(cosh(x) * sin(y)) / y) end
function tmp = code(x, y) tmp = (cosh(x) * sin(y)) / y; end
code[x_, y_] := N[(N[(N[Cosh[x], $MachinePrecision] * N[Sin[y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cosh x \cdot \sin y}{y}
\end{array}
herbie shell --seed 2023215
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:precision binary64
:herbie-target
(/ (* (cosh x) (sin y)) y)
(* (cosh x) (/ (sin y) y)))