Math FPCore C Julia Wolfram TeX \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\]
↓
\[\begin{array}{l}
t_1 := y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+138}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t)))) ↓
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (* (/ (- a z) t) (- x y)))))
(if (<= t -6.2e+220)
t_1
(if (<= t 1.3e+138) (fma (- y x) (/ (- z t) (- a t)) x) t_1)))) double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
↓
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (((a - z) / t) * (x - y));
double tmp;
if (t <= -6.2e+220) {
tmp = t_1;
} else if (t <= 1.3e+138) {
tmp = fma((y - x), ((z - t) / (a - t)), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a)
return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t)))
end
↓
function code(x, y, z, t, a)
t_1 = Float64(y - Float64(Float64(Float64(a - z) / t) * Float64(x - y)))
tmp = 0.0
if (t <= -6.2e+220)
tmp = t_1;
elseif (t <= 1.3e+138)
tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x);
else
tmp = t_1;
end
return tmp
end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e+220], t$95$1, If[LessEqual[t, 1.3e+138], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
↓
\begin{array}{l}
t_1 := y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+138}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives Alternative 1 Error 6.6 Cost 4432
\[\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -5 \cdot 10^{-257}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+300}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 32.9 Cost 2160
\[\begin{array}{l}
t_1 := z \cdot \frac{y - x}{a - t}\\
t_2 := x - x \cdot \frac{z}{a}\\
t_3 := \left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -3.15 \cdot 10^{+121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{+32}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq -6.4 \cdot 10^{+24}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -1900000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3900:\\
\;\;\;\;\frac{a \cdot \left(-x\right)}{t}\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-8}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-36}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-75}:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{-189}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{-121}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 1600000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 3 Error 35.1 Cost 1504
\[\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := x - x \cdot \frac{z}{a}\\
t_3 := \frac{z - a}{\frac{t}{x}}\\
\mathbf{if}\;a \leq -8.5 \cdot 10^{+121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-34}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-77}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-140}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-188}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-103}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-7}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 720000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 4 Error 35.1 Cost 1504
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{a}\\
t_2 := \frac{z - a}{\frac{t}{x}}\\
\mathbf{if}\;a \leq -3.15 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{-34}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-140}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;a \leq -1.26 \cdot 10^{-189}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-103}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-7}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1100000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 34.9 Cost 1504
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{a}\\
t_2 := \frac{z - a}{\frac{t}{x}}\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{-33}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -5.6 \cdot 10^{-75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-140}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-190}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-104}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-7}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 420000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 6 Error 35.0 Cost 1504
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-35}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-76}:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-141}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;a \leq -1.45 \cdot 10^{-188}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-103}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-7}:\\
\;\;\;\;\frac{z - a}{\frac{t}{x}}\\
\mathbf{elif}\;a \leq 6000000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7 Error 35.0 Cost 1504
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.15 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.08 \cdot 10^{-35}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-76}:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-139}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{-188}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;a \leq 8.4 \cdot 10^{-103}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(\frac{z}{t} - \frac{a}{t}\right)\\
\mathbf{elif}\;a \leq 720000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 8 Error 26.5 Cost 1500
\[\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + \left(y - x\right) \cdot \frac{z}{a}\\
t_3 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+124}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-188}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-123}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-7}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 470000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 9 Error 10.0 Cost 1360
\[\begin{array}{l}
t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\
t_2 := y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{if}\;t \leq -6.4 \cdot 10^{+220}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-282}:\\
\;\;\;\;x + \left(y - x\right) \cdot \left(\left(z - t\right) \cdot \frac{1}{a}\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+135}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 10 Error 30.9 Cost 1236
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{a}\\
t_2 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-27}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-122}:\\
\;\;\;\;y \cdot \frac{t - z}{t}\\
\mathbf{elif}\;a \leq 880000000000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 11 Error 35.8 Cost 1108
\[\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;a \leq -3.9 \cdot 10^{+121}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-95}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-186}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 680000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 12 Error 28.2 Cost 1104
\[\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x - x \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+125}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-7}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 7000000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 13 Error 16.9 Cost 1096
\[\begin{array}{l}
\mathbf{if}\;t \leq -8.6 \cdot 10^{-23}:\\
\;\;\;\;y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+126}:\\
\;\;\;\;x + \left(y - x\right) \cdot \left(\left(z - t\right) \cdot \frac{1}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\end{array}
\]
Alternative 14 Error 8.3 Cost 1096
\[\begin{array}{l}
t_1 := y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.06 \cdot 10^{+136}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 15 Error 18.7 Cost 968
\[\begin{array}{l}
t_1 := y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{if}\;t \leq -7 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+122}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 16 Error 18.6 Cost 968
\[\begin{array}{l}
\mathbf{if}\;t \leq -8.6 \cdot 10^{-23}:\\
\;\;\;\;y - \frac{a - z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+122}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\end{array}
\]
Alternative 17 Error 38.8 Cost 848
\[\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{+121}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-101}:\\
\;\;\;\;z \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-137}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-188}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 12000000000000:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 18 Error 34.5 Cost 844
\[\begin{array}{l}
\mathbf{if}\;a \leq -3.15 \cdot 10^{+121}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-95}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 16000000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 19 Error 34.3 Cost 844
\[\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{+150}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-96}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 1950000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\]
Alternative 20 Error 32.7 Cost 844
\[\begin{array}{l}
t_1 := x - x \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.15 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7.1 \cdot 10^{-96}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 4500000000000:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 21 Error 19.3 Cost 840
\[\begin{array}{l}
t_1 := y - \frac{a - z}{\frac{t}{x}}\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{-23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.0013:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 22 Error 36.1 Cost 328
\[\begin{array}{l}
\mathbf{if}\;t \leq -7.4 \cdot 10^{+59}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+138}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\]
Alternative 23 Error 62.1 Cost 64
\[0
\]
Alternative 24 Error 45.5 Cost 64
\[x
\]