Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[{x}^{4} - {y}^{4}
\]
↓
\[\begin{array}{l}
t_0 := x \cdot x + y \cdot y\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+162} \lor \neg \left(x \leq 5 \cdot 10^{+147}\right):\\
\;\;\;\;\left(x \cdot x\right) \cdot t_0\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(x \cdot x - y \cdot y\right)\\
\end{array}
\]
(FPCore (x y) :precision binary64 (- (pow x 4.0) (pow y 4.0))) ↓
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ (* x x) (* y y))))
(if (or (<= x -2.6e+162) (not (<= x 5e+147)))
(* (* x x) t_0)
(* t_0 (- (* x x) (* y y)))))) double code(double x, double y) {
return pow(x, 4.0) - pow(y, 4.0);
}
↓
double code(double x, double y) {
double t_0 = (x * x) + (y * y);
double tmp;
if ((x <= -2.6e+162) || !(x <= 5e+147)) {
tmp = (x * x) * t_0;
} else {
tmp = t_0 * ((x * x) - (y * y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x ** 4.0d0) - (y ** 4.0d0)
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 = (x * x) + (y * y)
if ((x <= (-2.6d+162)) .or. (.not. (x <= 5d+147))) then
tmp = (x * x) * t_0
else
tmp = t_0 * ((x * x) - (y * y))
end if
code = tmp
end function
public static double code(double x, double y) {
return Math.pow(x, 4.0) - Math.pow(y, 4.0);
}
↓
public static double code(double x, double y) {
double t_0 = (x * x) + (y * y);
double tmp;
if ((x <= -2.6e+162) || !(x <= 5e+147)) {
tmp = (x * x) * t_0;
} else {
tmp = t_0 * ((x * x) - (y * y));
}
return tmp;
}
def code(x, y):
return math.pow(x, 4.0) - math.pow(y, 4.0)
↓
def code(x, y):
t_0 = (x * x) + (y * y)
tmp = 0
if (x <= -2.6e+162) or not (x <= 5e+147):
tmp = (x * x) * t_0
else:
tmp = t_0 * ((x * x) - (y * y))
return tmp
function code(x, y)
return Float64((x ^ 4.0) - (y ^ 4.0))
end
↓
function code(x, y)
t_0 = Float64(Float64(x * x) + Float64(y * y))
tmp = 0.0
if ((x <= -2.6e+162) || !(x <= 5e+147))
tmp = Float64(Float64(x * x) * t_0);
else
tmp = Float64(t_0 * Float64(Float64(x * x) - Float64(y * y)));
end
return tmp
end
function tmp = code(x, y)
tmp = (x ^ 4.0) - (y ^ 4.0);
end
↓
function tmp_2 = code(x, y)
t_0 = (x * x) + (y * y);
tmp = 0.0;
if ((x <= -2.6e+162) || ~((x <= 5e+147)))
tmp = (x * x) * t_0;
else
tmp = t_0 * ((x * x) - (y * y));
end
tmp_2 = tmp;
end
code[x_, y_] := N[(N[Power[x, 4.0], $MachinePrecision] - N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := Block[{t$95$0 = N[(N[(x * x), $MachinePrecision] + N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -2.6e+162], N[Not[LessEqual[x, 5e+147]], $MachinePrecision]], N[(N[(x * x), $MachinePrecision] * t$95$0), $MachinePrecision], N[(t$95$0 * N[(N[(x * x), $MachinePrecision] - N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
{x}^{4} - {y}^{4}
↓
\begin{array}{l}
t_0 := x \cdot x + y \cdot y\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+162} \lor \neg \left(x \leq 5 \cdot 10^{+147}\right):\\
\;\;\;\;\left(x \cdot x\right) \cdot t_0\\
\mathbf{else}:\\
\;\;\;\;t_0 \cdot \left(x \cdot x - y \cdot y\right)\\
\end{array}