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 86.7% Cost 19784
\[\begin{array}{l}
\mathbf{if}\;\sinh y \leq -0.0004:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;\sinh y \leq 2 \cdot 10^{+14}:\\
\;\;\;\;\sin x \cdot \frac{y}{x}\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
Alternative 3 Accuracy 74.9% Cost 19528
\[\begin{array}{l}
\mathbf{if}\;\sinh y \leq -0.0004:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;\sinh y \leq 2 \cdot 10^{-9}:\\
\;\;\;\;\frac{1}{\frac{1}{y} + 0.16666666666666666 \cdot \left(x \cdot \frac{x}{y}\right)}\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
Alternative 4 Accuracy 99.8% Cost 13120
\[\sin x \cdot \frac{\sinh y}{x}
\]
Alternative 5 Accuracy 86.4% Cost 7373
\[\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+129}:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;y \leq -0.000115 \lor \neg \left(y \leq 33.5\right):\\
\;\;\;\;\sinh y \cdot \left(1 + \left(x \cdot x\right) \cdot -0.16666666666666666\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin x}{x} \cdot y\\
\end{array}
\]
Alternative 6 Accuracy 60.2% Cost 7252
\[\begin{array}{l}
t_0 := 6 \cdot \frac{y}{x \cdot x}\\
t_1 := \sqrt{y \cdot y}\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+205}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{+188}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -7400:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 260:\\
\;\;\;\;\frac{1}{\frac{1}{y} + 0.16666666666666666 \cdot \left(x \cdot \frac{x}{y}\right)}\\
\mathbf{elif}\;y \leq 1.34 \cdot 10^{+154}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Accuracy 86.7% Cost 6984
\[\begin{array}{l}
\mathbf{if}\;y \leq -0.00036:\\
\;\;\;\;\sinh y\\
\mathbf{elif}\;y \leq 33.5:\\
\;\;\;\;\frac{\sin x}{x} \cdot y\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
Alternative 8 Accuracy 42.1% Cost 1369
\[\begin{array}{l}
t_0 := 6 \cdot \frac{y}{x \cdot x}\\
t_1 := y \cdot \left(1 + \left(x \cdot x\right) \cdot -0.16666666666666666\right)\\
\mathbf{if}\;y \leq -7400:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -2.45 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -5.6 \cdot 10^{-289}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{-238}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq 3.75 \cdot 10^{-208} \lor \neg \left(y \leq 6.5 \cdot 10^{+65}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 9 Accuracy 42.1% Cost 1369
\[\begin{array}{l}
t_0 := 6 \cdot \frac{y}{x \cdot x}\\
\mathbf{if}\;y \leq -7800:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -5.7 \cdot 10^{-167}:\\
\;\;\;\;y \cdot \left(1 + \left(x \cdot x\right) \cdot -0.16666666666666666\right)\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-291}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-238}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-208} \lor \neg \left(y \leq 1.35 \cdot 10^{+69}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;y + \left(x \cdot x\right) \cdot \left(y \cdot -0.16666666666666666\right)\\
\end{array}
\]
Alternative 10 Accuracy 56.6% Cost 1097
\[\begin{array}{l}
\mathbf{if}\;y \leq -7400 \lor \neg \left(y \leq 270\right):\\
\;\;\;\;6 \cdot \frac{y}{x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{y} + 0.16666666666666666 \cdot \left(x \cdot \frac{x}{y}\right)}\\
\end{array}
\]
Alternative 11 Accuracy 43.9% Cost 978
\[\begin{array}{l}
\mathbf{if}\;y \leq -260 \lor \neg \left(y \leq -5.7 \cdot 10^{-167} \lor \neg \left(y \leq -1.12 \cdot 10^{-290}\right) \land y \leq 540000000\right):\\
\;\;\;\;6 \cdot \frac{y}{x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\]
Alternative 12 Accuracy 36.0% Cost 713
\[\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{+78} \lor \neg \left(x \leq 1.25 \cdot 10^{+23}\right):\\
\;\;\;\;-0.16666666666666666 \cdot \left(y \cdot \left(x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\]
Alternative 13 Accuracy 28.1% Cost 64
\[y
\]