
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - 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 + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
def code(x, y, z, t): return x + ((y - z) * (t - x))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - z) * Float64(t - x))) end
function tmp = code(x, y, z, t) tmp = x + ((y - z) * (t - x)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \left(t - x\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - 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 + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
def code(x, y, z, t): return x + ((y - z) * (t - x))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - z) * Float64(t - x))) end
function tmp = code(x, y, z, t) tmp = x + ((y - z) * (t - x)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \left(t - x\right)
\end{array}
(FPCore (x y z t) :precision binary64 (+ (* (- t x) (- y z)) x))
double code(double x, double y, double z, double t) {
return ((t - x) * (y - z)) + 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 = ((t - x) * (y - z)) + x
end function
public static double code(double x, double y, double z, double t) {
return ((t - x) * (y - z)) + x;
}
def code(x, y, z, t): return ((t - x) * (y - z)) + x
function code(x, y, z, t) return Float64(Float64(Float64(t - x) * Float64(y - z)) + x) end
function tmp = code(x, y, z, t) tmp = ((t - x) * (y - z)) + x; end
code[x_, y_, z_, t_] := N[(N[(N[(t - x), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\left(t - x\right) \cdot \left(y - z\right) + x
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- x t) z)))
(if (<= z -4.3e+15)
t_1
(if (<= z 6e-296)
(* (- t x) y)
(if (<= z 1.7e+19) (fma (- x) y x) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (x - t) * z;
double tmp;
if (z <= -4.3e+15) {
tmp = t_1;
} else if (z <= 6e-296) {
tmp = (t - x) * y;
} else if (z <= 1.7e+19) {
tmp = fma(-x, y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(x - t) * z) tmp = 0.0 if (z <= -4.3e+15) tmp = t_1; elseif (z <= 6e-296) tmp = Float64(Float64(t - x) * y); elseif (z <= 1.7e+19) tmp = fma(Float64(-x), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x - t), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -4.3e+15], t$95$1, If[LessEqual[z, 6e-296], N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.7e+19], N[((-x) * y + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
\mathbf{if}\;z \leq -4.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-296}:\\
\;\;\;\;\left(t - x\right) \cdot y\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(-x, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.3e15 or 1.7e19 < z Initial program 100.0%
Taylor expanded in z around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6484.7
Applied rewrites84.7%
if -4.3e15 < z < 5.9999999999999995e-296Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6474.3
Applied rewrites74.3%
if 5.9999999999999995e-296 < z < 1.7e19Initial program 100.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
distribute-lft-inN/A
associate-+l+N/A
*-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-neg.f6498.1
Applied rewrites98.1%
Taylor expanded in z around 0
+-commutativeN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
distribute-rgt-out--N/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6485.1
Applied rewrites85.1%
Taylor expanded in t around 0
Applied rewrites63.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (- x t) z)))
(if (<= z -4.3e+15)
t_1
(if (<= z 2.55e-291) (* (- t x) y) (if (<= z 1.0) (fma (- t) z x) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = (x - t) * z;
double tmp;
if (z <= -4.3e+15) {
tmp = t_1;
} else if (z <= 2.55e-291) {
tmp = (t - x) * y;
} else if (z <= 1.0) {
tmp = fma(-t, z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(x - t) * z) tmp = 0.0 if (z <= -4.3e+15) tmp = t_1; elseif (z <= 2.55e-291) tmp = Float64(Float64(t - x) * y); elseif (z <= 1.0) tmp = fma(Float64(-t), z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x - t), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -4.3e+15], t$95$1, If[LessEqual[z, 2.55e-291], N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.0], N[((-t) * z + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
\mathbf{if}\;z \leq -4.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-291}:\\
\;\;\;\;\left(t - x\right) \cdot y\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;\mathsf{fma}\left(-t, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.3e15 or 1 < z Initial program 100.0%
Taylor expanded in z around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6482.3
Applied rewrites82.3%
if -4.3e15 < z < 2.55e-291Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6474.6
Applied rewrites74.6%
if 2.55e-291 < z < 1Initial program 100.0%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6460.5
Applied rewrites60.5%
Taylor expanded in t around inf
Applied rewrites59.7%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (- x t) z))) (if (<= z -4.3e+15) t_1 (if (<= z 2.2e+19) (fma (- t x) y x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (x - t) * z;
double tmp;
if (z <= -4.3e+15) {
tmp = t_1;
} else if (z <= 2.2e+19) {
tmp = fma((t - x), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(Float64(x - t) * z) tmp = 0.0 if (z <= -4.3e+15) tmp = t_1; elseif (z <= 2.2e+19) tmp = fma(Float64(t - x), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x - t), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -4.3e+15], t$95$1, If[LessEqual[z, 2.2e+19], N[(N[(t - x), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
\mathbf{if}\;z \leq -4.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(t - x, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.3e15 or 2.2e19 < z Initial program 100.0%
Taylor expanded in z around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6484.7
Applied rewrites84.7%
if -4.3e15 < z < 2.2e19Initial program 100.0%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f6490.0
Applied rewrites90.0%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* (- x t) z))) (if (<= z -4.3e+15) t_1 (if (<= z 2.2e+19) (* (- t x) y) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (x - t) * z;
double tmp;
if (z <= -4.3e+15) {
tmp = t_1;
} else if (z <= 2.2e+19) {
tmp = (t - x) * y;
} else {
tmp = t_1;
}
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 = (x - t) * z
if (z <= (-4.3d+15)) then
tmp = t_1
else if (z <= 2.2d+19) then
tmp = (t - x) * y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x - t) * z;
double tmp;
if (z <= -4.3e+15) {
tmp = t_1;
} else if (z <= 2.2e+19) {
tmp = (t - x) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x - t) * z tmp = 0 if z <= -4.3e+15: tmp = t_1 elif z <= 2.2e+19: tmp = (t - x) * y else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x - t) * z) tmp = 0.0 if (z <= -4.3e+15) tmp = t_1; elseif (z <= 2.2e+19) tmp = Float64(Float64(t - x) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x - t) * z; tmp = 0.0; if (z <= -4.3e+15) tmp = t_1; elseif (z <= 2.2e+19) tmp = (t - x) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x - t), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -4.3e+15], t$95$1, If[LessEqual[z, 2.2e+19], N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - t\right) \cdot z\\
\mathbf{if}\;z \leq -4.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+19}:\\
\;\;\;\;\left(t - x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.3e15 or 2.2e19 < z Initial program 100.0%
Taylor expanded in z around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6484.7
Applied rewrites84.7%
if -4.3e15 < z < 2.2e19Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6463.3
Applied rewrites63.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* t (- y z)))) (if (<= t -2.05e+39) t_1 (if (<= t 6.2e-7) (fma z x x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = t * (y - z);
double tmp;
if (t <= -2.05e+39) {
tmp = t_1;
} else if (t <= 6.2e-7) {
tmp = fma(z, x, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(t * Float64(y - z)) tmp = 0.0 if (t <= -2.05e+39) tmp = t_1; elseif (t <= 6.2e-7) tmp = fma(z, x, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.05e+39], t$95$1, If[LessEqual[t, 6.2e-7], N[(z * x + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(y - z\right)\\
\mathbf{if}\;t \leq -2.05 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(z, x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.05000000000000002e39 or 6.1999999999999999e-7 < t Initial program 100.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f6486.0
Applied rewrites86.0%
if -2.05000000000000002e39 < t < 6.1999999999999999e-7Initial program 100.0%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6466.4
Applied rewrites66.4%
Taylor expanded in t around 0
Applied rewrites57.2%
(FPCore (x y z t) :precision binary64 (if (<= t -2.7e+39) (* t y) (if (<= t 3e+42) (fma z x x) (* t y))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -2.7e+39) {
tmp = t * y;
} else if (t <= 3e+42) {
tmp = fma(z, x, x);
} else {
tmp = t * y;
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (t <= -2.7e+39) tmp = Float64(t * y); elseif (t <= 3e+42) tmp = fma(z, x, x); else tmp = Float64(t * y); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[t, -2.7e+39], N[(t * y), $MachinePrecision], If[LessEqual[t, 3e+42], N[(z * x + x), $MachinePrecision], N[(t * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{+39}:\\
\;\;\;\;t \cdot y\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+42}:\\
\;\;\;\;\mathsf{fma}\left(z, x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot y\\
\end{array}
\end{array}
if t < -2.70000000000000003e39 or 3.00000000000000029e42 < t Initial program 100.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f6487.0
Applied rewrites87.0%
Taylor expanded in z around 0
Applied rewrites52.4%
if -2.70000000000000003e39 < t < 3.00000000000000029e42Initial program 100.0%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6467.0
Applied rewrites67.0%
Taylor expanded in t around 0
Applied rewrites56.3%
(FPCore (x y z t) :precision binary64 (if (<= z -7.2e+17) (* z x) (if (<= z 2.8e+72) (* t y) (* z x))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.2e+17) {
tmp = z * x;
} else if (z <= 2.8e+72) {
tmp = t * y;
} else {
tmp = z * 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 (z <= (-7.2d+17)) then
tmp = z * x
else if (z <= 2.8d+72) then
tmp = t * y
else
tmp = z * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.2e+17) {
tmp = z * x;
} else if (z <= 2.8e+72) {
tmp = t * y;
} else {
tmp = z * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7.2e+17: tmp = z * x elif z <= 2.8e+72: tmp = t * y else: tmp = z * x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7.2e+17) tmp = Float64(z * x); elseif (z <= 2.8e+72) tmp = Float64(t * y); else tmp = Float64(z * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7.2e+17) tmp = z * x; elseif (z <= 2.8e+72) tmp = t * y; else tmp = z * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7.2e+17], N[(z * x), $MachinePrecision], If[LessEqual[z, 2.8e+72], N[(t * y), $MachinePrecision], N[(z * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+17}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+72}:\\
\;\;\;\;t \cdot y\\
\mathbf{else}:\\
\;\;\;\;z \cdot x\\
\end{array}
\end{array}
if z < -7.2e17 or 2.7999999999999999e72 < z Initial program 100.0%
Taylor expanded in z around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
unsub-negN/A
remove-double-negN/A
lower--.f6487.4
Applied rewrites87.4%
Taylor expanded in t around 0
Applied rewrites50.6%
if -7.2e17 < z < 2.7999999999999999e72Initial program 100.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f6452.1
Applied rewrites52.1%
Taylor expanded in z around 0
Applied rewrites41.4%
(FPCore (x y z t) :precision binary64 (* t y))
double code(double x, double y, double z, double t) {
return t * y;
}
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 = t * y
end function
public static double code(double x, double y, double z, double t) {
return t * y;
}
def code(x, y, z, t): return t * y
function code(x, y, z, t) return Float64(t * y) end
function tmp = code(x, y, z, t) tmp = t * y; end
code[x_, y_, z_, t_] := N[(t * y), $MachinePrecision]
\begin{array}{l}
\\
t \cdot y
\end{array}
Initial program 100.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f6451.0
Applied rewrites51.0%
Taylor expanded in z around 0
Applied rewrites29.7%
(FPCore (x y z t) :precision binary64 (+ x (+ (* t (- y z)) (* (- x) (- y z)))))
double code(double x, double y, double z, double t) {
return x + ((t * (y - z)) + (-x * (y - z)));
}
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 + ((t * (y - z)) + (-x * (y - z)))
end function
public static double code(double x, double y, double z, double t) {
return x + ((t * (y - z)) + (-x * (y - z)));
}
def code(x, y, z, t): return x + ((t * (y - z)) + (-x * (y - z)))
function code(x, y, z, t) return Float64(x + Float64(Float64(t * Float64(y - z)) + Float64(Float64(-x) * Float64(y - z)))) end
function tmp = code(x, y, z, t) tmp = x + ((t * (y - z)) + (-x * (y - z))); end
code[x_, y_, z_, t_] := N[(x + N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] + N[((-x) * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(t \cdot \left(y - z\right) + \left(-x\right) \cdot \left(y - z\right)\right)
\end{array}
herbie shell --seed 2024244
(FPCore (x y z t)
:name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
:precision binary64
:alt
(! :herbie-platform default (+ x (+ (* t (- y z)) (* (- x) (- y z)))))
(+ x (* (- y z) (- t x))))