
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(x) * sinh(y)) / x
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
def code(x, y): return (math.sin(x) * math.sinh(y)) / x
function code(x, y) return Float64(Float64(sin(x) * sinh(y)) / x) end
function tmp = code(x, y) tmp = (sin(x) * sinh(y)) / x; end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x \cdot \sinh y}{x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(x) * sinh(y)) / x
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
def code(x, y): return (math.sin(x) * math.sinh(y)) / x
function code(x, y) return Float64(Float64(sin(x) * sinh(y)) / x) end
function tmp = code(x, y) tmp = (sin(x) * sinh(y)) / x; end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin x \cdot \sinh y}{x}
\end{array}
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) x)))
double code(double x, double y) {
return sin(x) * (sinh(y) / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / x)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / x);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / x)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / x)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / x); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{x}
\end{array}
Initial program 89.3%
associate-/l*99.5%
Simplified99.5%
Final simplification99.5%
(FPCore (x y)
:precision binary64
(if (<= y 4600.0)
(* y (/ (sin x) x))
(if (<= y 1.9e+149)
(/ (* x (+ y (* -0.16666666666666666 (* y (pow x 2.0))))) x)
(* (sin x) (/ 1.0 (/ x y))))))
double code(double x, double y) {
double tmp;
if (y <= 4600.0) {
tmp = y * (sin(x) / x);
} else if (y <= 1.9e+149) {
tmp = (x * (y + (-0.16666666666666666 * (y * pow(x, 2.0))))) / x;
} else {
tmp = sin(x) * (1.0 / (x / y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 4600.0d0) then
tmp = y * (sin(x) / x)
else if (y <= 1.9d+149) then
tmp = (x * (y + ((-0.16666666666666666d0) * (y * (x ** 2.0d0))))) / x
else
tmp = sin(x) * (1.0d0 / (x / y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 4600.0) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 1.9e+149) {
tmp = (x * (y + (-0.16666666666666666 * (y * Math.pow(x, 2.0))))) / x;
} else {
tmp = Math.sin(x) * (1.0 / (x / y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 4600.0: tmp = y * (math.sin(x) / x) elif y <= 1.9e+149: tmp = (x * (y + (-0.16666666666666666 * (y * math.pow(x, 2.0))))) / x else: tmp = math.sin(x) * (1.0 / (x / y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 4600.0) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 1.9e+149) tmp = Float64(Float64(x * Float64(y + Float64(-0.16666666666666666 * Float64(y * (x ^ 2.0))))) / x); else tmp = Float64(sin(x) * Float64(1.0 / Float64(x / y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 4600.0) tmp = y * (sin(x) / x); elseif (y <= 1.9e+149) tmp = (x * (y + (-0.16666666666666666 * (y * (x ^ 2.0))))) / x; else tmp = sin(x) * (1.0 / (x / y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 4600.0], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+149], N[(N[(x * N[(y + N[(-0.16666666666666666 * N[(y * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(1.0 / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4600:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+149}:\\
\;\;\;\;\frac{x \cdot \left(y + -0.16666666666666666 \cdot \left(y \cdot {x}^{2}\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \frac{1}{\frac{x}{y}}\\
\end{array}
\end{array}
if y < 4600Initial program 85.6%
associate-/l*99.3%
Simplified99.3%
Taylor expanded in y around 0 53.9%
associate-/l*68.1%
Simplified68.1%
if 4600 < y < 1.9e149Initial program 100.0%
Taylor expanded in y around 0 3.1%
Taylor expanded in x around 0 26.1%
if 1.9e149 < y Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 5.2%
associate-/l*5.2%
Simplified5.2%
associate-*r/5.2%
*-commutative5.2%
associate-*r/37.4%
clear-num37.4%
un-div-inv34.4%
Applied egg-rr34.4%
frac-2neg34.4%
div-inv37.4%
distribute-neg-frac237.4%
Applied egg-rr37.4%
Final simplification58.9%
(FPCore (x y)
:precision binary64
(if (<= y 4600.0)
(* y (/ (sin x) x))
(if (<= y 3e+148)
(* y (+ (* -0.16666666666666666 (pow x 2.0)) 1.0))
(* (sin x) (/ y x)))))
double code(double x, double y) {
double tmp;
if (y <= 4600.0) {
tmp = y * (sin(x) / x);
} else if (y <= 3e+148) {
tmp = y * ((-0.16666666666666666 * pow(x, 2.0)) + 1.0);
} else {
tmp = sin(x) * (y / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 4600.0d0) then
tmp = y * (sin(x) / x)
else if (y <= 3d+148) then
tmp = y * (((-0.16666666666666666d0) * (x ** 2.0d0)) + 1.0d0)
else
tmp = sin(x) * (y / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 4600.0) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 3e+148) {
tmp = y * ((-0.16666666666666666 * Math.pow(x, 2.0)) + 1.0);
} else {
tmp = Math.sin(x) * (y / x);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 4600.0: tmp = y * (math.sin(x) / x) elif y <= 3e+148: tmp = y * ((-0.16666666666666666 * math.pow(x, 2.0)) + 1.0) else: tmp = math.sin(x) * (y / x) return tmp
function code(x, y) tmp = 0.0 if (y <= 4600.0) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 3e+148) tmp = Float64(y * Float64(Float64(-0.16666666666666666 * (x ^ 2.0)) + 1.0)); else tmp = Float64(sin(x) * Float64(y / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 4600.0) tmp = y * (sin(x) / x); elseif (y <= 3e+148) tmp = y * ((-0.16666666666666666 * (x ^ 2.0)) + 1.0); else tmp = sin(x) * (y / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 4600.0], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e+148], N[(y * N[(N[(-0.16666666666666666 * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4600:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 3 \cdot 10^{+148}:\\
\;\;\;\;y \cdot \left(-0.16666666666666666 \cdot {x}^{2} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \frac{y}{x}\\
\end{array}
\end{array}
if y < 4600Initial program 85.6%
associate-/l*99.3%
Simplified99.3%
Taylor expanded in y around 0 53.9%
associate-/l*68.1%
Simplified68.1%
if 4600 < y < 3.00000000000000015e148Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 3.1%
associate-/l*3.1%
Simplified3.1%
Taylor expanded in x around 0 20.5%
if 3.00000000000000015e148 < y Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 5.2%
*-commutative5.2%
associate-/l*37.4%
Simplified37.4%
Final simplification58.2%
(FPCore (x y)
:precision binary64
(if (<= y 4600.0)
(* y (/ (sin x) x))
(if (<= y 7e+147)
(* y (+ (* -0.16666666666666666 (pow x 2.0)) 1.0))
(* (sin x) (/ 1.0 (/ x y))))))
double code(double x, double y) {
double tmp;
if (y <= 4600.0) {
tmp = y * (sin(x) / x);
} else if (y <= 7e+147) {
tmp = y * ((-0.16666666666666666 * pow(x, 2.0)) + 1.0);
} else {
tmp = sin(x) * (1.0 / (x / y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 4600.0d0) then
tmp = y * (sin(x) / x)
else if (y <= 7d+147) then
tmp = y * (((-0.16666666666666666d0) * (x ** 2.0d0)) + 1.0d0)
else
tmp = sin(x) * (1.0d0 / (x / y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 4600.0) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 7e+147) {
tmp = y * ((-0.16666666666666666 * Math.pow(x, 2.0)) + 1.0);
} else {
tmp = Math.sin(x) * (1.0 / (x / y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 4600.0: tmp = y * (math.sin(x) / x) elif y <= 7e+147: tmp = y * ((-0.16666666666666666 * math.pow(x, 2.0)) + 1.0) else: tmp = math.sin(x) * (1.0 / (x / y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 4600.0) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 7e+147) tmp = Float64(y * Float64(Float64(-0.16666666666666666 * (x ^ 2.0)) + 1.0)); else tmp = Float64(sin(x) * Float64(1.0 / Float64(x / y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 4600.0) tmp = y * (sin(x) / x); elseif (y <= 7e+147) tmp = y * ((-0.16666666666666666 * (x ^ 2.0)) + 1.0); else tmp = sin(x) * (1.0 / (x / y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 4600.0], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+147], N[(y * N[(N[(-0.16666666666666666 * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(1.0 / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4600:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+147}:\\
\;\;\;\;y \cdot \left(-0.16666666666666666 \cdot {x}^{2} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \frac{1}{\frac{x}{y}}\\
\end{array}
\end{array}
if y < 4600Initial program 85.6%
associate-/l*99.3%
Simplified99.3%
Taylor expanded in y around 0 53.9%
associate-/l*68.1%
Simplified68.1%
if 4600 < y < 6.99999999999999949e147Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 3.1%
associate-/l*3.1%
Simplified3.1%
Taylor expanded in x around 0 20.5%
if 6.99999999999999949e147 < y Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 5.2%
associate-/l*5.2%
Simplified5.2%
associate-*r/5.2%
*-commutative5.2%
associate-*r/37.4%
clear-num37.4%
un-div-inv34.4%
Applied egg-rr34.4%
frac-2neg34.4%
div-inv37.4%
distribute-neg-frac237.4%
Applied egg-rr37.4%
Final simplification58.2%
(FPCore (x y)
:precision binary64
(if (<= y 120000.0)
(* y (/ (sin x) x))
(if (<= y 2.2e+149)
(* -0.16666666666666666 (* y (pow x 2.0)))
(* (sin x) (/ y x)))))
double code(double x, double y) {
double tmp;
if (y <= 120000.0) {
tmp = y * (sin(x) / x);
} else if (y <= 2.2e+149) {
tmp = -0.16666666666666666 * (y * pow(x, 2.0));
} else {
tmp = sin(x) * (y / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 120000.0d0) then
tmp = y * (sin(x) / x)
else if (y <= 2.2d+149) then
tmp = (-0.16666666666666666d0) * (y * (x ** 2.0d0))
else
tmp = sin(x) * (y / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 120000.0) {
tmp = y * (Math.sin(x) / x);
} else if (y <= 2.2e+149) {
tmp = -0.16666666666666666 * (y * Math.pow(x, 2.0));
} else {
tmp = Math.sin(x) * (y / x);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 120000.0: tmp = y * (math.sin(x) / x) elif y <= 2.2e+149: tmp = -0.16666666666666666 * (y * math.pow(x, 2.0)) else: tmp = math.sin(x) * (y / x) return tmp
function code(x, y) tmp = 0.0 if (y <= 120000.0) tmp = Float64(y * Float64(sin(x) / x)); elseif (y <= 2.2e+149) tmp = Float64(-0.16666666666666666 * Float64(y * (x ^ 2.0))); else tmp = Float64(sin(x) * Float64(y / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 120000.0) tmp = y * (sin(x) / x); elseif (y <= 2.2e+149) tmp = -0.16666666666666666 * (y * (x ^ 2.0)); else tmp = sin(x) * (y / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 120000.0], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+149], N[(-0.16666666666666666 * N[(y * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 120000:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+149}:\\
\;\;\;\;-0.16666666666666666 \cdot \left(y \cdot {x}^{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin x \cdot \frac{y}{x}\\
\end{array}
\end{array}
if y < 1.2e5Initial program 85.6%
associate-/l*99.3%
Simplified99.3%
Taylor expanded in y around 0 53.9%
associate-/l*68.1%
Simplified68.1%
if 1.2e5 < y < 2.2e149Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 3.1%
associate-/l*3.1%
Simplified3.1%
Taylor expanded in x around 0 20.5%
Taylor expanded in x around inf 19.5%
if 2.2e149 < y Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 5.2%
*-commutative5.2%
associate-/l*37.4%
Simplified37.4%
Final simplification58.0%
(FPCore (x y) :precision binary64 (if (<= x 1e-8) (* x (/ y x)) (* y (/ (sin x) x))))
double code(double x, double y) {
double tmp;
if (x <= 1e-8) {
tmp = x * (y / x);
} else {
tmp = y * (sin(x) / x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 1d-8) then
tmp = x * (y / x)
else
tmp = y * (sin(x) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1e-8) {
tmp = x * (y / x);
} else {
tmp = y * (Math.sin(x) / x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1e-8: tmp = x * (y / x) else: tmp = y * (math.sin(x) / x) return tmp
function code(x, y) tmp = 0.0 if (x <= 1e-8) tmp = Float64(x * Float64(y / x)); else tmp = Float64(y * Float64(sin(x) / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1e-8) tmp = x * (y / x); else tmp = y * (sin(x) / x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1e-8], N[(x * N[(y / x), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 10^{-8}:\\
\;\;\;\;x \cdot \frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{\sin x}{x}\\
\end{array}
\end{array}
if x < 1e-8Initial program 85.5%
Taylor expanded in y around 0 36.3%
Taylor expanded in x around 0 25.8%
associate-/l*54.5%
*-commutative54.5%
Applied egg-rr54.5%
if 1e-8 < x Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in y around 0 55.2%
associate-/l*55.3%
Simplified55.3%
Final simplification54.7%
(FPCore (x y) :precision binary64 (* (sin x) (/ y x)))
double code(double x, double y) {
return sin(x) * (y / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (y / x)
end function
public static double code(double x, double y) {
return Math.sin(x) * (y / x);
}
def code(x, y): return math.sin(x) * (y / x)
function code(x, y) return Float64(sin(x) * Float64(y / x)) end
function tmp = code(x, y) tmp = sin(x) * (y / x); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{y}{x}
\end{array}
Initial program 89.3%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in y around 0 41.2%
*-commutative41.2%
associate-/l*62.4%
Simplified62.4%
Final simplification62.4%
(FPCore (x y) :precision binary64 (* x (/ y x)))
double code(double x, double y) {
return x * (y / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * (y / x)
end function
public static double code(double x, double y) {
return x * (y / x);
}
def code(x, y): return x * (y / x)
function code(x, y) return Float64(x * Float64(y / x)) end
function tmp = code(x, y) tmp = x * (y / x); end
code[x_, y_] := N[(x * N[(y / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y}{x}
\end{array}
Initial program 89.3%
Taylor expanded in y around 0 41.2%
Taylor expanded in x around 0 22.4%
associate-/l*46.5%
*-commutative46.5%
Applied egg-rr46.5%
Final simplification46.5%
(FPCore (x y) :precision binary64 y)
double code(double x, double y) {
return y;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = y
end function
public static double code(double x, double y) {
return y;
}
def code(x, y): return y
function code(x, y) return y end
function tmp = code(x, y) tmp = y; end
code[x_, y_] := y
\begin{array}{l}
\\
y
\end{array}
Initial program 89.3%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in y around 0 41.2%
associate-/l*51.9%
Simplified51.9%
Taylor expanded in x around 0 27.5%
Final simplification27.5%
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) x)))
double code(double x, double y) {
return sin(x) * (sinh(y) / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / x)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / x);
}
def code(x, y): return math.sin(x) * (math.sinh(y) / x)
function code(x, y) return Float64(sin(x) * Float64(sinh(y) / x)) end
function tmp = code(x, y) tmp = sin(x) * (sinh(y) / x); end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sin x \cdot \frac{\sinh y}{x}
\end{array}
herbie shell --seed 2024095
(FPCore (x y)
:name "Linear.Quaternion:$ccosh from linear-1.19.1.3"
:precision binary64
:alt
(* (sin x) (/ (sinh y) x))
(/ (* (sin x) (sinh y)) x))