Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{\sin x \cdot \sinh y}{x}
\]
↓
\[\frac{\sin x}{x} \cdot \sinh y
\]
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x)) ↓
(FPCore (x y) :precision binary64 (* (/ (sin x) x) (sinh y))) double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
↓
double code(double x, double y) {
return (sin(x) / x) * sinh(y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(x) * sinh(y)) / x
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (sin(x) / x) * sinh(y)
end function
public static double code(double x, double y) {
return (Math.sin(x) * Math.sinh(y)) / x;
}
↓
public static double code(double x, double y) {
return (Math.sin(x) / x) * Math.sinh(y);
}
def code(x, y):
return (math.sin(x) * math.sinh(y)) / x
↓
def code(x, y):
return (math.sin(x) / x) * math.sinh(y)
function code(x, y)
return Float64(Float64(sin(x) * sinh(y)) / x)
end
↓
function code(x, y)
return Float64(Float64(sin(x) / x) * sinh(y))
end
function tmp = code(x, y)
tmp = (sin(x) * sinh(y)) / x;
end
↓
function tmp = code(x, y)
tmp = (sin(x) / x) * sinh(y);
end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
↓
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] / x), $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision]
\frac{\sin x \cdot \sinh y}{x}
↓
\frac{\sin x}{x} \cdot \sinh y
Alternatives Alternative 1 Accuracy 99.9% Cost 13120
\[\frac{\sin x}{x} \cdot \sinh y
\]
Alternative 2 Accuracy 85.4% Cost 20041
\[\begin{array}{l}
\mathbf{if}\;\sinh y \leq -\infty \lor \neg \left(\sinh y \leq 4 \cdot 10^{-36}\right):\\
\;\;\;\;\left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \sinh y\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{x}{\sin x}}\\
\end{array}
\]
Alternative 3 Accuracy 85.5% Cost 19784
\[\begin{array}{l}
\mathbf{if}\;\sinh y \leq -5 \cdot 10^{-37}:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;\sinh y \leq 4 \cdot 10^{-36}:\\
\;\;\;\;\sin x \cdot \frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
Alternative 4 Accuracy 86.5% Cost 19784
\[\begin{array}{l}
\mathbf{if}\;\sinh y \leq -\infty:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;\sinh y \leq 4 \cdot 10^{-36}:\\
\;\;\;\;\frac{\sin x}{x} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
Alternative 5 Accuracy 86.5% Cost 19784
\[\begin{array}{l}
\mathbf{if}\;\sinh y \leq -\infty:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;\sinh y \leq 4 \cdot 10^{-36}:\\
\;\;\;\;\frac{y}{\frac{x}{\sin x}}\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
Alternative 6 Accuracy 65.8% Cost 6992
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.95 \cdot 10^{+238}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{+181}:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;x \leq -1.95 \cdot 10^{+121}:\\
\;\;\;\;y + -0.16666666666666666 \cdot \left(x \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 1.42 \cdot 10^{+60}:\\
\;\;\;\;\sinh y\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\]
Alternative 7 Accuracy 40.2% Cost 840
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.9 \cdot 10^{+51}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{+27}:\\
\;\;\;\;y \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\]
Alternative 8 Accuracy 40.2% Cost 840
\[\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{+51}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+27}:\\
\;\;\;\;y + -0.16666666666666666 \cdot \left(x \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\]
Alternative 9 Accuracy 40.0% Cost 328
\[\begin{array}{l}
\mathbf{if}\;x \leq -3.45 \cdot 10^{+18}:\\
\;\;\;\;0\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+42}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\]
Alternative 10 Accuracy 2.7% Cost 64
\[-2
\]
Alternative 11 Accuracy 2.7% Cost 64
\[-0.5
\]
Alternative 12 Accuracy 15.5% Cost 64
\[0
\]