
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((y - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
def code(x, y, z, t): return x + (((y - x) * z) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(y - x) * z) / t)) end
function tmp = code(x, y, z, t) tmp = x + (((y - x) * z) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (((y - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + (((y - x) * z) / t);
}
def code(x, y, z, t): return x + (((y - x) * z) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(Float64(y - x) * z) / t)) end
function tmp = code(x, y, z, t) tmp = x + (((y - x) * z) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) z) t))))
(if (<= t_1 (- INFINITY))
(+ x (* z (/ (- y x) t)))
(if (<= t_1 5e+111) t_1 (+ x (/ (- y x) (/ t z)))))))
double code(double x, double y, double z, double t) {
double t_1 = x + (((y - x) * z) / t);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + (z * ((y - x) / t));
} else if (t_1 <= 5e+111) {
tmp = t_1;
} else {
tmp = x + ((y - x) / (t / z));
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = x + (((y - x) * z) / t);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + (z * ((y - x) / t));
} else if (t_1 <= 5e+111) {
tmp = t_1;
} else {
tmp = x + ((y - x) / (t / z));
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (((y - x) * z) / t) tmp = 0 if t_1 <= -math.inf: tmp = x + (z * ((y - x) / t)) elif t_1 <= 5e+111: tmp = t_1 else: tmp = x + ((y - x) / (t / z)) return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(Float64(y - x) * z) / t)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / t))); elseif (t_1 <= 5e+111) tmp = t_1; else tmp = Float64(x + Float64(Float64(y - x) / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (((y - x) * z) / t); tmp = 0.0; if (t_1 <= -Inf) tmp = x + (z * ((y - x) / t)); elseif (t_1 <= 5e+111) tmp = t_1; else tmp = x + ((y - x) / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+111], t$95$1, N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+111}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{t}{z}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) z) t)) < -inf.0Initial program 86.1%
associate-*l/100.0%
Simplified100.0%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) z) t)) < 4.9999999999999997e111Initial program 99.8%
if 4.9999999999999997e111 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) z) t)) Initial program 88.9%
associate-/l*99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) z) t))))
(if (<= t_1 (- INFINITY))
(+ x (* z (/ (- y x) t)))
(if (<= t_1 2e+299) t_1 (+ x (/ z (/ t (- y x))))))))
double code(double x, double y, double z, double t) {
double t_1 = x + (((y - x) * z) / t);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + (z * ((y - x) / t));
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = x + (z / (t / (y - x)));
}
return tmp;
}
public static double code(double x, double y, double z, double t) {
double t_1 = x + (((y - x) * z) / t);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + (z * ((y - x) / t));
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = x + (z / (t / (y - x)));
}
return tmp;
}
def code(x, y, z, t): t_1 = x + (((y - x) * z) / t) tmp = 0 if t_1 <= -math.inf: tmp = x + (z * ((y - x) / t)) elif t_1 <= 2e+299: tmp = t_1 else: tmp = x + (z / (t / (y - x))) return tmp
function code(x, y, z, t) t_1 = Float64(x + Float64(Float64(Float64(y - x) * z) / t)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / t))); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = Float64(x + Float64(z / Float64(t / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x + (((y - x) * z) / t); tmp = 0.0; if (t_1 <= -Inf) tmp = x + (z * ((y - x) / t)); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = x + (z / (t / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], t$95$1, N[(x + N[(z / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot z}{t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{t}{y - x}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) z) t)) < -inf.0Initial program 86.1%
associate-*l/100.0%
Simplified100.0%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) z) t)) < 2.0000000000000001e299Initial program 99.8%
if 2.0000000000000001e299 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) z) t)) Initial program 77.9%
associate-*l/99.9%
Simplified99.9%
*-commutative99.9%
clear-num99.9%
un-div-inv100.0%
Applied egg-rr100.0%
Final simplification99.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (* y z) t)))
(if (<= t -1.3e+49)
x
(if (<= t -3.95e-286)
t_1
(if (<= t 9e-178) (* x (/ (- z) t)) (if (<= t 1.02e+48) t_1 x))))))
double code(double x, double y, double z, double t) {
double t_1 = (y * z) / t;
double tmp;
if (t <= -1.3e+49) {
tmp = x;
} else if (t <= -3.95e-286) {
tmp = t_1;
} else if (t <= 9e-178) {
tmp = x * (-z / t);
} else if (t <= 1.02e+48) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (y * z) / t
if (t <= (-1.3d+49)) then
tmp = x
else if (t <= (-3.95d-286)) then
tmp = t_1
else if (t <= 9d-178) then
tmp = x * (-z / t)
else if (t <= 1.02d+48) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (y * z) / t;
double tmp;
if (t <= -1.3e+49) {
tmp = x;
} else if (t <= -3.95e-286) {
tmp = t_1;
} else if (t <= 9e-178) {
tmp = x * (-z / t);
} else if (t <= 1.02e+48) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): t_1 = (y * z) / t tmp = 0 if t <= -1.3e+49: tmp = x elif t <= -3.95e-286: tmp = t_1 elif t <= 9e-178: tmp = x * (-z / t) elif t <= 1.02e+48: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t) t_1 = Float64(Float64(y * z) / t) tmp = 0.0 if (t <= -1.3e+49) tmp = x; elseif (t <= -3.95e-286) tmp = t_1; elseif (t <= 9e-178) tmp = Float64(x * Float64(Float64(-z) / t)); elseif (t <= 1.02e+48) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (y * z) / t; tmp = 0.0; if (t <= -1.3e+49) tmp = x; elseif (t <= -3.95e-286) tmp = t_1; elseif (t <= 9e-178) tmp = x * (-z / t); elseif (t <= 1.02e+48) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -1.3e+49], x, If[LessEqual[t, -3.95e-286], t$95$1, If[LessEqual[t, 9e-178], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+48], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot z}{t}\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -3.95 \cdot 10^{-286}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-178}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.29999999999999994e49 or 1.02e48 < t Initial program 87.1%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in t around inf 62.6%
if -1.29999999999999994e49 < t < -3.9500000000000001e-286 or 8.99999999999999957e-178 < t < 1.02e48Initial program 99.8%
associate-*l/88.4%
Simplified88.4%
+-commutative88.4%
associate-*l/99.8%
div-inv99.6%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 55.3%
if -3.9500000000000001e-286 < t < 8.99999999999999957e-178Initial program 100.0%
associate-*l/85.3%
Simplified85.3%
Taylor expanded in x around inf 75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
Taylor expanded in z around inf 66.8%
mul-1-neg66.8%
*-commutative66.8%
associate-*l/74.2%
distribute-rgt-neg-in74.2%
Simplified74.2%
Final simplification61.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -7e-17) (not (<= z 2.2e-179))) (+ x (* z (/ (- y x) t))) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -7e-17) || !(z <= 2.2e-179)) {
tmp = x + (z * ((y - x) / t));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-7d-17)) .or. (.not. (z <= 2.2d-179))) then
tmp = x + (z * ((y - x) / t))
else
tmp = x + ((y * z) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -7e-17) || !(z <= 2.2e-179)) {
tmp = x + (z * ((y - x) / t));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -7e-17) or not (z <= 2.2e-179): tmp = x + (z * ((y - x) / t)) else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -7e-17) || !(z <= 2.2e-179)) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / t))); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -7e-17) || ~((z <= 2.2e-179))) tmp = x + (z * ((y - x) / t)); else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -7e-17], N[Not[LessEqual[z, 2.2e-179]], $MachinePrecision]], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{-17} \lor \neg \left(z \leq 2.2 \cdot 10^{-179}\right):\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if z < -7.0000000000000003e-17 or 2.20000000000000005e-179 < z Initial program 92.2%
associate-*l/95.2%
Simplified95.2%
if -7.0000000000000003e-17 < z < 2.20000000000000005e-179Initial program 99.8%
associate-*l/81.9%
Simplified81.9%
Taylor expanded in y around inf 94.7%
*-commutative94.7%
Simplified94.7%
Final simplification95.0%
(FPCore (x y z t) :precision binary64 (if (or (<= z -9e-52) (not (<= z 2.7e-179))) (+ x (/ z (/ t (- y x)))) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9e-52) || !(z <= 2.7e-179)) {
tmp = x + (z / (t / (y - x)));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-9d-52)) .or. (.not. (z <= 2.7d-179))) then
tmp = x + (z / (t / (y - x)))
else
tmp = x + ((y * z) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -9e-52) || !(z <= 2.7e-179)) {
tmp = x + (z / (t / (y - x)));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -9e-52) or not (z <= 2.7e-179): tmp = x + (z / (t / (y - x))) else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -9e-52) || !(z <= 2.7e-179)) tmp = Float64(x + Float64(z / Float64(t / Float64(y - x)))); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -9e-52) || ~((z <= 2.7e-179))) tmp = x + (z / (t / (y - x))); else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -9e-52], N[Not[LessEqual[z, 2.7e-179]], $MachinePrecision]], N[(x + N[(z / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{-52} \lor \neg \left(z \leq 2.7 \cdot 10^{-179}\right):\\
\;\;\;\;x + \frac{z}{\frac{t}{y - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if z < -9.0000000000000001e-52 or 2.69999999999999988e-179 < z Initial program 92.5%
associate-*l/94.9%
Simplified94.9%
*-commutative94.9%
clear-num94.9%
un-div-inv95.3%
Applied egg-rr95.3%
if -9.0000000000000001e-52 < z < 2.69999999999999988e-179Initial program 99.9%
associate-*l/80.5%
Simplified80.5%
Taylor expanded in y around inf 95.1%
*-commutative95.1%
Simplified95.1%
Final simplification95.3%
(FPCore (x y z t) :precision binary64 (if (or (<= x -8.5e-113) (not (<= x 9e-41))) (* x (- 1.0 (/ z t))) (/ (* y z) t)))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -8.5e-113) || !(x <= 9e-41)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = (y * z) / t;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-8.5d-113)) .or. (.not. (x <= 9d-41))) then
tmp = x * (1.0d0 - (z / t))
else
tmp = (y * z) / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -8.5e-113) || !(x <= 9e-41)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = (y * z) / t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -8.5e-113) or not (x <= 9e-41): tmp = x * (1.0 - (z / t)) else: tmp = (y * z) / t return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -8.5e-113) || !(x <= 9e-41)) tmp = Float64(x * Float64(1.0 - Float64(z / t))); else tmp = Float64(Float64(y * z) / t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -8.5e-113) || ~((x <= 9e-41))) tmp = x * (1.0 - (z / t)); else tmp = (y * z) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -8.5e-113], N[Not[LessEqual[x, 9e-41]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-113} \lor \neg \left(x \leq 9 \cdot 10^{-41}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\end{array}
\end{array}
if x < -8.4999999999999995e-113 or 9e-41 < x Initial program 93.4%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in x around inf 82.2%
mul-1-neg82.2%
unsub-neg82.2%
Simplified82.2%
if -8.4999999999999995e-113 < x < 9e-41Initial program 95.8%
associate-*l/90.3%
Simplified90.3%
+-commutative90.3%
associate-*l/95.8%
div-inv95.7%
fma-def95.7%
Applied egg-rr95.7%
Taylor expanded in y around inf 71.5%
Final simplification78.2%
(FPCore (x y z t) :precision binary64 (if (or (<= y -6e+23) (not (<= y 8.5e-34))) (+ x (* y (/ z t))) (* x (- 1.0 (/ z t)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6e+23) || !(y <= 8.5e-34)) {
tmp = x + (y * (z / t));
} else {
tmp = x * (1.0 - (z / t));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-6d+23)) .or. (.not. (y <= 8.5d-34))) then
tmp = x + (y * (z / t))
else
tmp = x * (1.0d0 - (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6e+23) || !(y <= 8.5e-34)) {
tmp = x + (y * (z / t));
} else {
tmp = x * (1.0 - (z / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -6e+23) or not (y <= 8.5e-34): tmp = x + (y * (z / t)) else: tmp = x * (1.0 - (z / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -6e+23) || !(y <= 8.5e-34)) tmp = Float64(x + Float64(y * Float64(z / t))); else tmp = Float64(x * Float64(1.0 - Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -6e+23) || ~((y <= 8.5e-34))) tmp = x + (y * (z / t)); else tmp = x * (1.0 - (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -6e+23], N[Not[LessEqual[y, 8.5e-34]], $MachinePrecision]], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+23} \lor \neg \left(y \leq 8.5 \cdot 10^{-34}\right):\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\end{array}
\end{array}
if y < -6.0000000000000002e23 or 8.5000000000000001e-34 < y Initial program 92.5%
associate-*l/90.0%
Simplified90.0%
Taylor expanded in y around inf 83.9%
associate-*r/85.4%
Simplified85.4%
if -6.0000000000000002e23 < y < 8.5000000000000001e-34Initial program 96.7%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in x around inf 87.2%
mul-1-neg87.2%
unsub-neg87.2%
Simplified87.2%
Final simplification86.2%
(FPCore (x y z t) :precision binary64 (if (or (<= x -2.55e-55) (not (<= x 750.0))) (* x (- 1.0 (/ z t))) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.55e-55) || !(x <= 750.0)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-2.55d-55)) .or. (.not. (x <= 750.0d0))) then
tmp = x * (1.0d0 - (z / t))
else
tmp = x + ((y * z) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -2.55e-55) || !(x <= 750.0)) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -2.55e-55) or not (x <= 750.0): tmp = x * (1.0 - (z / t)) else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -2.55e-55) || !(x <= 750.0)) tmp = Float64(x * Float64(1.0 - Float64(z / t))); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -2.55e-55) || ~((x <= 750.0))) tmp = x * (1.0 - (z / t)); else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -2.55e-55], N[Not[LessEqual[x, 750.0]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.55 \cdot 10^{-55} \lor \neg \left(x \leq 750\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if x < -2.54999999999999998e-55 or 750 < x Initial program 92.4%
associate-*l/90.8%
Simplified90.8%
Taylor expanded in x around inf 86.0%
mul-1-neg86.0%
unsub-neg86.0%
Simplified86.0%
if -2.54999999999999998e-55 < x < 750Initial program 96.6%
associate-*l/92.0%
Simplified92.0%
Taylor expanded in y around inf 87.4%
*-commutative87.4%
Simplified87.4%
Final simplification86.7%
(FPCore (x y z t) :precision binary64 (if (or (<= z -3.8e+111) (not (<= z 3.4e-14))) (/ z (/ t (- y x))) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -3.8e+111) || !(z <= 3.4e-14)) {
tmp = z / (t / (y - x));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-3.8d+111)) .or. (.not. (z <= 3.4d-14))) then
tmp = z / (t / (y - x))
else
tmp = x + ((y * z) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -3.8e+111) || !(z <= 3.4e-14)) {
tmp = z / (t / (y - x));
} else {
tmp = x + ((y * z) / t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -3.8e+111) or not (z <= 3.4e-14): tmp = z / (t / (y - x)) else: tmp = x + ((y * z) / t) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -3.8e+111) || !(z <= 3.4e-14)) tmp = Float64(z / Float64(t / Float64(y - x))); else tmp = Float64(x + Float64(Float64(y * z) / t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -3.8e+111) || ~((z <= 3.4e-14))) tmp = z / (t / (y - x)); else tmp = x + ((y * z) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -3.8e+111], N[Not[LessEqual[z, 3.4e-14]], $MachinePrecision]], N[(z / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+111} \lor \neg \left(z \leq 3.4 \cdot 10^{-14}\right):\\
\;\;\;\;\frac{z}{\frac{t}{y - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\end{array}
\end{array}
if z < -3.79999999999999976e111 or 3.40000000000000003e-14 < z Initial program 88.9%
associate-*l/96.3%
Simplified96.3%
+-commutative96.3%
associate-*l/88.9%
div-inv88.8%
fma-def88.8%
Applied egg-rr88.8%
Taylor expanded in z around -inf 78.7%
associate-/l*84.6%
Simplified84.6%
if -3.79999999999999976e111 < z < 3.40000000000000003e-14Initial program 98.5%
associate-*l/87.6%
Simplified87.6%
Taylor expanded in y around inf 89.4%
*-commutative89.4%
Simplified89.4%
Final simplification87.3%
(FPCore (x y z t) :precision binary64 (if (<= y -5.3e+19) (+ x (/ y (/ t z))) (if (<= y 7.1e-34) (* x (- 1.0 (/ z t))) (+ x (* y (/ z t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.3e+19) {
tmp = x + (y / (t / z));
} else if (y <= 7.1e-34) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-5.3d+19)) then
tmp = x + (y / (t / z))
else if (y <= 7.1d-34) then
tmp = x * (1.0d0 - (z / t))
else
tmp = x + (y * (z / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.3e+19) {
tmp = x + (y / (t / z));
} else if (y <= 7.1e-34) {
tmp = x * (1.0 - (z / t));
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -5.3e+19: tmp = x + (y / (t / z)) elif y <= 7.1e-34: tmp = x * (1.0 - (z / t)) else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -5.3e+19) tmp = Float64(x + Float64(y / Float64(t / z))); elseif (y <= 7.1e-34) tmp = Float64(x * Float64(1.0 - Float64(z / t))); else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -5.3e+19) tmp = x + (y / (t / z)); elseif (y <= 7.1e-34) tmp = x * (1.0 - (z / t)); else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -5.3e+19], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.1e-34], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+19}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;y \leq 7.1 \cdot 10^{-34}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if y < -5.3e19Initial program 91.9%
associate-*l/87.4%
Simplified87.4%
Taylor expanded in y around inf 84.2%
associate-*l/86.8%
associate-/l*91.7%
Applied egg-rr91.7%
if -5.3e19 < y < 7.10000000000000036e-34Initial program 96.7%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in x around inf 87.2%
mul-1-neg87.2%
unsub-neg87.2%
Simplified87.2%
if 7.10000000000000036e-34 < y Initial program 92.9%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in y around inf 81.9%
associate-*r/80.9%
Simplified80.9%
Final simplification86.2%
(FPCore (x y z t) :precision binary64 (if (<= t -1.1e+49) x (if (<= t 1.35e+48) (* y (/ z t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.1e+49) {
tmp = x;
} else if (t <= 1.35e+48) {
tmp = y * (z / t);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.1d+49)) then
tmp = x
else if (t <= 1.35d+48) then
tmp = y * (z / t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.1e+49) {
tmp = x;
} else if (t <= 1.35e+48) {
tmp = y * (z / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.1e+49: tmp = x elif t <= 1.35e+48: tmp = y * (z / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.1e+49) tmp = x; elseif (t <= 1.35e+48) tmp = Float64(y * Float64(z / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.1e+49) tmp = x; elseif (t <= 1.35e+48) tmp = y * (z / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.1e+49], x, If[LessEqual[t, 1.35e+48], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+48}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.1e49 or 1.35000000000000002e48 < t Initial program 87.1%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in t around inf 62.6%
if -1.1e49 < t < 1.35000000000000002e48Initial program 99.8%
associate-*l/87.6%
Simplified87.6%
+-commutative87.6%
associate-*l/99.8%
div-inv99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 54.3%
associate-*r/53.6%
Simplified53.6%
Final simplification57.5%
(FPCore (x y z t) :precision binary64 (if (<= t -1.1e+49) x (if (<= t 2.3e+48) (/ y (/ t z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.1e+49) {
tmp = x;
} else if (t <= 2.3e+48) {
tmp = y / (t / z);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.1d+49)) then
tmp = x
else if (t <= 2.3d+48) then
tmp = y / (t / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.1e+49) {
tmp = x;
} else if (t <= 2.3e+48) {
tmp = y / (t / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.1e+49: tmp = x elif t <= 2.3e+48: tmp = y / (t / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.1e+49) tmp = x; elseif (t <= 2.3e+48) tmp = Float64(y / Float64(t / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.1e+49) tmp = x; elseif (t <= 2.3e+48) tmp = y / (t / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.1e+49], x, If[LessEqual[t, 2.3e+48], N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.1e49 or 2.3e48 < t Initial program 87.1%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in t around inf 62.6%
if -1.1e49 < t < 2.3e48Initial program 99.8%
associate-*l/87.6%
Simplified87.6%
+-commutative87.6%
associate-*l/99.8%
div-inv99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 54.3%
associate-*r/53.6%
Simplified53.6%
associate-*r/54.3%
associate-/l*53.7%
Applied egg-rr53.7%
Final simplification57.5%
(FPCore (x y z t) :precision binary64 (if (<= t -1.45e+49) x (if (<= t 1.9e+48) (/ (* y z) t) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.45e+49) {
tmp = x;
} else if (t <= 1.9e+48) {
tmp = (y * z) / t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.45d+49)) then
tmp = x
else if (t <= 1.9d+48) then
tmp = (y * z) / t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.45e+49) {
tmp = x;
} else if (t <= 1.9e+48) {
tmp = (y * z) / t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.45e+49: tmp = x elif t <= 1.9e+48: tmp = (y * z) / t else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.45e+49) tmp = x; elseif (t <= 1.9e+48) tmp = Float64(Float64(y * z) / t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.45e+49) tmp = x; elseif (t <= 1.9e+48) tmp = (y * z) / t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.45e+49], x, If[LessEqual[t, 1.9e+48], N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+48}:\\
\;\;\;\;\frac{y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.45e49 or 1.9e48 < t Initial program 87.1%
associate-*l/96.4%
Simplified96.4%
Taylor expanded in t around inf 62.6%
if -1.45e49 < t < 1.9e48Initial program 99.8%
associate-*l/87.6%
Simplified87.6%
+-commutative87.6%
associate-*l/99.8%
div-inv99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 54.3%
Final simplification57.9%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 94.3%
associate-*l/91.4%
Simplified91.4%
Taylor expanded in t around inf 34.8%
Final simplification34.8%
(FPCore (x y z t)
:precision binary64
(if (< x -9.025511195533005e-135)
(- x (* (/ z t) (- x y)))
(if (< x 4.275032163700715e-250)
(+ x (* (/ (- y x) t) z))
(+ x (/ (- y x) (/ t z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (x < -9.025511195533005e-135) {
tmp = x - ((z / t) * (x - y));
} else if (x < 4.275032163700715e-250) {
tmp = x + (((y - x) / t) * z);
} else {
tmp = x + ((y - x) / (t / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x < (-9.025511195533005d-135)) then
tmp = x - ((z / t) * (x - y))
else if (x < 4.275032163700715d-250) then
tmp = x + (((y - x) / t) * z)
else
tmp = x + ((y - x) / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x < -9.025511195533005e-135) {
tmp = x - ((z / t) * (x - y));
} else if (x < 4.275032163700715e-250) {
tmp = x + (((y - x) / t) * z);
} else {
tmp = x + ((y - x) / (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x < -9.025511195533005e-135: tmp = x - ((z / t) * (x - y)) elif x < 4.275032163700715e-250: tmp = x + (((y - x) / t) * z) else: tmp = x + ((y - x) / (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (x < -9.025511195533005e-135) tmp = Float64(x - Float64(Float64(z / t) * Float64(x - y))); elseif (x < 4.275032163700715e-250) tmp = Float64(x + Float64(Float64(Float64(y - x) / t) * z)); else tmp = Float64(x + Float64(Float64(y - x) / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x < -9.025511195533005e-135) tmp = x - ((z / t) * (x - y)); elseif (x < 4.275032163700715e-250) tmp = x + (((y - x) / t) * z); else tmp = x + ((y - x) / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Less[x, -9.025511195533005e-135], N[(x - N[(N[(z / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[x, 4.275032163700715e-250], N[(x + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x < -9.025511195533005 \cdot 10^{-135}:\\
\;\;\;\;x - \frac{z}{t} \cdot \left(x - y\right)\\
\mathbf{elif}\;x < 4.275032163700715 \cdot 10^{-250}:\\
\;\;\;\;x + \frac{y - x}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{t}{z}}\\
\end{array}
\end{array}
herbie shell --seed 2023320
(FPCore (x y z t)
:name "Numeric.Histogram:binBounds from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< x -9.025511195533005e-135) (- x (* (/ z t) (- x y))) (if (< x 4.275032163700715e-250) (+ x (* (/ (- y x) t) z)) (+ x (/ (- y x) (/ t z)))))
(+ x (/ (* (- y x) z) t)))