
(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 10 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) 2.0) (/ (sin y) (+ y (* -0.5 (* y (* x x))))) (* (cosh x) (+ 1.0 (* -0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (cosh(x) <= 2.0) {
tmp = sin(y) / (y + (-0.5 * (y * (x * x))));
} 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 (cosh(x) <= 2.0d0) then
tmp = sin(y) / (y + ((-0.5d0) * (y * (x * x))))
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 (Math.cosh(x) <= 2.0) {
tmp = Math.sin(y) / (y + (-0.5 * (y * (x * x))));
} else {
tmp = Math.cosh(x) * (1.0 + (-0.16666666666666666 * (y * y)));
}
return tmp;
}
def code(x, y): tmp = 0 if math.cosh(x) <= 2.0: tmp = math.sin(y) / (y + (-0.5 * (y * (x * x)))) else: tmp = math.cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))) return tmp
function code(x, y) tmp = 0.0 if (cosh(x) <= 2.0) tmp = Float64(sin(y) / Float64(y + Float64(-0.5 * Float64(y * Float64(x * x))))); 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 (cosh(x) <= 2.0) tmp = sin(y) / (y + (-0.5 * (y * (x * x)))); else tmp = cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[Cosh[x], $MachinePrecision], 2.0], N[(N[Sin[y], $MachinePrecision] / N[(y + N[(-0.5 * N[(y * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}\;\cosh x \leq 2:\\
\;\;\;\;\frac{\sin y}{y + -0.5 \cdot \left(y \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\cosh x \cdot \left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\end{array}
\end{array}
if (cosh.f64 x) < 2Initial program 99.8%
*-commutative99.8%
associate-/r/99.8%
Simplified99.8%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
unpow299.7%
Simplified99.7%
if 2 < (cosh.f64 x) Initial program 100.0%
Taylor expanded in y around 0 74.8%
unpow274.8%
Simplified74.8%
Final simplification86.6%
(FPCore (x y) :precision binary64 (if (<= (cosh x) 1.05) (/ (sin y) y) (* (cosh x) (+ 1.0 (* -0.16666666666666666 (* y y))))))
double code(double x, double y) {
double tmp;
if (cosh(x) <= 1.05) {
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 (cosh(x) <= 1.05d0) 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 (Math.cosh(x) <= 1.05) {
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 math.cosh(x) <= 1.05: 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 (cosh(x) <= 1.05) 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 (cosh(x) <= 1.05) tmp = sin(y) / y; else tmp = cosh(x) * (1.0 + (-0.16666666666666666 * (y * y))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[Cosh[x], $MachinePrecision], 1.05], 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}\;\cosh x \leq 1.05:\\
\;\;\;\;\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 (cosh.f64 x) < 1.05000000000000004Initial program 99.8%
Taylor expanded in x around 0 99.1%
if 1.05000000000000004 < (cosh.f64 x) Initial program 100.0%
Taylor expanded in y around 0 74.8%
unpow274.8%
Simplified74.8%
Final simplification86.3%
(FPCore (x y) :precision binary64 (if (<= (cosh x) 1.05) (/ (sin y) y) (cosh x)))
double code(double x, double y) {
double tmp;
if (cosh(x) <= 1.05) {
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.05d0) 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.05) {
tmp = Math.sin(y) / y;
} else {
tmp = Math.cosh(x);
}
return tmp;
}
def code(x, y): tmp = 0 if math.cosh(x) <= 1.05: tmp = math.sin(y) / y else: tmp = math.cosh(x) return tmp
function code(x, y) tmp = 0.0 if (cosh(x) <= 1.05) 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.05) tmp = sin(y) / y; else tmp = cosh(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[Cosh[x], $MachinePrecision], 1.05], N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], N[Cosh[x], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\cosh x \leq 1.05:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{else}:\\
\;\;\;\;\cosh x\\
\end{array}
\end{array}
if (cosh.f64 x) < 1.05000000000000004Initial program 99.8%
Taylor expanded in x around 0 99.1%
if 1.05000000000000004 < (cosh.f64 x) Initial program 100.0%
Taylor expanded in y around 0 66.7%
Final simplification82.0%
(FPCore (x y) :precision binary64 (if (<= y 3.8e+153) (cosh x) (if (<= y 4.8e+214) (* -0.16666666666666666 (* y y)) (cosh x))))
double code(double x, double y) {
double tmp;
if (y <= 3.8e+153) {
tmp = cosh(x);
} else if (y <= 4.8e+214) {
tmp = -0.16666666666666666 * (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 (y <= 3.8d+153) then
tmp = cosh(x)
else if (y <= 4.8d+214) then
tmp = (-0.16666666666666666d0) * (y * y)
else
tmp = cosh(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 3.8e+153) {
tmp = Math.cosh(x);
} else if (y <= 4.8e+214) {
tmp = -0.16666666666666666 * (y * y);
} else {
tmp = Math.cosh(x);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 3.8e+153: tmp = math.cosh(x) elif y <= 4.8e+214: tmp = -0.16666666666666666 * (y * y) else: tmp = math.cosh(x) return tmp
function code(x, y) tmp = 0.0 if (y <= 3.8e+153) tmp = cosh(x); elseif (y <= 4.8e+214) tmp = Float64(-0.16666666666666666 * Float64(y * y)); else tmp = cosh(x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 3.8e+153) tmp = cosh(x); elseif (y <= 4.8e+214) tmp = -0.16666666666666666 * (y * y); else tmp = cosh(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 3.8e+153], N[Cosh[x], $MachinePrecision], If[LessEqual[y, 4.8e+214], N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision], N[Cosh[x], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.8 \cdot 10^{+153}:\\
\;\;\;\;\cosh x\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+214}:\\
\;\;\;\;-0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\cosh x\\
\end{array}
\end{array}
if y < 3.79999999999999966e153 or 4.8000000000000002e214 < y Initial program 99.9%
Taylor expanded in y around 0 60.5%
if 3.79999999999999966e153 < y < 4.8000000000000002e214Initial program 99.8%
Taylor expanded in y around 0 29.7%
unpow229.7%
Simplified29.7%
Taylor expanded in x around 0 29.7%
+-commutative29.7%
*-commutative29.7%
unpow229.7%
fma-udef29.7%
Simplified29.7%
Taylor expanded in y around inf 29.7%
*-commutative29.7%
unpow229.7%
associate-*r*29.7%
Simplified29.7%
Taylor expanded in y around 0 29.7%
unpow229.7%
Simplified29.7%
Final simplification58.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* y -0.16666666666666666))))
(if (<= y 1.55e+129)
(/ (+ (* t_0 t_0) -1.0) (+ t_0 -1.0))
(* -0.16666666666666666 (* y y)))))
double code(double x, double y) {
double t_0 = y * (y * -0.16666666666666666);
double tmp;
if (y <= 1.55e+129) {
tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
} else {
tmp = -0.16666666666666666 * (y * y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (y * (-0.16666666666666666d0))
if (y <= 1.55d+129) then
tmp = ((t_0 * t_0) + (-1.0d0)) / (t_0 + (-1.0d0))
else
tmp = (-0.16666666666666666d0) * (y * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (y * -0.16666666666666666);
double tmp;
if (y <= 1.55e+129) {
tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0);
} else {
tmp = -0.16666666666666666 * (y * y);
}
return tmp;
}
def code(x, y): t_0 = y * (y * -0.16666666666666666) tmp = 0 if y <= 1.55e+129: tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0) else: tmp = -0.16666666666666666 * (y * y) return tmp
function code(x, y) t_0 = Float64(y * Float64(y * -0.16666666666666666)) tmp = 0.0 if (y <= 1.55e+129) tmp = Float64(Float64(Float64(t_0 * t_0) + -1.0) / Float64(t_0 + -1.0)); else tmp = Float64(-0.16666666666666666 * Float64(y * y)); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (y * -0.16666666666666666); tmp = 0.0; if (y <= 1.55e+129) tmp = ((t_0 * t_0) + -1.0) / (t_0 + -1.0); else tmp = -0.16666666666666666 * (y * y); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1.55e+129], N[(N[(N[(t$95$0 * t$95$0), $MachinePrecision] + -1.0), $MachinePrecision] / N[(t$95$0 + -1.0), $MachinePrecision]), $MachinePrecision], N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(y \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq 1.55 \cdot 10^{+129}:\\
\;\;\;\;\frac{t_0 \cdot t_0 + -1}{t_0 + -1}\\
\mathbf{else}:\\
\;\;\;\;-0.16666666666666666 \cdot \left(y \cdot y\right)\\
\end{array}
\end{array}
if y < 1.55e129Initial program 99.9%
Taylor expanded in y around 0 70.1%
unpow270.1%
Simplified70.1%
Taylor expanded in x around 0 35.2%
+-commutative35.2%
*-commutative35.2%
unpow235.2%
fma-udef35.2%
Simplified35.2%
fma-udef35.2%
flip-+30.3%
associate-*l*30.3%
associate-*l*30.3%
metadata-eval30.3%
associate-*l*30.3%
Applied egg-rr30.3%
if 1.55e129 < y Initial program 99.8%
Taylor expanded in y around 0 15.9%
unpow215.9%
Simplified15.9%
Taylor expanded in x around 0 15.9%
+-commutative15.9%
*-commutative15.9%
unpow215.9%
fma-udef15.9%
Simplified15.9%
Taylor expanded in y around inf 15.9%
*-commutative15.9%
unpow215.9%
associate-*r*15.9%
Simplified15.9%
Taylor expanded in y around 0 15.9%
unpow215.9%
Simplified15.9%
Final simplification28.1%
(FPCore (x y) :precision binary64 (if (<= y 1.5e+17) 1.0 (* -0.16666666666666666 (* y y))))
double code(double x, double y) {
double tmp;
if (y <= 1.5e+17) {
tmp = 1.0;
} else {
tmp = -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 (y <= 1.5d+17) then
tmp = 1.0d0
else
tmp = (-0.16666666666666666d0) * (y * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.5e+17) {
tmp = 1.0;
} else {
tmp = -0.16666666666666666 * (y * y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.5e+17: tmp = 1.0 else: tmp = -0.16666666666666666 * (y * y) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.5e+17) tmp = 1.0; else tmp = Float64(-0.16666666666666666 * Float64(y * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.5e+17) tmp = 1.0; else tmp = -0.16666666666666666 * (y * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.5e+17], 1.0, N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.5 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;-0.16666666666666666 \cdot \left(y \cdot y\right)\\
\end{array}
\end{array}
if y < 1.5e17Initial program 99.9%
Taylor expanded in x around 0 46.1%
Taylor expanded in y around 0 30.7%
if 1.5e17 < y Initial program 99.7%
Taylor expanded in y around 0 19.9%
unpow219.9%
Simplified19.9%
Taylor expanded in x around 0 11.0%
+-commutative11.0%
*-commutative11.0%
unpow211.0%
fma-udef11.0%
Simplified11.0%
Taylor expanded in y around inf 11.0%
*-commutative11.0%
unpow211.0%
associate-*r*11.0%
Simplified11.0%
Taylor expanded in y around 0 11.0%
unpow211.0%
Simplified11.0%
Final simplification25.8%
(FPCore (x y) :precision binary64 (+ 1.0 (* -0.16666666666666666 (* y y))))
double code(double x, double y) {
return 1.0 + (-0.16666666666666666 * (y * y));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((-0.16666666666666666d0) * (y * y))
end function
public static double code(double x, double y) {
return 1.0 + (-0.16666666666666666 * (y * y));
}
def code(x, y): return 1.0 + (-0.16666666666666666 * (y * y))
function code(x, y) return Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y))) end
function tmp = code(x, y) tmp = 1.0 + (-0.16666666666666666 * (y * y)); end
code[x_, y_] := N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + -0.16666666666666666 \cdot \left(y \cdot y\right)
\end{array}
Initial program 99.9%
Taylor expanded in x around 0 48.2%
Taylor expanded in y around 0 32.2%
unpow261.6%
Simplified32.2%
Final simplification32.2%
(FPCore (x y) :precision binary64 (+ 1.0 (* y (* y -0.16666666666666666))))
double code(double x, double y) {
return 1.0 + (y * (y * -0.16666666666666666));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + (y * (y * (-0.16666666666666666d0)))
end function
public static double code(double x, double y) {
return 1.0 + (y * (y * -0.16666666666666666));
}
def code(x, y): return 1.0 + (y * (y * -0.16666666666666666))
function code(x, y) return Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666))) end
function tmp = code(x, y) tmp = 1.0 + (y * (y * -0.16666666666666666)); end
code[x_, y_] := N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + y \cdot \left(y \cdot -0.16666666666666666\right)
\end{array}
Initial program 99.9%
Taylor expanded in y around 0 61.6%
unpow261.6%
Simplified61.6%
Taylor expanded in x around 0 32.2%
+-commutative32.2%
*-commutative32.2%
unpow232.2%
fma-udef32.2%
Simplified32.2%
fma-udef32.2%
associate-*l*32.2%
Applied egg-rr32.2%
Final simplification32.2%
(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%
Taylor expanded in x around 0 48.2%
Taylor expanded in y around 0 23.8%
Final simplification23.8%
(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 2023293
(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)))