Math FPCore C Julia Wolfram TeX \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
\]
↓
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+154}:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+62}:\\
\;\;\;\;\mathsf{fma}\left(x, x, \left(y \cdot -4\right) \cdot \left(z \cdot z - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot x - \frac{z}{\frac{\frac{1}{z \cdot y} \cdot -0.25}{-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
(if (<= z -1.35e+154)
(* z (* z (* y -4.0)))
(if (<= z 2.05e+62)
(fma x x (* (* y -4.0) (- (* z z) t)))
(- (* x x) (/ z (/ (* (/ 1.0 (* z y)) -0.25) -1.0)))))) 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 tmp;
if (z <= -1.35e+154) {
tmp = z * (z * (y * -4.0));
} else if (z <= 2.05e+62) {
tmp = fma(x, x, ((y * -4.0) * ((z * z) - t)));
} else {
tmp = (x * x) - (z / (((1.0 / (z * y)) * -0.25) / -1.0));
}
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)
tmp = 0.0
if (z <= -1.35e+154)
tmp = Float64(z * Float64(z * Float64(y * -4.0)));
elseif (z <= 2.05e+62)
tmp = fma(x, x, Float64(Float64(y * -4.0) * Float64(Float64(z * z) - t)));
else
tmp = Float64(Float64(x * x) - Float64(z / Float64(Float64(Float64(1.0 / Float64(z * y)) * -0.25) / -1.0)));
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_] := If[LessEqual[z, -1.35e+154], N[(z * N[(z * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+62], N[(x * x + N[(N[(y * -4.0), $MachinePrecision] * N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * x), $MachinePrecision] - N[(z / N[(N[(N[(1.0 / N[(z * y), $MachinePrecision]), $MachinePrecision] * -0.25), $MachinePrecision] / -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
↓
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+154}:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+62}:\\
\;\;\;\;\mathsf{fma}\left(x, x, \left(y \cdot -4\right) \cdot \left(z \cdot z - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot x - \frac{z}{\frac{\frac{1}{z \cdot y} \cdot -0.25}{-1}}\\
\end{array}
Alternatives Alternative 1 Error 0.4 Cost 2120
\[\begin{array}{l}
t_1 := z \cdot z - t\\
t_2 := t_1 \cdot \left(y \cdot 4\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(y \cdot -4\right) \cdot t_1 + x \cdot x\\
\mathbf{else}:\\
\;\;\;\;x \cdot x + z \cdot \frac{y \cdot -4}{\frac{1}{z}}\\
\end{array}
\]
Alternative 2 Error 6.7 Cost 1484
\[\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 5 \cdot 10^{-44}:\\
\;\;\;\;x \cdot x + t \cdot \left(y \cdot 4\right)\\
\mathbf{elif}\;z \cdot z \leq 2 \cdot 10^{+54}:\\
\;\;\;\;\left(y \cdot -4\right) \cdot \left(z \cdot z - t\right)\\
\mathbf{elif}\;z \cdot z \leq 4 \cdot 10^{+300}:\\
\;\;\;\;x \cdot x + \left(y \cdot -4\right) \cdot \left(z \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\end{array}
\]
Alternative 3 Error 1.0 Cost 1224
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+154}:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+62}:\\
\;\;\;\;\left(y \cdot -4\right) \cdot \left(z \cdot z - t\right) + x \cdot x\\
\mathbf{else}:\\
\;\;\;\;x \cdot x - \frac{z}{\frac{\frac{1}{z \cdot y} \cdot -0.25}{-1}}\\
\end{array}
\]
Alternative 4 Error 7.8 Cost 1096
\[\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 5 \cdot 10^{-44}:\\
\;\;\;\;x \cdot x + t \cdot \left(y \cdot 4\right)\\
\mathbf{elif}\;z \cdot z \leq 4 \cdot 10^{+300}:\\
\;\;\;\;\left(y \cdot -4\right) \cdot \left(z \cdot z - t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\end{array}
\]
Alternative 5 Error 0.8 Cost 1092
\[\begin{array}{l}
\mathbf{if}\;z \cdot z \leq 4 \cdot 10^{+300}:\\
\;\;\;\;\left(y \cdot -4\right) \cdot \left(z \cdot z - t\right) + x \cdot x\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\end{array}
\]
Alternative 6 Error 27.9 Cost 976
\[\begin{array}{l}
t_1 := t \cdot \left(y \cdot 4\right)\\
t_2 := z \cdot \left(z \cdot \left(y \cdot -4\right)\right)\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{-63}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.15 \cdot 10^{-173}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-234}:\\
\;\;\;\;x \cdot x\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 7 Error 15.6 Cost 841
\[\begin{array}{l}
\mathbf{if}\;x \leq -55000000000 \lor \neg \left(x \leq 2.4 \cdot 10^{-54}\right):\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot -4\right) \cdot \left(z \cdot z - t\right)\\
\end{array}
\]
Alternative 8 Error 25.3 Cost 585
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{-5} \lor \neg \left(x \leq 1.6 \cdot 10^{-66}\right):\\
\;\;\;\;x \cdot x\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot 4\right)\\
\end{array}
\]
Alternative 9 Error 41.1 Cost 192
\[x \cdot x
\]