\[\frac{\sin x \cdot \sinh y}{x}
\]
↓
\[\frac{\sinh y}{\frac{x}{\sin x}}
\]
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x))
↓
(FPCore (x y) :precision binary64 (/ (sinh y) (/ x (sin x))))
double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
↓
double code(double x, double y) {
return sinh(y) / (x / sin(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
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sinh(y) / (x / sin(x))
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.sinh(y) / (x / Math.sin(x));
}
def code(x, y):
return (math.sin(x) * math.sinh(y)) / x
↓
def code(x, y):
return math.sinh(y) / (x / math.sin(x))
function code(x, y)
return Float64(Float64(sin(x) * sinh(y)) / x)
end
↓
function code(x, y)
return Float64(sinh(y) / Float64(x / sin(x)))
end
function tmp = code(x, y)
tmp = (sin(x) * sinh(y)) / x;
end
↓
function tmp = code(x, y)
tmp = sinh(y) / (x / sin(x));
end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
↓
code[x_, y_] := N[(N[Sinh[y], $MachinePrecision] / N[(x / N[Sin[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{\sin x \cdot \sinh y}{x}
↓
\frac{\sinh y}{\frac{x}{\sin x}}
Alternatives
| Alternative 1 |
|---|
| Error | 0.19% |
|---|
| Cost | 13120 |
|---|
\[\sinh y \cdot \frac{\sin x}{x}
\]
| Alternative 2 |
|---|
| Error | 25.03% |
|---|
| Cost | 6729 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+43} \lor \neg \left(x \leq 820\right):\\
\;\;\;\;\left(y + 1\right) + -1\\
\mathbf{else}:\\
\;\;\;\;\sinh y\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 1.75% |
|---|
| Cost | 6720 |
|---|
\[\sin x \cdot \frac{y}{x}
\]
| Alternative 4 |
|---|
| Error | 1.66% |
|---|
| Cost | 6720 |
|---|
\[y \cdot \frac{\sin x}{x}
\]
| Alternative 5 |
|---|
| Error | 1.67% |
|---|
| Cost | 6720 |
|---|
\[\frac{y}{\frac{x}{\sin x}}
\]
| Alternative 6 |
|---|
| Error | 25.44% |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.16 \cdot 10^{+15} \lor \neg \left(x \leq 5.2 \cdot 10^{+24}\right):\\
\;\;\;\;\left(y + 1\right) + -1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(1 + -0.16666666666666666 \cdot \left(x \cdot x\right)\right)\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 25.68% |
|---|
| Cost | 841 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+44} \lor \neg \left(x \leq 820\right):\\
\;\;\;\;\left(y + 1\right) + -1\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{y} + y \cdot -0.16666666666666666}\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 25.79% |
|---|
| Cost | 585 |
|---|
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+43} \lor \neg \left(x \leq 820\right):\\
\;\;\;\;\left(y + 1\right) + -1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 47.86% |
|---|
| Cost | 64 |
|---|
\[y
\]