
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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 * ((z - t) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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 * ((z - t) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
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 / ((z - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
Initial program 98.4%
clear-num98.3%
un-div-inv98.8%
Applied egg-rr98.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y a))))
(if (<= z -8e-126)
(+ x y)
(if (<= z -4.4e-203)
t_1
(if (<= z -2.4e-228)
x
(if (<= z -2e-292)
(/ (* y t) a)
(if (<= z 4.5e-251) x (if (<= z 1.65e-111) t_1 (+ x y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / a);
double tmp;
if (z <= -8e-126) {
tmp = x + y;
} else if (z <= -4.4e-203) {
tmp = t_1;
} else if (z <= -2.4e-228) {
tmp = x;
} else if (z <= -2e-292) {
tmp = (y * t) / a;
} else if (z <= 4.5e-251) {
tmp = x;
} else if (z <= 1.65e-111) {
tmp = t_1;
} else {
tmp = x + y;
}
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
real(8) :: t_1
real(8) :: tmp
t_1 = t * (y / a)
if (z <= (-8d-126)) then
tmp = x + y
else if (z <= (-4.4d-203)) then
tmp = t_1
else if (z <= (-2.4d-228)) then
tmp = x
else if (z <= (-2d-292)) then
tmp = (y * t) / a
else if (z <= 4.5d-251) then
tmp = x
else if (z <= 1.65d-111) then
tmp = t_1
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / a);
double tmp;
if (z <= -8e-126) {
tmp = x + y;
} else if (z <= -4.4e-203) {
tmp = t_1;
} else if (z <= -2.4e-228) {
tmp = x;
} else if (z <= -2e-292) {
tmp = (y * t) / a;
} else if (z <= 4.5e-251) {
tmp = x;
} else if (z <= 1.65e-111) {
tmp = t_1;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / a) tmp = 0 if z <= -8e-126: tmp = x + y elif z <= -4.4e-203: tmp = t_1 elif z <= -2.4e-228: tmp = x elif z <= -2e-292: tmp = (y * t) / a elif z <= 4.5e-251: tmp = x elif z <= 1.65e-111: tmp = t_1 else: tmp = x + y return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / a)) tmp = 0.0 if (z <= -8e-126) tmp = Float64(x + y); elseif (z <= -4.4e-203) tmp = t_1; elseif (z <= -2.4e-228) tmp = x; elseif (z <= -2e-292) tmp = Float64(Float64(y * t) / a); elseif (z <= 4.5e-251) tmp = x; elseif (z <= 1.65e-111) tmp = t_1; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / a); tmp = 0.0; if (z <= -8e-126) tmp = x + y; elseif (z <= -4.4e-203) tmp = t_1; elseif (z <= -2.4e-228) tmp = x; elseif (z <= -2e-292) tmp = (y * t) / a; elseif (z <= 4.5e-251) tmp = x; elseif (z <= 1.65e-111) tmp = t_1; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e-126], N[(x + y), $MachinePrecision], If[LessEqual[z, -4.4e-203], t$95$1, If[LessEqual[z, -2.4e-228], x, If[LessEqual[z, -2e-292], N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 4.5e-251], x, If[LessEqual[z, 1.65e-111], t$95$1, N[(x + y), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a}\\
\mathbf{if}\;z \leq -8 \cdot 10^{-126}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{-203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.4 \cdot 10^{-228}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-292}:\\
\;\;\;\;\frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-251}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -7.9999999999999996e-126 or 1.65e-111 < z Initial program 99.4%
Taylor expanded in z around inf 68.9%
if -7.9999999999999996e-126 < z < -4.3999999999999999e-203 or 4.49999999999999978e-251 < z < 1.65e-111Initial program 96.8%
Taylor expanded in z around 0 63.7%
Taylor expanded in x around 0 48.4%
associate-/l*72.4%
*-commutative72.4%
Applied egg-rr56.3%
if -4.3999999999999999e-203 < z < -2.40000000000000002e-228 or -2.0000000000000001e-292 < z < 4.49999999999999978e-251Initial program 95.6%
Taylor expanded in z around 0 87.2%
Taylor expanded in x around inf 70.4%
if -2.40000000000000002e-228 < z < -2.0000000000000001e-292Initial program 89.3%
Taylor expanded in z around 0 89.1%
Taylor expanded in x around 0 67.3%
Final simplification67.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.4e+150)
(+ x y)
(if (<= z -7.2e-22)
(- x (* t (/ y z)))
(if (<= z 2.1e-17) (+ x (* t (/ y a))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.4e+150) {
tmp = x + y;
} else if (z <= -7.2e-22) {
tmp = x - (t * (y / z));
} else if (z <= 2.1e-17) {
tmp = x + (t * (y / a));
} else {
tmp = x + y;
}
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
real(8) :: tmp
if (z <= (-1.4d+150)) then
tmp = x + y
else if (z <= (-7.2d-22)) then
tmp = x - (t * (y / z))
else if (z <= 2.1d-17) then
tmp = x + (t * (y / a))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.4e+150) {
tmp = x + y;
} else if (z <= -7.2e-22) {
tmp = x - (t * (y / z));
} else if (z <= 2.1e-17) {
tmp = x + (t * (y / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.4e+150: tmp = x + y elif z <= -7.2e-22: tmp = x - (t * (y / z)) elif z <= 2.1e-17: tmp = x + (t * (y / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.4e+150) tmp = Float64(x + y); elseif (z <= -7.2e-22) tmp = Float64(x - Float64(t * Float64(y / z))); elseif (z <= 2.1e-17) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.4e+150) tmp = x + y; elseif (z <= -7.2e-22) tmp = x - (t * (y / z)); elseif (z <= 2.1e-17) tmp = x + (t * (y / a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.4e+150], N[(x + y), $MachinePrecision], If[LessEqual[z, -7.2e-22], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-17], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+150}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-22}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-17}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.40000000000000005e150 or 2.09999999999999992e-17 < z Initial program 99.9%
Taylor expanded in z around inf 78.8%
if -1.40000000000000005e150 < z < -7.1999999999999996e-22Initial program 99.9%
Taylor expanded in a around 0 84.9%
Taylor expanded in z around 0 80.1%
neg-mul-180.1%
distribute-neg-frac280.1%
Simplified80.1%
*-commutative80.1%
add-sqr-sqrt79.9%
sqrt-unprod80.1%
sqr-neg80.1%
sqrt-unprod0.0%
add-sqr-sqrt56.8%
cancel-sign-sub56.8%
distribute-frac-neg256.8%
*-commutative56.8%
add-sqr-sqrt56.8%
sqrt-unprod56.8%
sqr-neg56.8%
sqrt-unprod0.0%
add-sqr-sqrt80.1%
Applied egg-rr80.1%
add-sqr-sqrt44.7%
sqrt-unprod68.7%
sqr-neg68.7%
sqrt-unprod28.2%
add-sqr-sqrt56.8%
associate-*r/56.8%
associate-*l/56.8%
add-sqr-sqrt28.2%
sqrt-unprod68.8%
sqr-neg68.8%
sqrt-unprod44.7%
add-sqr-sqrt80.2%
Applied egg-rr80.2%
if -7.1999999999999996e-22 < z < 2.09999999999999992e-17Initial program 96.1%
Taylor expanded in z around 0 71.4%
associate-/l*75.0%
*-commutative75.0%
Applied egg-rr75.0%
Final simplification77.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.2e+151)
(+ x y)
(if (<= z -2.3e-20)
(- x (* y (/ t z)))
(if (<= z 8.2e-16) (+ x (* t (/ y a))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e+151) {
tmp = x + y;
} else if (z <= -2.3e-20) {
tmp = x - (y * (t / z));
} else if (z <= 8.2e-16) {
tmp = x + (t * (y / a));
} else {
tmp = x + y;
}
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
real(8) :: tmp
if (z <= (-1.2d+151)) then
tmp = x + y
else if (z <= (-2.3d-20)) then
tmp = x - (y * (t / z))
else if (z <= 8.2d-16) then
tmp = x + (t * (y / a))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.2e+151) {
tmp = x + y;
} else if (z <= -2.3e-20) {
tmp = x - (y * (t / z));
} else if (z <= 8.2e-16) {
tmp = x + (t * (y / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.2e+151: tmp = x + y elif z <= -2.3e-20: tmp = x - (y * (t / z)) elif z <= 8.2e-16: tmp = x + (t * (y / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.2e+151) tmp = Float64(x + y); elseif (z <= -2.3e-20) tmp = Float64(x - Float64(y * Float64(t / z))); elseif (z <= 8.2e-16) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.2e+151) tmp = x + y; elseif (z <= -2.3e-20) tmp = x - (y * (t / z)); elseif (z <= 8.2e-16) tmp = x + (t * (y / a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.2e+151], N[(x + y), $MachinePrecision], If[LessEqual[z, -2.3e-20], N[(x - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e-16], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+151}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-20}:\\
\;\;\;\;x - y \cdot \frac{t}{z}\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-16}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.20000000000000005e151 or 8.20000000000000012e-16 < z Initial program 99.9%
Taylor expanded in z around inf 78.8%
if -1.20000000000000005e151 < z < -2.2999999999999999e-20Initial program 99.9%
Taylor expanded in a around 0 84.9%
Taylor expanded in z around 0 80.1%
neg-mul-180.1%
distribute-neg-frac280.1%
Simplified80.1%
*-commutative80.1%
add-sqr-sqrt79.9%
sqrt-unprod80.1%
sqr-neg80.1%
sqrt-unprod0.0%
add-sqr-sqrt56.8%
cancel-sign-sub56.8%
distribute-frac-neg256.8%
*-commutative56.8%
add-sqr-sqrt56.8%
sqrt-unprod56.8%
sqr-neg56.8%
sqrt-unprod0.0%
add-sqr-sqrt80.1%
Applied egg-rr80.1%
if -2.2999999999999999e-20 < z < 8.20000000000000012e-16Initial program 96.1%
Taylor expanded in z around 0 71.4%
associate-/l*75.0%
*-commutative75.0%
Applied egg-rr75.0%
Final simplification77.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.4e+65)
(+ x y)
(if (<= t -6e-10)
(* y (* t (/ 1.0 a)))
(if (<= t 3.5e+243) (+ x y) (* y (/ t (- z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.4e+65) {
tmp = x + y;
} else if (t <= -6e-10) {
tmp = y * (t * (1.0 / a));
} else if (t <= 3.5e+243) {
tmp = x + y;
} else {
tmp = y * (t / -z);
}
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
real(8) :: tmp
if (t <= (-3.4d+65)) then
tmp = x + y
else if (t <= (-6d-10)) then
tmp = y * (t * (1.0d0 / a))
else if (t <= 3.5d+243) then
tmp = x + y
else
tmp = y * (t / -z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.4e+65) {
tmp = x + y;
} else if (t <= -6e-10) {
tmp = y * (t * (1.0 / a));
} else if (t <= 3.5e+243) {
tmp = x + y;
} else {
tmp = y * (t / -z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.4e+65: tmp = x + y elif t <= -6e-10: tmp = y * (t * (1.0 / a)) elif t <= 3.5e+243: tmp = x + y else: tmp = y * (t / -z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.4e+65) tmp = Float64(x + y); elseif (t <= -6e-10) tmp = Float64(y * Float64(t * Float64(1.0 / a))); elseif (t <= 3.5e+243) tmp = Float64(x + y); else tmp = Float64(y * Float64(t / Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.4e+65) tmp = x + y; elseif (t <= -6e-10) tmp = y * (t * (1.0 / a)); elseif (t <= 3.5e+243) tmp = x + y; else tmp = y * (t / -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.4e+65], N[(x + y), $MachinePrecision], If[LessEqual[t, -6e-10], N[(y * N[(t * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+243], N[(x + y), $MachinePrecision], N[(y * N[(t / (-z)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+65}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-10}:\\
\;\;\;\;y \cdot \left(t \cdot \frac{1}{a}\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+243}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t}{-z}\\
\end{array}
\end{array}
if t < -3.3999999999999999e65 or -6e-10 < t < 3.49999999999999988e243Initial program 99.0%
Taylor expanded in z around inf 63.7%
if -3.3999999999999999e65 < t < -6e-10Initial program 99.7%
Taylor expanded in z around 0 67.4%
Taylor expanded in x around 0 67.3%
div-inv67.3%
*-commutative67.3%
associate-*l*67.4%
Applied egg-rr67.4%
if 3.49999999999999988e243 < t Initial program 88.9%
Taylor expanded in a around 0 78.5%
Taylor expanded in z around 0 78.5%
neg-mul-178.5%
distribute-neg-frac278.5%
Simplified78.5%
*-commutative78.5%
add-sqr-sqrt39.3%
sqrt-unprod34.8%
sqr-neg34.8%
sqrt-unprod5.9%
add-sqr-sqrt11.8%
cancel-sign-sub11.8%
distribute-frac-neg211.8%
*-commutative11.8%
add-sqr-sqrt5.9%
sqrt-unprod40.1%
sqr-neg40.1%
sqrt-unprod39.1%
add-sqr-sqrt78.5%
Applied egg-rr78.5%
Taylor expanded in x around 0 59.2%
mul-1-neg59.2%
associate-*l/73.0%
distribute-rgt-neg-in73.0%
Simplified73.0%
Final simplification64.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.4e+65)
(+ x y)
(if (<= t -6e-10)
(/ (* y t) a)
(if (<= t 3.5e+243) (+ x y) (* y (/ t (- z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.4e+65) {
tmp = x + y;
} else if (t <= -6e-10) {
tmp = (y * t) / a;
} else if (t <= 3.5e+243) {
tmp = x + y;
} else {
tmp = y * (t / -z);
}
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
real(8) :: tmp
if (t <= (-3.4d+65)) then
tmp = x + y
else if (t <= (-6d-10)) then
tmp = (y * t) / a
else if (t <= 3.5d+243) then
tmp = x + y
else
tmp = y * (t / -z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.4e+65) {
tmp = x + y;
} else if (t <= -6e-10) {
tmp = (y * t) / a;
} else if (t <= 3.5e+243) {
tmp = x + y;
} else {
tmp = y * (t / -z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.4e+65: tmp = x + y elif t <= -6e-10: tmp = (y * t) / a elif t <= 3.5e+243: tmp = x + y else: tmp = y * (t / -z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.4e+65) tmp = Float64(x + y); elseif (t <= -6e-10) tmp = Float64(Float64(y * t) / a); elseif (t <= 3.5e+243) tmp = Float64(x + y); else tmp = Float64(y * Float64(t / Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.4e+65) tmp = x + y; elseif (t <= -6e-10) tmp = (y * t) / a; elseif (t <= 3.5e+243) tmp = x + y; else tmp = y * (t / -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.4e+65], N[(x + y), $MachinePrecision], If[LessEqual[t, -6e-10], N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 3.5e+243], N[(x + y), $MachinePrecision], N[(y * N[(t / (-z)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+65}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-10}:\\
\;\;\;\;\frac{y \cdot t}{a}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+243}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t}{-z}\\
\end{array}
\end{array}
if t < -3.3999999999999999e65 or -6e-10 < t < 3.49999999999999988e243Initial program 99.0%
Taylor expanded in z around inf 63.7%
if -3.3999999999999999e65 < t < -6e-10Initial program 99.7%
Taylor expanded in z around 0 67.4%
Taylor expanded in x around 0 67.3%
if 3.49999999999999988e243 < t Initial program 88.9%
Taylor expanded in a around 0 78.5%
Taylor expanded in z around 0 78.5%
neg-mul-178.5%
distribute-neg-frac278.5%
Simplified78.5%
*-commutative78.5%
add-sqr-sqrt39.3%
sqrt-unprod34.8%
sqr-neg34.8%
sqrt-unprod5.9%
add-sqr-sqrt11.8%
cancel-sign-sub11.8%
distribute-frac-neg211.8%
*-commutative11.8%
add-sqr-sqrt5.9%
sqrt-unprod40.1%
sqr-neg40.1%
sqrt-unprod39.1%
add-sqr-sqrt78.5%
Applied egg-rr78.5%
Taylor expanded in x around 0 59.2%
mul-1-neg59.2%
associate-*l/73.0%
distribute-rgt-neg-in73.0%
Simplified73.0%
Final simplification64.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.9e-45) (+ x y) (if (<= z 4.2e-251) x (if (<= z 1.7e-111) (* t (/ y a)) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e-45) {
tmp = x + y;
} else if (z <= 4.2e-251) {
tmp = x;
} else if (z <= 1.7e-111) {
tmp = t * (y / a);
} else {
tmp = x + y;
}
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
real(8) :: tmp
if (z <= (-1.9d-45)) then
tmp = x + y
else if (z <= 4.2d-251) then
tmp = x
else if (z <= 1.7d-111) then
tmp = t * (y / a)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e-45) {
tmp = x + y;
} else if (z <= 4.2e-251) {
tmp = x;
} else if (z <= 1.7e-111) {
tmp = t * (y / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.9e-45: tmp = x + y elif z <= 4.2e-251: tmp = x elif z <= 1.7e-111: tmp = t * (y / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e-45) tmp = Float64(x + y); elseif (z <= 4.2e-251) tmp = x; elseif (z <= 1.7e-111) tmp = Float64(t * Float64(y / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.9e-45) tmp = x + y; elseif (z <= 4.2e-251) tmp = x; elseif (z <= 1.7e-111) tmp = t * (y / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e-45], N[(x + y), $MachinePrecision], If[LessEqual[z, 4.2e-251], x, If[LessEqual[z, 1.7e-111], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{-45}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-251}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-111}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.89999999999999999e-45 or 1.69999999999999998e-111 < z Initial program 99.3%
Taylor expanded in z around inf 71.8%
if -1.89999999999999999e-45 < z < 4.19999999999999964e-251Initial program 96.8%
Taylor expanded in z around 0 81.5%
Taylor expanded in x around inf 50.8%
if 4.19999999999999964e-251 < z < 1.69999999999999998e-111Initial program 95.1%
Taylor expanded in z around 0 55.6%
Taylor expanded in x around 0 41.8%
associate-/l*64.4%
*-commutative64.4%
Applied egg-rr50.5%
Final simplification64.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.8e-55) (not (<= t 1.2e+45))) (+ x (/ y (/ (- a z) t))) (+ x (/ y (- 1.0 (/ a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.8e-55) || !(t <= 1.2e+45)) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
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
real(8) :: tmp
if ((t <= (-1.8d-55)) .or. (.not. (t <= 1.2d+45))) then
tmp = x + (y / ((a - z) / t))
else
tmp = x + (y / (1.0d0 - (a / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.8e-55) || !(t <= 1.2e+45)) {
tmp = x + (y / ((a - z) / t));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.8e-55) or not (t <= 1.2e+45): tmp = x + (y / ((a - z) / t)) else: tmp = x + (y / (1.0 - (a / z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.8e-55) || !(t <= 1.2e+45)) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / t))); else tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.8e-55) || ~((t <= 1.2e+45))) tmp = x + (y / ((a - z) / t)); else tmp = x + (y / (1.0 - (a / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.8e-55], N[Not[LessEqual[t, 1.2e+45]], $MachinePrecision]], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{-55} \lor \neg \left(t \leq 1.2 \cdot 10^{+45}\right):\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\end{array}
\end{array}
if t < -1.8e-55 or 1.19999999999999995e45 < t Initial program 97.1%
clear-num97.0%
un-div-inv97.9%
Applied egg-rr97.9%
Taylor expanded in t around inf 90.9%
associate-*r/90.9%
mul-1-neg90.9%
sub0-neg90.9%
associate--r-90.9%
neg-sub090.9%
Simplified90.9%
if -1.8e-55 < t < 1.19999999999999995e45Initial program 99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in t around 0 94.1%
div-sub94.1%
*-inverses94.1%
Simplified94.1%
Final simplification92.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.5e+25) (not (<= z 1.45e-85))) (+ x (* y (/ z (- z a)))) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.5e+25) || !(z <= 1.45e-85)) {
tmp = x + (y * (z / (z - a)));
} else {
tmp = x + (t * (y / a));
}
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
real(8) :: tmp
if ((z <= (-3.5d+25)) .or. (.not. (z <= 1.45d-85))) then
tmp = x + (y * (z / (z - a)))
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.5e+25) || !(z <= 1.45e-85)) {
tmp = x + (y * (z / (z - a)));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.5e+25) or not (z <= 1.45e-85): tmp = x + (y * (z / (z - a))) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.5e+25) || !(z <= 1.45e-85)) tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.5e+25) || ~((z <= 1.45e-85))) tmp = x + (y * (z / (z - a))); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.5e+25], N[Not[LessEqual[z, 1.45e-85]], $MachinePrecision]], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+25} \lor \neg \left(z \leq 1.45 \cdot 10^{-85}\right):\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -3.49999999999999999e25 or 1.4500000000000001e-85 < z Initial program 99.3%
Taylor expanded in t around 0 83.6%
if -3.49999999999999999e25 < z < 1.4500000000000001e-85Initial program 97.1%
Taylor expanded in z around 0 74.7%
associate-/l*77.1%
*-commutative77.1%
Applied egg-rr77.1%
Final simplification80.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.3e-20) (+ x (/ y (/ z (- z t)))) (if (<= z 8.4e-79) (+ x (/ y (/ a (- t z)))) (+ x (/ y (- 1.0 (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.3e-20) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 8.4e-79) {
tmp = x + (y / (a / (t - z)));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
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
real(8) :: tmp
if (z <= (-3.3d-20)) then
tmp = x + (y / (z / (z - t)))
else if (z <= 8.4d-79) then
tmp = x + (y / (a / (t - z)))
else
tmp = x + (y / (1.0d0 - (a / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.3e-20) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 8.4e-79) {
tmp = x + (y / (a / (t - z)));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.3e-20: tmp = x + (y / (z / (z - t))) elif z <= 8.4e-79: tmp = x + (y / (a / (t - z))) else: tmp = x + (y / (1.0 - (a / z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.3e-20) tmp = Float64(x + Float64(y / Float64(z / Float64(z - t)))); elseif (z <= 8.4e-79) tmp = Float64(x + Float64(y / Float64(a / Float64(t - z)))); else tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.3e-20) tmp = x + (y / (z / (z - t))); elseif (z <= 8.4e-79) tmp = x + (y / (a / (t - z))); else tmp = x + (y / (1.0 - (a / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.3e-20], N[(x + N[(y / N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.4e-79], N[(x + N[(y / N[(a / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{-20}:\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t}}\\
\mathbf{elif}\;z \leq 8.4 \cdot 10^{-79}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\end{array}
\end{array}
if z < -3.3e-20Initial program 99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 87.2%
if -3.3e-20 < z < 8.3999999999999998e-79Initial program 96.7%
clear-num96.6%
un-div-inv97.6%
Applied egg-rr97.6%
Taylor expanded in a around inf 81.7%
neg-mul-181.7%
distribute-neg-frac281.7%
sub-neg81.7%
+-commutative81.7%
distribute-neg-in81.7%
remove-double-neg81.7%
Simplified81.7%
if 8.3999999999999998e-79 < z Initial program 98.9%
clear-num98.7%
un-div-inv99.2%
Applied egg-rr99.2%
Taylor expanded in t around 0 83.1%
div-sub83.1%
*-inverses83.1%
Simplified83.1%
Final simplification83.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.4e-20) (+ x (/ y (/ z (- z t)))) (if (<= z 4.5e-86) (+ x (* (/ y a) (- t z))) (+ x (/ y (- 1.0 (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.4e-20) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 4.5e-86) {
tmp = x + ((y / a) * (t - z));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
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
real(8) :: tmp
if (z <= (-4.4d-20)) then
tmp = x + (y / (z / (z - t)))
else if (z <= 4.5d-86) then
tmp = x + ((y / a) * (t - z))
else
tmp = x + (y / (1.0d0 - (a / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.4e-20) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 4.5e-86) {
tmp = x + ((y / a) * (t - z));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.4e-20: tmp = x + (y / (z / (z - t))) elif z <= 4.5e-86: tmp = x + ((y / a) * (t - z)) else: tmp = x + (y / (1.0 - (a / z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.4e-20) tmp = Float64(x + Float64(y / Float64(z / Float64(z - t)))); elseif (z <= 4.5e-86) tmp = Float64(x + Float64(Float64(y / a) * Float64(t - z))); else tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.4e-20) tmp = x + (y / (z / (z - t))); elseif (z <= 4.5e-86) tmp = x + ((y / a) * (t - z)); else tmp = x + (y / (1.0 - (a / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.4e-20], N[(x + N[(y / N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-86], N[(x + N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{-20}:\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t}}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-86}:\\
\;\;\;\;x + \frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\end{array}
\end{array}
if z < -4.39999999999999982e-20Initial program 99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 87.2%
if -4.39999999999999982e-20 < z < 4.4999999999999998e-86Initial program 96.7%
clear-num96.6%
un-div-inv97.6%
Applied egg-rr97.6%
associate-/r/95.0%
Applied egg-rr95.0%
Taylor expanded in z around 0 81.4%
mul-1-neg81.4%
distribute-frac-neg281.4%
Simplified81.4%
if 4.4999999999999998e-86 < z Initial program 98.9%
clear-num98.7%
un-div-inv99.2%
Applied egg-rr99.2%
Taylor expanded in t around 0 83.1%
div-sub83.1%
*-inverses83.1%
Simplified83.1%
Final simplification83.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -9e-22) (+ x (/ y (/ z (- z t)))) (if (<= z 1.08e-78) (+ x (* y (/ (- t z) a))) (+ x (/ y (- 1.0 (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9e-22) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 1.08e-78) {
tmp = x + (y * ((t - z) / a));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
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
real(8) :: tmp
if (z <= (-9d-22)) then
tmp = x + (y / (z / (z - t)))
else if (z <= 1.08d-78) then
tmp = x + (y * ((t - z) / a))
else
tmp = x + (y / (1.0d0 - (a / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9e-22) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 1.08e-78) {
tmp = x + (y * ((t - z) / a));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9e-22: tmp = x + (y / (z / (z - t))) elif z <= 1.08e-78: tmp = x + (y * ((t - z) / a)) else: tmp = x + (y / (1.0 - (a / z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9e-22) tmp = Float64(x + Float64(y / Float64(z / Float64(z - t)))); elseif (z <= 1.08e-78) tmp = Float64(x + Float64(y * Float64(Float64(t - z) / a))); else tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9e-22) tmp = x + (y / (z / (z - t))); elseif (z <= 1.08e-78) tmp = x + (y * ((t - z) / a)); else tmp = x + (y / (1.0 - (a / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9e-22], N[(x + N[(y / N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e-78], N[(x + N[(y * N[(N[(t - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{-22}:\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t}}\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{-78}:\\
\;\;\;\;x + y \cdot \frac{t - z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\end{array}
\end{array}
if z < -8.99999999999999973e-22Initial program 99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 87.2%
if -8.99999999999999973e-22 < z < 1.0800000000000001e-78Initial program 96.7%
Taylor expanded in a around inf 78.9%
mul-1-neg78.9%
associate-/l*80.8%
distribute-rgt-neg-in80.8%
distribute-frac-neg80.8%
neg-sub080.8%
associate--r-80.8%
neg-sub080.8%
Simplified80.8%
if 1.0800000000000001e-78 < z Initial program 98.9%
clear-num98.7%
un-div-inv99.2%
Applied egg-rr99.2%
Taylor expanded in t around 0 83.1%
div-sub83.1%
*-inverses83.1%
Simplified83.1%
Final simplification83.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -1e-20) (+ x (/ y (/ z (- z t)))) (if (<= z 7.5e-89) (+ x (* t (/ y a))) (+ x (/ y (- 1.0 (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e-20) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 7.5e-89) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
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
real(8) :: tmp
if (z <= (-1d-20)) then
tmp = x + (y / (z / (z - t)))
else if (z <= 7.5d-89) then
tmp = x + (t * (y / a))
else
tmp = x + (y / (1.0d0 - (a / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e-20) {
tmp = x + (y / (z / (z - t)));
} else if (z <= 7.5e-89) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1e-20: tmp = x + (y / (z / (z - t))) elif z <= 7.5e-89: tmp = x + (t * (y / a)) else: tmp = x + (y / (1.0 - (a / z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1e-20) tmp = Float64(x + Float64(y / Float64(z / Float64(z - t)))); elseif (z <= 7.5e-89) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1e-20) tmp = x + (y / (z / (z - t))); elseif (z <= 7.5e-89) tmp = x + (t * (y / a)); else tmp = x + (y / (1.0 - (a / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1e-20], N[(x + N[(y / N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e-89], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{-20}:\\
\;\;\;\;x + \frac{y}{\frac{z}{z - t}}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-89}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\end{array}
\end{array}
if z < -9.99999999999999945e-21Initial program 99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 87.2%
if -9.99999999999999945e-21 < z < 7.4999999999999999e-89Initial program 96.7%
Taylor expanded in z around 0 76.0%
associate-/l*79.1%
*-commutative79.1%
Applied egg-rr79.1%
if 7.4999999999999999e-89 < z Initial program 98.9%
clear-num98.7%
un-div-inv99.2%
Applied egg-rr99.2%
Taylor expanded in t around 0 83.1%
div-sub83.1%
*-inverses83.1%
Simplified83.1%
Final simplification82.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.35e-21) (+ x (* y (/ (- z t) z))) (if (<= z 7.2e-92) (+ x (* t (/ y a))) (+ x (/ y (- 1.0 (/ a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.35e-21) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 7.2e-92) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
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
real(8) :: tmp
if (z <= (-1.35d-21)) then
tmp = x + (y * ((z - t) / z))
else if (z <= 7.2d-92) then
tmp = x + (t * (y / a))
else
tmp = x + (y / (1.0d0 - (a / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.35e-21) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 7.2e-92) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y / (1.0 - (a / z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.35e-21: tmp = x + (y * ((z - t) / z)) elif z <= 7.2e-92: tmp = x + (t * (y / a)) else: tmp = x + (y / (1.0 - (a / z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.35e-21) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); elseif (z <= 7.2e-92) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.35e-21) tmp = x + (y * ((z - t) / z)); elseif (z <= 7.2e-92) tmp = x + (t * (y / a)); else tmp = x + (y / (1.0 - (a / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.35e-21], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-92], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{-21}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-92}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\end{array}
\end{array}
if z < -1.3500000000000001e-21Initial program 99.9%
Taylor expanded in a around 0 87.1%
if -1.3500000000000001e-21 < z < 7.20000000000000032e-92Initial program 96.7%
Taylor expanded in z around 0 76.0%
associate-/l*79.1%
*-commutative79.1%
Applied egg-rr79.1%
if 7.20000000000000032e-92 < z Initial program 98.9%
clear-num98.7%
un-div-inv99.2%
Applied egg-rr99.2%
Taylor expanded in t around 0 83.1%
div-sub83.1%
*-inverses83.1%
Simplified83.1%
Final simplification82.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.9e-21) (+ x (* y (/ (- z t) z))) (if (<= z 2.15e-92) (+ x (* t (/ y a))) (+ x (* y (/ z (- z a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e-21) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 2.15e-92) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y * (z / (z - a)));
}
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
real(8) :: tmp
if (z <= (-2.9d-21)) then
tmp = x + (y * ((z - t) / z))
else if (z <= 2.15d-92) then
tmp = x + (t * (y / a))
else
tmp = x + (y * (z / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e-21) {
tmp = x + (y * ((z - t) / z));
} else if (z <= 2.15e-92) {
tmp = x + (t * (y / a));
} else {
tmp = x + (y * (z / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e-21: tmp = x + (y * ((z - t) / z)) elif z <= 2.15e-92: tmp = x + (t * (y / a)) else: tmp = x + (y * (z / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e-21) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / z))); elseif (z <= 2.15e-92) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + Float64(y * Float64(z / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e-21) tmp = x + (y * ((z - t) / z)); elseif (z <= 2.15e-92) tmp = x + (t * (y / a)); else tmp = x + (y * (z / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e-21], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e-92], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-21}:\\
\;\;\;\;x + y \cdot \frac{z - t}{z}\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{-92}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{z - a}\\
\end{array}
\end{array}
if z < -2.9e-21Initial program 99.9%
Taylor expanded in a around 0 87.1%
if -2.9e-21 < z < 2.15000000000000007e-92Initial program 96.7%
Taylor expanded in z around 0 76.0%
associate-/l*79.1%
*-commutative79.1%
Applied egg-rr79.1%
if 2.15000000000000007e-92 < z Initial program 98.9%
Taylor expanded in t around 0 83.1%
Final simplification82.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.6e+29) (not (<= z 1.46e-15))) (+ x y) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e+29) || !(z <= 1.46e-15)) {
tmp = x + y;
} else {
tmp = x + (t * (y / a));
}
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
real(8) :: tmp
if ((z <= (-2.6d+29)) .or. (.not. (z <= 1.46d-15))) then
tmp = x + y
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e+29) || !(z <= 1.46e-15)) {
tmp = x + y;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.6e+29) or not (z <= 1.46e-15): tmp = x + y else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.6e+29) || !(z <= 1.46e-15)) tmp = Float64(x + y); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.6e+29) || ~((z <= 1.46e-15))) tmp = x + y; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.6e+29], N[Not[LessEqual[z, 1.46e-15]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+29} \lor \neg \left(z \leq 1.46 \cdot 10^{-15}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -2.6e29 or 1.4600000000000001e-15 < z Initial program 99.9%
Taylor expanded in z around inf 76.5%
if -2.6e29 < z < 1.4600000000000001e-15Initial program 96.6%
Taylor expanded in z around 0 70.8%
associate-/l*73.7%
*-commutative73.7%
Applied egg-rr73.7%
Final simplification75.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -9.5e+39) (not (<= z 2.2e-15))) (+ x y) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -9.5e+39) || !(z <= 2.2e-15)) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
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
real(8) :: tmp
if ((z <= (-9.5d+39)) .or. (.not. (z <= 2.2d-15))) then
tmp = x + y
else
tmp = x + (y * (t / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -9.5e+39) || !(z <= 2.2e-15)) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -9.5e+39) or not (z <= 2.2e-15): tmp = x + y else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -9.5e+39) || !(z <= 2.2e-15)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -9.5e+39) || ~((z <= 2.2e-15))) tmp = x + y; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -9.5e+39], N[Not[LessEqual[z, 2.2e-15]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+39} \lor \neg \left(z \leq 2.2 \cdot 10^{-15}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if z < -9.50000000000000011e39 or 2.19999999999999986e-15 < z Initial program 99.9%
Taylor expanded in z around inf 76.7%
if -9.50000000000000011e39 < z < 2.19999999999999986e-15Initial program 96.7%
Taylor expanded in z around 0 72.7%
Final simplification74.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.6e-42) (not (<= z 1.95e-219))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e-42) || !(z <= 1.95e-219)) {
tmp = x + y;
} else {
tmp = x;
}
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
real(8) :: tmp
if ((z <= (-2.6d-42)) .or. (.not. (z <= 1.95d-219))) then
tmp = x + y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e-42) || !(z <= 1.95e-219)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.6e-42) or not (z <= 1.95e-219): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.6e-42) || !(z <= 1.95e-219)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.6e-42) || ~((z <= 1.95e-219))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.6e-42], N[Not[LessEqual[z, 1.95e-219]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{-42} \lor \neg \left(z \leq 1.95 \cdot 10^{-219}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.6e-42 or 1.94999999999999994e-219 < z Initial program 98.9%
Taylor expanded in z around inf 67.0%
if -2.6e-42 < z < 1.94999999999999994e-219Initial program 97.0%
Taylor expanded in z around 0 79.5%
Taylor expanded in x around inf 48.8%
Final simplification62.2%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
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 * ((z - t) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (z - a))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{z - a}
\end{array}
Initial program 98.4%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 98.4%
Taylor expanded in z around 0 56.8%
Taylor expanded in x around inf 50.5%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
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 / ((z - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
herbie shell --seed 2024097
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:alt
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))