Math FPCore C Julia Wolfram TeX \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\]
↓
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+38}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right)\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+45}:\\
\;\;\;\;x + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{y}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x\right)\right) + \frac{y}{z} \cdot \frac{t + 457.9610022158428}{z}\\
\end{array}
\]
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771)))) ↓
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.7e+38)
(fma
-36.52704169880642
(/ y z)
(fma 3.13060547623 y (+ x (/ y (/ (* z z) (+ t 457.9610022158428))))))
(if (<= z 2.8e+45)
(+
x
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771)
y)))
(+
(fma -36.52704169880642 (/ y z) (fma 3.13060547623 y x))
(* (/ y z) (/ (+ t 457.9610022158428) z)))))) double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
↓
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.7e+38) {
tmp = fma(-36.52704169880642, (y / z), fma(3.13060547623, y, (x + (y / ((z * z) / (t + 457.9610022158428))))));
} else if (z <= 2.8e+45) {
tmp = x + (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / (fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) / y));
} else {
tmp = fma(-36.52704169880642, (y / z), fma(3.13060547623, y, x)) + ((y / z) * ((t + 457.9610022158428) / z));
}
return tmp;
}
function code(x, y, z, t, a, b)
return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)))
end
↓
function code(x, y, z, t, a, b)
tmp = 0.0
if (z <= -1.7e+38)
tmp = fma(-36.52704169880642, Float64(y / z), fma(3.13060547623, y, Float64(x + Float64(y / Float64(Float64(z * z) / Float64(t + 457.9610022158428))))));
elseif (z <= 2.8e+45)
tmp = Float64(x + Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / Float64(fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) / y)));
else
tmp = Float64(fma(-36.52704169880642, Float64(y / z), fma(3.13060547623, y, x)) + Float64(Float64(y / z) * Float64(Float64(t + 457.9610022158428) / z)));
end
return tmp
end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.7e+38], N[(-36.52704169880642 * N[(y / z), $MachinePrecision] + N[(3.13060547623 * y + N[(x + N[(y / N[(N[(z * z), $MachinePrecision] / N[(t + 457.9610022158428), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+45], N[(x + N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-36.52704169880642 * N[(y / z), $MachinePrecision] + N[(3.13060547623 * y + x), $MachinePrecision]), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
↓
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+38}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right)\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+45}:\\
\;\;\;\;x + \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{y}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x\right)\right) + \frac{y}{z} \cdot \frac{t + 457.9610022158428}{z}\\
\end{array}
Alternatives Alternative 1 Accuracy 98.4% Cost 16196
\[\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{t_1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x\right)\right) + \frac{y}{z} \cdot \frac{t + 457.9610022158428}{z}\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+299}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + \frac{z \cdot \left(\left(z \cdot z\right) \cdot 9.800690647801265 + -124.69639771500472\right)}{z \cdot 3.13060547623 + -11.1667541262}\right)\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(\left(3.13060547623 + \frac{457.9610022158428}{z \cdot z}\right) + \frac{t}{z \cdot z}\right) + \frac{-36.52704169880642}{z}, x\right)\\
\end{array}
\]
Alternative 2 Accuracy 97.5% Cost 14152
\[\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right)\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+45}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + \frac{z \cdot \left(\left(z \cdot z\right) \cdot 9.800690647801265 + -124.69639771500472\right)}{z \cdot 3.13060547623 + -11.1667541262}\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x\right)\right) + \frac{y}{z} \cdot \frac{t + 457.9610022158428}{z}\\
\end{array}
\]
Alternative 3 Accuracy 98.5% Cost 12233
\[\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{t_1}\\
\mathbf{if}\;t_2 \leq -\infty \lor \neg \left(t_2 \leq 5 \cdot 10^{+299}\right):\\
\;\;\;\;\mathsf{fma}\left(y, \left(\left(3.13060547623 + \frac{457.9610022158428}{z \cdot z}\right) + \frac{t}{z \cdot z}\right) + \frac{-36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + \frac{z \cdot \left(\left(z \cdot z\right) \cdot 9.800690647801265 + -124.69639771500472\right)}{z \cdot 3.13060547623 + -11.1667541262}\right)\right)\right)}{t_1}\\
\end{array}
\]
Alternative 4 Accuracy 96.5% Cost 11208
\[\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{t_1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+299}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + \frac{z \cdot \left(\left(z \cdot z\right) \cdot 9.800690647801265 + -124.69639771500472\right)}{z \cdot 3.13060547623 + -11.1667541262}\right)\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\]
Alternative 5 Accuracy 96.5% Cost 7497
\[\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
t_2 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{t_1}\\
\mathbf{if}\;t_2 \leq -\infty \lor \neg \left(t_2 \leq 5 \cdot 10^{+299}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + \frac{z \cdot \left(\left(z \cdot z\right) \cdot 9.800690647801265 + -124.69639771500472\right)}{z \cdot 3.13060547623 + -11.1667541262}\right)\right)\right)}{t_1}\\
\end{array}
\]
Alternative 6 Accuracy 96.5% Cost 6985
\[\begin{array}{l}
t_1 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 5 \cdot 10^{+299}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + t_1\\
\end{array}
\]
Alternative 7 Accuracy 94.7% Cost 2376
\[\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+18}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 105:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164 + \frac{-3.241970391368047}{z}}{z}}\\
\end{array}
\]
Alternative 8 Accuracy 94.0% Cost 1736
\[\begin{array}{l}
\mathbf{if}\;z \leq -122:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 105:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164 + \frac{-3.241970391368047}{z}}{z}}\\
\end{array}
\]
Alternative 9 Accuracy 91.3% Cost 1480
\[\begin{array}{l}
\mathbf{if}\;z \leq -420:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 4.7:\\
\;\;\;\;y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + b \cdot -32.324150453290734\right)\right) + \left(x + 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164 + \frac{-3.241970391368047}{z}}{z}}\\
\end{array}
\]
Alternative 10 Accuracy 91.3% Cost 1224
\[\begin{array}{l}
\mathbf{if}\;z \leq -150:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 21.5:\\
\;\;\;\;\left(x + 1.6453555072203998 \cdot \left(y \cdot b\right)\right) + 1.6453555072203998 \cdot \left(y \cdot \left(z \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164 + \frac{-3.241970391368047}{z}}{z}}\\
\end{array}
\]
Alternative 11 Accuracy 85.5% Cost 1096
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.00106:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-27}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164 + \frac{-3.241970391368047}{z}}{z}}\\
\end{array}
\]
Alternative 12 Accuracy 85.5% Cost 841
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.0009 \lor \neg \left(z \leq 3.5 \cdot 10^{-27}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\]
Alternative 13 Accuracy 55.2% Cost 720
\[\begin{array}{l}
\mathbf{if}\;y \leq -1.26 \cdot 10^{+66}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-11}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+74}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+153}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot 3.13060547623\\
\end{array}
\]
Alternative 14 Accuracy 85.5% Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.00115 \lor \neg \left(z \leq 3.5 \cdot 10^{-27}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\]
Alternative 15 Accuracy 85.5% Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.00115 \lor \neg \left(z \leq 3.5 \cdot 10^{-27}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\]
Alternative 16 Accuracy 85.5% Cost 713
\[\begin{array}{l}
\mathbf{if}\;z \leq -0.00115 \lor \neg \left(z \leq 3.5 \cdot 10^{-27}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\]
Alternative 17 Accuracy 71.7% Cost 585
\[\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{-161} \lor \neg \left(z \leq 3.8 \cdot 10^{-81}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 18 Accuracy 49.9% Cost 64
\[x
\]