Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\sin x \cdot \frac{\sinh y}{y}
\]
↓
\[\sin x \cdot \frac{\sinh y}{y}
\]
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y))) ↓
(FPCore (x y) :precision binary64 (* (sin x) (/ (sinh y) y))) double code(double x, double y) {
return sin(x) * (sinh(y) / y);
}
↓
double code(double x, double y) {
return sin(x) * (sinh(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / y)
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(x) * (sinh(y) / y)
end function
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / y);
}
↓
public static double code(double x, double y) {
return Math.sin(x) * (Math.sinh(y) / y);
}
def code(x, y):
return math.sin(x) * (math.sinh(y) / y)
↓
def code(x, y):
return math.sin(x) * (math.sinh(y) / y)
function code(x, y)
return Float64(sin(x) * Float64(sinh(y) / y))
end
↓
function code(x, y)
return Float64(sin(x) * Float64(sinh(y) / y))
end
function tmp = code(x, y)
tmp = sin(x) * (sinh(y) / y);
end
↓
function tmp = code(x, y)
tmp = sin(x) * (sinh(y) / y);
end
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := N[(N[Sin[x], $MachinePrecision] * N[(N[Sinh[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\sin x \cdot \frac{\sinh y}{y}
↓
\sin x \cdot \frac{\sinh y}{y}
Alternatives Alternative 1 Accuracy 100.0% Cost 13120
\[\sin x \cdot \frac{\sinh y}{y}
\]
Alternative 2 Accuracy 88.9% Cost 7376
\[\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(y \cdot \left(\sin x \cdot y\right)\right)\\
t_1 := \frac{x \cdot \sinh y}{y}\\
\mathbf{if}\;y \leq -6.6 \cdot 10^{+188}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -0.00033:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 33.5:\\
\;\;\;\;\sin x\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+183}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 3 Accuracy 92.5% Cost 7376
\[\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(\sin x \cdot \left(y \cdot y\right)\right)\\
t_1 := \frac{x \cdot \sinh y}{y}\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+188}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -0.00038:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 33.5:\\
\;\;\;\;\sin x\\
\mathbf{elif}\;y \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 4 Accuracy 92.8% Cost 7376
\[\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(\sin x \cdot \left(y \cdot y\right)\right)\\
t_1 := \frac{x \cdot \sinh y}{y}\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+188}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -0.00043:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 33.5:\\
\;\;\;\;\sin x \cdot \left(1 + 0.16666666666666666 \cdot \left(y \cdot y\right)\right)\\
\mathbf{elif}\;y \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 5 Accuracy 83.7% Cost 7248
\[\begin{array}{l}
t_0 := 0.16666666666666666 \cdot \left(x \cdot \left(y \cdot y\right)\right)\\
t_1 := \sinh y \cdot \frac{x}{y}\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+176}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -0.00013:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 33.5:\\
\;\;\;\;\sin x\\
\mathbf{elif}\;y \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 6 Accuracy 86.8% Cost 6985
\[\begin{array}{l}
\mathbf{if}\;y \leq -0.00042 \lor \neg \left(y \leq 33.5\right):\\
\;\;\;\;\frac{x \cdot \sinh y}{y}\\
\mathbf{else}:\\
\;\;\;\;\sin x\\
\end{array}
\]
Alternative 7 Accuracy 71.4% Cost 6729
\[\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+37} \lor \neg \left(y \leq 2.5 \cdot 10^{+64}\right):\\
\;\;\;\;0.16666666666666666 \cdot \left(x \cdot \left(y \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\sin x\\
\end{array}
\]
Alternative 8 Accuracy 47.9% Cost 969
\[\begin{array}{l}
\mathbf{if}\;y \leq -28000 \lor \neg \left(y \leq 2400\right):\\
\;\;\;\;0.16666666666666666 \cdot \left(x \cdot \left(y \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{y}{x} + 0.16666666666666666 \cdot \left(x \cdot y\right)}\\
\end{array}
\]
Alternative 9 Accuracy 47.6% Cost 713
\[\begin{array}{l}
\mathbf{if}\;y \leq -7400 \lor \neg \left(y \leq 2.65 \cdot 10^{-6}\right):\\
\;\;\;\;0.16666666666666666 \cdot \left(x \cdot \left(y \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 10 Accuracy 32.6% Cost 585
\[\begin{array}{l}
\mathbf{if}\;x \leq -2 \cdot 10^{+43} \lor \neg \left(x \leq 5.8 \cdot 10^{+23}\right):\\
\;\;\;\;\frac{x \cdot y}{y}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 11 Accuracy 26.7% Cost 64
\[x
\]