Math FPCore C Fortran Java Python Julia MATLAB Wolfram TeX \[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\]
↓
\[\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+116} \lor \neg \left(t \leq 2.85 \cdot 10^{+146}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\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
(if (or (<= t -5e+116) (not (<= t 2.85e+146)))
(+ y (/ (- x y) (/ t (- z a))))
(- x (/ (- x y) (/ (- a t) (- z t)))))) 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 tmp;
if ((t <= -5e+116) || !(t <= 2.85e+146)) {
tmp = y + ((x - y) / (t / (z - a)));
} else {
tmp = x - ((x - y) / ((a - t) / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
↓
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-5d+116)) .or. (.not. (t <= 2.85d+146))) then
tmp = y + ((x - y) / (t / (z - a)))
else
tmp = x - ((x - y) / ((a - t) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
↓
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -5e+116) || !(t <= 2.85e+146)) {
tmp = y + ((x - y) / (t / (z - a)));
} else {
tmp = x - ((x - y) / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a):
return x + (((y - x) * (z - t)) / (a - t))
↓
def code(x, y, z, t, a):
tmp = 0
if (t <= -5e+116) or not (t <= 2.85e+146):
tmp = y + ((x - y) / (t / (z - a)))
else:
tmp = x - ((x - y) / ((a - t) / (z - t)))
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)
tmp = 0.0
if ((t <= -5e+116) || !(t <= 2.85e+146))
tmp = Float64(y + Float64(Float64(x - y) / Float64(t / Float64(z - a))));
else
tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t))));
end
return tmp
end
function tmp = code(x, y, z, t, a)
tmp = x + (((y - x) * (z - t)) / (a - t));
end
↓
function tmp_2 = code(x, y, z, t, a)
tmp = 0.0;
if ((t <= -5e+116) || ~((t <= 2.85e+146)))
tmp = y + ((x - y) / (t / (z - a)));
else
tmp = x - ((x - y) / ((a - t) / (z - t)));
end
tmp_2 = 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_] := If[Or[LessEqual[t, -5e+116], N[Not[LessEqual[t, 2.85e+146]], $MachinePrecision]], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
↓
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+116} \lor \neg \left(t \leq 2.85 \cdot 10^{+146}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\end{array}
Alternatives Alternative 1 Error 6.6 Cost 5332
\[\begin{array}{l}
t_1 := x - \left(z - t\right) \cdot \frac{x - y}{a - t}\\
t_2 := x - \frac{\left(z - t\right) \cdot \left(x - y\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -1 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq -1 \cdot 10^{-290}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\mathbf{elif}\;t_2 \leq 10^{+306}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2 Error 30.6 Cost 1632
\[\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\
\;\;\;\;\frac{z - a}{\frac{t}{x}}\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-290}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.28 \cdot 10^{-280}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\
\mathbf{elif}\;t \leq 0.47:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3 Error 32.4 Cost 1504
\[\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-252}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-290}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.16 \cdot 10^{-280}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\
\mathbf{elif}\;t \leq 3.6:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 4 Error 32.3 Cost 1504
\[\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{+122}:\\
\;\;\;\;\frac{z - a}{\frac{t}{x}}\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-252}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-290}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\
\mathbf{elif}\;t \leq 1.75:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 5 Error 32.5 Cost 1504
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\
\;\;\;\;\frac{z - a}{\frac{t}{x}}\\
\mathbf{elif}\;t \leq -9.6 \cdot 10^{-17}:\\
\;\;\;\;\frac{-y}{\frac{a - t}{t}}\\
\mathbf{elif}\;t \leq -9.4 \cdot 10^{-253}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-290}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-280}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\
\mathbf{elif}\;t \leq 19:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 6 Error 21.8 Cost 1500
\[\begin{array}{l}
t_1 := y + z \cdot \frac{x - y}{t}\\
t_2 := x + z \cdot \frac{y - x}{a}\\
\mathbf{if}\;a \leq -1.6 \cdot 10^{+183}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{+134}:\\
\;\;\;\;x + \frac{y}{1 + \frac{z - a}{t}}\\
\mathbf{elif}\;a \leq -8.8 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-93}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-162}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{+44}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 7 Error 34.2 Cost 1372
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{-16}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-90}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-114}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-280}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 960000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\]
Alternative 8 Error 23.9 Cost 1369
\[\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\
\;\;\;\;\frac{z - a}{\frac{t}{x}}\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-47}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq -4.7 \cdot 10^{-110} \lor \neg \left(t \leq 6200\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\]
Alternative 9 Error 10.7 Cost 1361
\[\begin{array}{l}
t_1 := x - \left(z - t\right) \cdot \frac{x - y}{a - t}\\
\mathbf{if}\;a \leq -1.95 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.06 \cdot 10^{-44}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-99} \lor \neg \left(a \leq 1.15 \cdot 10^{-60}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\end{array}
\]
Alternative 10 Error 32.0 Cost 1240
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -8 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -9.4 \cdot 10^{-253}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-291}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-298}:\\
\;\;\;\;x - \frac{z}{\frac{a}{x}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 0.48:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 11 Error 32.2 Cost 1240
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-291}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\
\;\;\;\;\frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;t \leq 1160:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 12 Error 32.3 Cost 1240
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.02 \cdot 10^{-241}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -7.8 \cdot 10^{-291}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\
\;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\
\mathbf{elif}\;t \leq 4:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 13 Error 23.4 Cost 1237
\[\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+234}:\\
\;\;\;\;y - a \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq -3.6 \cdot 10^{-109} \lor \neg \left(t \leq 7100\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\]
Alternative 14 Error 21.8 Cost 1236
\[\begin{array}{l}
t_1 := y + z \cdot \frac{x - y}{t}\\
t_2 := x + z \cdot \frac{y - x}{a}\\
\mathbf{if}\;a \leq -5 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-93}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-174}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.45 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 15 Error 18.9 Cost 1234
\[\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{-17} \lor \neg \left(t \leq -4.5 \cdot 10^{-51}\right) \land \left(t \leq -3.8 \cdot 10^{-109} \lor \neg \left(t \leq 0.0235\right)\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\]
Alternative 16 Error 31.3 Cost 976
\[\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -7 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 1.1:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 17 Error 31.5 Cost 976
\[\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-298}:\\
\;\;\;\;x - \frac{z}{\frac{a}{x}}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-280}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 1020000:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 18 Error 18.3 Cost 969
\[\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{-19} \lor \neg \left(t \leq 0.0008\right):\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\]
Alternative 19 Error 35.9 Cost 328
\[\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+14}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 240000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\]
Alternative 20 Error 45.9 Cost 64
\[x
\]