Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[\frac{\sin x \cdot \sinh y}{x}
\]
↓
\[\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{-78}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.36 \cdot 10^{-100}:\\
\;\;\;\;y + 0.16666666666666666 \cdot {y}^{3}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
(FPCore (x y) :precision binary64 (/ (* (sin x) (sinh y)) x)) ↓
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (* (sin x) (sinh y)) x)))
(if (<= x -2.5e-78)
t_0
(if (<= x 1.36e-100) (+ y (* 0.16666666666666666 (pow y 3.0))) t_0)))) double code(double x, double y) {
return (sin(x) * sinh(y)) / x;
}
↓
double code(double x, double y) {
double t_0 = (sin(x) * sinh(y)) / x;
double tmp;
if (x <= -2.5e-78) {
tmp = t_0;
} else if (x <= 1.36e-100) {
tmp = y + (0.16666666666666666 * pow(y, 3.0));
} else {
tmp = t_0;
}
return tmp;
}
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
real(8) :: t_0
real(8) :: tmp
t_0 = (sin(x) * sinh(y)) / x
if (x <= (-2.5d-78)) then
tmp = t_0
else if (x <= 1.36d-100) then
tmp = y + (0.16666666666666666d0 * (y ** 3.0d0))
else
tmp = t_0
end if
code = tmp
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) {
double t_0 = (Math.sin(x) * Math.sinh(y)) / x;
double tmp;
if (x <= -2.5e-78) {
tmp = t_0;
} else if (x <= 1.36e-100) {
tmp = y + (0.16666666666666666 * Math.pow(y, 3.0));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y):
return (math.sin(x) * math.sinh(y)) / x
↓
def code(x, y):
t_0 = (math.sin(x) * math.sinh(y)) / x
tmp = 0
if x <= -2.5e-78:
tmp = t_0
elif x <= 1.36e-100:
tmp = y + (0.16666666666666666 * math.pow(y, 3.0))
else:
tmp = t_0
return tmp
function code(x, y)
return Float64(Float64(sin(x) * sinh(y)) / x)
end
↓
function code(x, y)
t_0 = Float64(Float64(sin(x) * sinh(y)) / x)
tmp = 0.0
if (x <= -2.5e-78)
tmp = t_0;
elseif (x <= 1.36e-100)
tmp = Float64(y + Float64(0.16666666666666666 * (y ^ 3.0)));
else
tmp = t_0;
end
return tmp
end
function tmp = code(x, y)
tmp = (sin(x) * sinh(y)) / x;
end
↓
function tmp_2 = code(x, y)
t_0 = (sin(x) * sinh(y)) / x;
tmp = 0.0;
if (x <= -2.5e-78)
tmp = t_0;
elseif (x <= 1.36e-100)
tmp = y + (0.16666666666666666 * (y ^ 3.0));
else
tmp = t_0;
end
tmp_2 = tmp;
end
code[x_, y_] := N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]
↓
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[x], $MachinePrecision] * N[Sinh[y], $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[x, -2.5e-78], t$95$0, If[LessEqual[x, 1.36e-100], N[(y + N[(0.16666666666666666 * N[Power[y, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\frac{\sin x \cdot \sinh y}{x}
↓
\begin{array}{l}
t_0 := \frac{\sin x \cdot \sinh y}{x}\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{-78}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.36 \cdot 10^{-100}:\\
\;\;\;\;y + 0.16666666666666666 \cdot {y}^{3}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}