Math FPCore C Julia Wolfram TeX \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
\]
↓
\[\begin{array}{l}
t_1 := -4 \cdot \left(y \cdot z\right)\\
t_2 := \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;x \cdot x + \mathsf{fma}\left(z, t_1, \mathsf{fma}\left(z, t_1, z \cdot \left(y \cdot \left(4 \cdot z\right)\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 10^{+299}:\\
\;\;\;\;x \cdot x + \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot x + z \cdot t_1\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (- (* x x) (* (* y 4.0) (- (* z z) t)))) ↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* -4.0 (* y z))) (t_2 (* (* y 4.0) (- (* z z) t))))
(if (<= t_2 (- INFINITY))
(+ (* x x) (fma z t_1 (fma z t_1 (* z (* y (* 4.0 z))))))
(if (<= t_2 1e+299)
(+ (* x x) (* (* y 4.0) (- t (* z z))))
(+ (* x x) (* z t_1)))))) double code(double x, double y, double z, double t) {
return (x * x) - ((y * 4.0) * ((z * z) - t));
}
↓
double code(double x, double y, double z, double t) {
double t_1 = -4.0 * (y * z);
double t_2 = (y * 4.0) * ((z * z) - t);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (x * x) + fma(z, t_1, fma(z, t_1, (z * (y * (4.0 * z)))));
} else if (t_2 <= 1e+299) {
tmp = (x * x) + ((y * 4.0) * (t - (z * z)));
} else {
tmp = (x * x) + (z * t_1);
}
return tmp;
}
function code(x, y, z, t)
return Float64(Float64(x * x) - Float64(Float64(y * 4.0) * Float64(Float64(z * z) - t)))
end
↓
function code(x, y, z, t)
t_1 = Float64(-4.0 * Float64(y * z))
t_2 = Float64(Float64(y * 4.0) * Float64(Float64(z * z) - t))
tmp = 0.0
if (t_2 <= Float64(-Inf))
tmp = Float64(Float64(x * x) + fma(z, t_1, fma(z, t_1, Float64(z * Float64(y * Float64(4.0 * z))))));
elseif (t_2 <= 1e+299)
tmp = Float64(Float64(x * x) + Float64(Float64(y * 4.0) * Float64(t - Float64(z * z))));
else
tmp = Float64(Float64(x * x) + Float64(z * t_1));
end
return tmp
end
code[x_, y_, z_, t_] := N[(N[(x * x), $MachinePrecision] - N[(N[(y * 4.0), $MachinePrecision] * N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(-4.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * 4.0), $MachinePrecision] * N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(x * x), $MachinePrecision] + N[(z * t$95$1 + N[(z * t$95$1 + N[(z * N[(y * N[(4.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+299], N[(N[(x * x), $MachinePrecision] + N[(N[(y * 4.0), $MachinePrecision] * N[(t - N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * x), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
↓
\begin{array}{l}
t_1 := -4 \cdot \left(y \cdot z\right)\\
t_2 := \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;x \cdot x + \mathsf{fma}\left(z, t_1, \mathsf{fma}\left(z, t_1, z \cdot \left(y \cdot \left(4 \cdot z\right)\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 10^{+299}:\\
\;\;\;\;x \cdot x + \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot x + z \cdot t_1\\
\end{array}
Alternatives Alternative 1 Error 0.3 Cost 2120
\[\begin{array}{l}
t_1 := x \cdot x + z \cdot \left(-4 \cdot \left(y \cdot z\right)\right)\\
t_2 := \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 10^{+299}:\\
\;\;\;\;x \cdot x + \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 28.3 Cost 1636
\[\begin{array}{l}
t_1 := \left(y \cdot z\right) \cdot \left(z \cdot -4\right)\\
t_2 := \left(y \cdot 4\right) \cdot t\\
\mathbf{if}\;x \leq -1.2323444711302884 \cdot 10^{-14}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;x \leq -5.852853906865885 \cdot 10^{-161}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.9988574797288687 \cdot 10^{-229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.2647199548819823 \cdot 10^{-294}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.212765141254506 \cdot 10^{-270}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9.534519967280354 \cdot 10^{-199}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.828080932709091 \cdot 10^{-96}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2467757849298437:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 4.1956750723996366 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot x\\
\end{array}
\]
Alternative 3 Error 8.6 Cost 1616
\[\begin{array}{l}
t_1 := \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
t_2 := x \cdot x + \left(y \cdot 4\right) \cdot t\\
\mathbf{if}\;z \cdot z \leq 2 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \cdot z \leq 2 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \cdot z \leq 5 \cdot 10^{+69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \cdot z \leq 2 \cdot 10^{+290}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(z \cdot -4\right)\\
\end{array}
\]
Alternative 4 Error 11.2 Cost 1356
\[\begin{array}{l}
t_1 := \left(y \cdot z\right) \cdot \left(z \cdot -4\right)\\
t_2 := x \cdot x + \left(y \cdot 4\right) \cdot t\\
\mathbf{if}\;z \cdot z \leq 2 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \cdot z \leq 2 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \cdot z \leq 5 \cdot 10^{+118}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 6.4 Cost 968
\[\begin{array}{l}
t_1 := x \cdot x + z \cdot \left(-4 \cdot \left(y \cdot z\right)\right)\\
\mathbf{if}\;z \leq -1.1486979428564014 \cdot 10^{-62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.764795347216732 \cdot 10^{-15}:\\
\;\;\;\;x \cdot x + \left(y \cdot 4\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 26.1 Cost 584
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.2323444711302884 \cdot 10^{-14}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;x \leq 31366007443453564:\\
\;\;\;\;\left(y \cdot 4\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot x\\
\end{array}
\]
Alternative 7 Error 42.2 Cost 192
\[x \cdot x
\]