Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\cosh x \cdot \frac{\sin y}{y}
\]
↓
\[\frac{\sin y}{y} \cdot \cosh x
\]
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y))) ↓
(FPCore (x y) :precision binary64 (* (/ (sin y) y) (cosh x))) double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
↓
double code(double x, double y) {
return (sin(y) / y) * cosh(x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(y) / y) * cosh(x)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
↓
public static double code(double x, double y) {
return (Math.sin(y) / y) * Math.cosh(x);
}
def code(x, y):
return math.cosh(x) * (math.sin(y) / y)
↓
def code(x, y):
return (math.sin(y) / y) * math.cosh(x)
function code(x, y)
return Float64(cosh(x) * Float64(sin(y) / y))
end
↓
function code(x, y)
return Float64(Float64(sin(y) / y) * cosh(x))
end
function tmp = code(x, y)
tmp = cosh(x) * (sin(y) / y);
end
↓
function tmp = code(x, y)
tmp = (sin(y) / y) * cosh(x);
end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := N[(N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision] * N[Cosh[x], $MachinePrecision]), $MachinePrecision]
\cosh x \cdot \frac{\sin y}{y}
↓
\frac{\sin y}{y} \cdot \cosh x
Alternatives Alternative 1 Accuracy 99.9% Cost 13120
\[\frac{\sin y}{y} \cdot \cosh x
\]
Alternative 2 Accuracy 86.6% Cost 13124
\[\begin{array}{l}
\mathbf{if}\;\cosh x \leq 1.0000002:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{else}:\\
\;\;\;\;\cosh x\\
\end{array}
\]
Alternative 3 Accuracy 92.6% Cost 7636
\[\begin{array}{l}
t_0 := 0.5 \cdot \left(\sin y \cdot \frac{x \cdot x}{y}\right)\\
\mathbf{if}\;x \leq -2.05 \cdot 10^{+158}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{+101}:\\
\;\;\;\;\left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot \cosh x\\
\mathbf{elif}\;x \leq -0.0007:\\
\;\;\;\;\cosh x\\
\mathbf{elif}\;x \leq 0.00095:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+150}:\\
\;\;\;\;\cosh x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 4 Accuracy 92.7% Cost 7636
\[\begin{array}{l}
t_0 := 0.5 \cdot \left(\sin y \cdot \frac{x \cdot x}{y}\right)\\
\mathbf{if}\;x \leq -2.05 \cdot 10^{+158}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -1.08 \cdot 10^{+101}:\\
\;\;\;\;\left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot \cosh x\\
\mathbf{elif}\;x \leq -0.0007:\\
\;\;\;\;\cosh x\\
\mathbf{elif}\;x \leq 0.0026:\\
\;\;\;\;\frac{\sin y}{y} \cdot \left(1 + 0.5 \cdot \left(x \cdot x\right)\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+150}:\\
\;\;\;\;\cosh x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 5 Accuracy 92.3% Cost 7504
\[\begin{array}{l}
t_0 := 0.5 \cdot \left(\sin y \cdot \frac{x \cdot x}{y}\right)\\
\mathbf{if}\;x \leq -3.2 \cdot 10^{+147}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -0.0007:\\
\;\;\;\;\cosh x\\
\mathbf{elif}\;x \leq 0.0009:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+150}:\\
\;\;\;\;\cosh x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 6 Accuracy 63.2% Cost 6464
\[\cosh x
\]
Alternative 7 Accuracy 50.0% Cost 960
\[\left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right) \cdot \left(1 + 0.5 \cdot \left(x \cdot x\right)\right)
\]
Alternative 8 Accuracy 48.1% Cost 713
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.05 \cdot 10^{+158} \lor \neg \left(x \leq 1.7 \cdot 10^{+151}\right):\\
\;\;\;\;0.5 \cdot \left(x \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;1 + y \cdot \left(y \cdot -0.16666666666666666\right)\\
\end{array}
\]
Alternative 9 Accuracy 47.6% Cost 713
\[\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+73} \lor \neg \left(y \leq 3 \cdot 10^{+166}\right):\\
\;\;\;\;1 + y \cdot \left(y \cdot -0.16666666666666666\right)\\
\mathbf{else}:\\
\;\;\;\;1 + 0.5 \cdot \left(x \cdot x\right)\\
\end{array}
\]
Alternative 10 Accuracy 45.6% Cost 585
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.42 \lor \neg \left(x \leq 1.8\right):\\
\;\;\;\;0.5 \cdot \left(x \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\]
Alternative 11 Accuracy 26.8% Cost 64
\[1
\]