Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x \cdot \frac{\sin y}{y}
\]
↓
\[\begin{array}{l}
t_0 := \sin y \cdot \frac{x}{y}\\
\mathbf{if}\;y \leq -0.012611501421154598:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 4.5842635993859354 \cdot 10^{-33}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
(FPCore (x y) :precision binary64 (* x (/ (sin y) y))) ↓
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (sin y) (/ x y))))
(if (<= y -0.012611501421154598)
t_0
(if (<= y 4.5842635993859354e-33) x t_0)))) double code(double x, double y) {
return x * (sin(y) / y);
}
↓
double code(double x, double y) {
double t_0 = sin(y) * (x / y);
double tmp;
if (y <= -0.012611501421154598) {
tmp = t_0;
} else if (y <= 4.5842635993859354e-33) {
tmp = x;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = x * (sin(y) / y)
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = sin(y) * (x / y)
if (y <= (-0.012611501421154598d0)) then
tmp = t_0
else if (y <= 4.5842635993859354d-33) then
tmp = x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
return x * (Math.sin(y) / y);
}
↓
public static double code(double x, double y) {
double t_0 = Math.sin(y) * (x / y);
double tmp;
if (y <= -0.012611501421154598) {
tmp = t_0;
} else if (y <= 4.5842635993859354e-33) {
tmp = x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y):
return x * (math.sin(y) / y)
↓
def code(x, y):
t_0 = math.sin(y) * (x / y)
tmp = 0
if y <= -0.012611501421154598:
tmp = t_0
elif y <= 4.5842635993859354e-33:
tmp = x
else:
tmp = t_0
return tmp
function code(x, y)
return Float64(x * Float64(sin(y) / y))
end
↓
function code(x, y)
t_0 = Float64(sin(y) * Float64(x / y))
tmp = 0.0
if (y <= -0.012611501421154598)
tmp = t_0;
elseif (y <= 4.5842635993859354e-33)
tmp = x;
else
tmp = t_0;
end
return tmp
end
function tmp = code(x, y)
tmp = x * (sin(y) / y);
end
↓
function tmp_2 = code(x, y)
t_0 = sin(y) * (x / y);
tmp = 0.0;
if (y <= -0.012611501421154598)
tmp = t_0;
elseif (y <= 4.5842635993859354e-33)
tmp = x;
else
tmp = t_0;
end
tmp_2 = tmp;
end
code[x_, y_] := N[(x * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := Block[{t$95$0 = N[(N[Sin[y], $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.012611501421154598], t$95$0, If[LessEqual[y, 4.5842635993859354e-33], x, t$95$0]]]
x \cdot \frac{\sin y}{y}
↓
\begin{array}{l}
t_0 := \sin y \cdot \frac{x}{y}\\
\mathbf{if}\;y \leq -0.012611501421154598:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 4.5842635993859354 \cdot 10^{-33}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
Alternatives Alternative 1 Error 0.3 Cost 6984
\[\begin{array}{l}
t_0 := \frac{x \cdot \sin y}{y}\\
\mathbf{if}\;y \leq -0.012611501421154598:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 7.76304409507475 \cdot 10^{-56}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 2 Error 0.1 Cost 6720
\[x \cdot \frac{\sin y}{y}
\]
Alternative 3 Error 0.1 Cost 6720
\[\frac{x}{\frac{y}{\sin y}}
\]
Alternative 4 Error 22.9 Cost 840
\[\begin{array}{l}
\mathbf{if}\;y \leq -24.812184995934174:\\
\;\;\;\;x \cdot \frac{6}{y \cdot y}\\
\mathbf{elif}\;y \leq 0.003935394346914117:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{0.16666666666666666 \cdot \left(y \cdot \frac{y}{x}\right)}\\
\end{array}
\]
Alternative 5 Error 22.9 Cost 712
\[\begin{array}{l}
t_0 := x \cdot \frac{6}{y \cdot y}\\
\mathbf{if}\;y \leq -24.812184995934174:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 0.003935394346914117:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 6 Error 22.8 Cost 704
\[\frac{x}{y \cdot \left(\frac{1}{y} + y \cdot 0.16666666666666666\right)}
\]
Alternative 7 Error 23.0 Cost 584
\[\begin{array}{l}
t_0 := \left(x + 1\right) + -1\\
\mathbf{if}\;y \leq -1.6750007543737113 \cdot 10^{+28}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 3.3684001821670084 \cdot 10^{+33}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
Alternative 8 Error 23.1 Cost 584
\[\begin{array}{l}
\mathbf{if}\;y \leq -0.012611501421154598:\\
\;\;\;\;\frac{y}{\frac{y}{x}}\\
\mathbf{elif}\;y \leq 3.3684001821670084 \cdot 10^{+33}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\left(x + 1\right) + -1\\
\end{array}
\]
Alternative 9 Error 30.1 Cost 64
\[x
\]