
(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 13 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 (fma (- y z) (- t x) x))
double code(double x, double y, double z, double t) {
return fma((y - z), (t - x), x);
}
function code(x, y, z, t) return fma(Float64(y - z), Float64(t - x), x) end
code[x_, y_, z_, t_] := N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y - z, t - x, x\right)
\end{array}
Initial program 100.0%
+-commutative100.0%
fma-define100.0%
Simplified100.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))) (t_2 (- x (* z t))))
(if (<= y -7.2e-8)
t_1
(if (<= y -2.9e-296)
t_2
(if (<= y 1.35e-151)
(+ x (* z x))
(if (or (<= y 3.8e-11) (and (not (<= y 3e+56)) (<= y 3.3e+69)))
t_2
t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double t_2 = x - (z * t);
double tmp;
if (y <= -7.2e-8) {
tmp = t_1;
} else if (y <= -2.9e-296) {
tmp = t_2;
} else if (y <= 1.35e-151) {
tmp = x + (z * x);
} else if ((y <= 3.8e-11) || (!(y <= 3e+56) && (y <= 3.3e+69))) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = y * (t - x)
t_2 = x - (z * t)
if (y <= (-7.2d-8)) then
tmp = t_1
else if (y <= (-2.9d-296)) then
tmp = t_2
else if (y <= 1.35d-151) then
tmp = x + (z * x)
else if ((y <= 3.8d-11) .or. (.not. (y <= 3d+56)) .and. (y <= 3.3d+69)) then
tmp = t_2
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 = y * (t - x);
double t_2 = x - (z * t);
double tmp;
if (y <= -7.2e-8) {
tmp = t_1;
} else if (y <= -2.9e-296) {
tmp = t_2;
} else if (y <= 1.35e-151) {
tmp = x + (z * x);
} else if ((y <= 3.8e-11) || (!(y <= 3e+56) && (y <= 3.3e+69))) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) t_2 = x - (z * t) tmp = 0 if y <= -7.2e-8: tmp = t_1 elif y <= -2.9e-296: tmp = t_2 elif y <= 1.35e-151: tmp = x + (z * x) elif (y <= 3.8e-11) or (not (y <= 3e+56) and (y <= 3.3e+69)): tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) t_2 = Float64(x - Float64(z * t)) tmp = 0.0 if (y <= -7.2e-8) tmp = t_1; elseif (y <= -2.9e-296) tmp = t_2; elseif (y <= 1.35e-151) tmp = Float64(x + Float64(z * x)); elseif ((y <= 3.8e-11) || (!(y <= 3e+56) && (y <= 3.3e+69))) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t - x); t_2 = x - (z * t); tmp = 0.0; if (y <= -7.2e-8) tmp = t_1; elseif (y <= -2.9e-296) tmp = t_2; elseif (y <= 1.35e-151) tmp = x + (z * x); elseif ((y <= 3.8e-11) || (~((y <= 3e+56)) && (y <= 3.3e+69))) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e-8], t$95$1, If[LessEqual[y, -2.9e-296], t$95$2, If[LessEqual[y, 1.35e-151], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 3.8e-11], And[N[Not[LessEqual[y, 3e+56]], $MachinePrecision], LessEqual[y, 3.3e+69]]], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
t_2 := x - z \cdot t\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-296}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-151}:\\
\;\;\;\;x + z \cdot x\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-11} \lor \neg \left(y \leq 3 \cdot 10^{+56}\right) \land y \leq 3.3 \cdot 10^{+69}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.19999999999999962e-8 or 3.7999999999999998e-11 < y < 3.00000000000000006e56 or 3.2999999999999999e69 < y Initial program 100.0%
Taylor expanded in y around inf 76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in x around 0 74.9%
Taylor expanded in y around inf 75.3%
mul-1-neg75.3%
sub-neg75.3%
Simplified75.3%
if -7.19999999999999962e-8 < y < -2.89999999999999983e-296 or 1.35000000000000004e-151 < y < 3.7999999999999998e-11 or 3.00000000000000006e56 < y < 3.2999999999999999e69Initial program 100.0%
Taylor expanded in y around 0 91.9%
mul-1-neg91.9%
unsub-neg91.9%
Simplified91.9%
Taylor expanded in t around inf 69.8%
if -2.89999999999999983e-296 < y < 1.35000000000000004e-151Initial program 100.0%
Taylor expanded in y around 0 96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in t around 0 82.6%
mul-1-neg82.6%
*-commutative82.6%
distribute-rgt-neg-in82.6%
Simplified82.6%
sub-neg82.6%
+-commutative82.6%
distribute-rgt-neg-out82.6%
remove-double-neg82.6%
*-commutative82.6%
Applied egg-rr82.6%
Final simplification73.9%
(FPCore (x y z t)
:precision binary64
(if (<= z -2.55e+92)
(* z x)
(if (<= z -4.2e-38)
(* y t)
(if (<= z -2.55e-139)
x
(if (<= z -2.9e-168)
(* y t)
(if (<= z 3.05e-55) x (if (<= z 1.7e+65) (* y t) (* z x))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.55e+92) {
tmp = z * x;
} else if (z <= -4.2e-38) {
tmp = y * t;
} else if (z <= -2.55e-139) {
tmp = x;
} else if (z <= -2.9e-168) {
tmp = y * t;
} else if (z <= 3.05e-55) {
tmp = x;
} else if (z <= 1.7e+65) {
tmp = y * t;
} 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 <= (-2.55d+92)) then
tmp = z * x
else if (z <= (-4.2d-38)) then
tmp = y * t
else if (z <= (-2.55d-139)) then
tmp = x
else if (z <= (-2.9d-168)) then
tmp = y * t
else if (z <= 3.05d-55) then
tmp = x
else if (z <= 1.7d+65) then
tmp = y * t
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 <= -2.55e+92) {
tmp = z * x;
} else if (z <= -4.2e-38) {
tmp = y * t;
} else if (z <= -2.55e-139) {
tmp = x;
} else if (z <= -2.9e-168) {
tmp = y * t;
} else if (z <= 3.05e-55) {
tmp = x;
} else if (z <= 1.7e+65) {
tmp = y * t;
} else {
tmp = z * x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.55e+92: tmp = z * x elif z <= -4.2e-38: tmp = y * t elif z <= -2.55e-139: tmp = x elif z <= -2.9e-168: tmp = y * t elif z <= 3.05e-55: tmp = x elif z <= 1.7e+65: tmp = y * t else: tmp = z * x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.55e+92) tmp = Float64(z * x); elseif (z <= -4.2e-38) tmp = Float64(y * t); elseif (z <= -2.55e-139) tmp = x; elseif (z <= -2.9e-168) tmp = Float64(y * t); elseif (z <= 3.05e-55) tmp = x; elseif (z <= 1.7e+65) tmp = Float64(y * t); else tmp = Float64(z * x); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.55e+92) tmp = z * x; elseif (z <= -4.2e-38) tmp = y * t; elseif (z <= -2.55e-139) tmp = x; elseif (z <= -2.9e-168) tmp = y * t; elseif (z <= 3.05e-55) tmp = x; elseif (z <= 1.7e+65) tmp = y * t; else tmp = z * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.55e+92], N[(z * x), $MachinePrecision], If[LessEqual[z, -4.2e-38], N[(y * t), $MachinePrecision], If[LessEqual[z, -2.55e-139], x, If[LessEqual[z, -2.9e-168], N[(y * t), $MachinePrecision], If[LessEqual[z, 3.05e-55], x, If[LessEqual[z, 1.7e+65], N[(y * t), $MachinePrecision], N[(z * x), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.55 \cdot 10^{+92}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-38}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq -2.55 \cdot 10^{-139}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-168}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{-55}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+65}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;z \cdot x\\
\end{array}
\end{array}
if z < -2.5500000000000001e92 or 1.7e65 < z Initial program 100.0%
Taylor expanded in y around 0 86.6%
mul-1-neg86.6%
unsub-neg86.6%
Simplified86.6%
Taylor expanded in t around 0 47.3%
mul-1-neg47.3%
*-commutative47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
Taylor expanded in z around inf 47.3%
if -2.5500000000000001e92 < z < -4.20000000000000026e-38 or -2.55000000000000018e-139 < z < -2.8999999999999998e-168 or 3.0500000000000001e-55 < z < 1.7e65Initial program 99.9%
Taylor expanded in y around inf 77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in x around 0 75.5%
Taylor expanded in t around inf 46.3%
*-commutative46.3%
Simplified46.3%
if -4.20000000000000026e-38 < z < -2.55000000000000018e-139 or -2.8999999999999998e-168 < z < 3.0500000000000001e-55Initial program 100.0%
Taylor expanded in t around inf 77.2%
Taylor expanded in x around inf 46.8%
Final simplification46.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- y))))
(if (<= y -2.5e+197)
t_1
(if (<= y -3.15e+119)
(* y t)
(if (<= y 13.8)
(* x (+ z 1.0))
(if (or (<= y 1.9e+119) (not (<= y 4.3e+257))) t_1 (* y t)))))))
double code(double x, double y, double z, double t) {
double t_1 = x * -y;
double tmp;
if (y <= -2.5e+197) {
tmp = t_1;
} else if (y <= -3.15e+119) {
tmp = y * t;
} else if (y <= 13.8) {
tmp = x * (z + 1.0);
} else if ((y <= 1.9e+119) || !(y <= 4.3e+257)) {
tmp = t_1;
} else {
tmp = y * 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) :: t_1
real(8) :: tmp
t_1 = x * -y
if (y <= (-2.5d+197)) then
tmp = t_1
else if (y <= (-3.15d+119)) then
tmp = y * t
else if (y <= 13.8d0) then
tmp = x * (z + 1.0d0)
else if ((y <= 1.9d+119) .or. (.not. (y <= 4.3d+257))) then
tmp = t_1
else
tmp = y * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * -y;
double tmp;
if (y <= -2.5e+197) {
tmp = t_1;
} else if (y <= -3.15e+119) {
tmp = y * t;
} else if (y <= 13.8) {
tmp = x * (z + 1.0);
} else if ((y <= 1.9e+119) || !(y <= 4.3e+257)) {
tmp = t_1;
} else {
tmp = y * t;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * -y tmp = 0 if y <= -2.5e+197: tmp = t_1 elif y <= -3.15e+119: tmp = y * t elif y <= 13.8: tmp = x * (z + 1.0) elif (y <= 1.9e+119) or not (y <= 4.3e+257): tmp = t_1 else: tmp = y * t return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(-y)) tmp = 0.0 if (y <= -2.5e+197) tmp = t_1; elseif (y <= -3.15e+119) tmp = Float64(y * t); elseif (y <= 13.8) tmp = Float64(x * Float64(z + 1.0)); elseif ((y <= 1.9e+119) || !(y <= 4.3e+257)) tmp = t_1; else tmp = Float64(y * t); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * -y; tmp = 0.0; if (y <= -2.5e+197) tmp = t_1; elseif (y <= -3.15e+119) tmp = y * t; elseif (y <= 13.8) tmp = x * (z + 1.0); elseif ((y <= 1.9e+119) || ~((y <= 4.3e+257))) tmp = t_1; else tmp = y * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * (-y)), $MachinePrecision]}, If[LessEqual[y, -2.5e+197], t$95$1, If[LessEqual[y, -3.15e+119], N[(y * t), $MachinePrecision], If[LessEqual[y, 13.8], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 1.9e+119], N[Not[LessEqual[y, 4.3e+257]], $MachinePrecision]], t$95$1, N[(y * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(-y\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+197}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.15 \cdot 10^{+119}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq 13.8:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+119} \lor \neg \left(y \leq 4.3 \cdot 10^{+257}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot t\\
\end{array}
\end{array}
if y < -2.50000000000000004e197 or 13.800000000000001 < y < 1.89999999999999995e119 or 4.2999999999999998e257 < y Initial program 99.9%
Taylor expanded in x around inf 67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
Taylor expanded in z around 0 58.3%
Taylor expanded in y around inf 56.5%
associate-*r*56.5%
neg-mul-156.5%
*-commutative56.5%
Simplified56.5%
if -2.50000000000000004e197 < y < -3.1499999999999999e119 or 1.89999999999999995e119 < y < 4.2999999999999998e257Initial program 99.9%
Taylor expanded in y around inf 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in x around 0 79.9%
Taylor expanded in t around inf 61.7%
*-commutative61.7%
Simplified61.7%
if -3.1499999999999999e119 < y < 13.800000000000001Initial program 100.0%
Taylor expanded in x around inf 64.2%
mul-1-neg64.2%
unsub-neg64.2%
Simplified64.2%
Taylor expanded in y around 0 59.9%
+-commutative59.9%
Simplified59.9%
Final simplification59.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- y))))
(if (<= y -9.5e+196)
t_1
(if (<= y -3.15e+119)
(* y t)
(if (<= y 6.8)
(* x (+ z 1.0))
(if (<= y 4.5e+118)
(* x (- 1.0 y))
(if (<= y 1.2e+263) (* y t) t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = x * -y;
double tmp;
if (y <= -9.5e+196) {
tmp = t_1;
} else if (y <= -3.15e+119) {
tmp = y * t;
} else if (y <= 6.8) {
tmp = x * (z + 1.0);
} else if (y <= 4.5e+118) {
tmp = x * (1.0 - y);
} else if (y <= 1.2e+263) {
tmp = y * t;
} 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 * -y
if (y <= (-9.5d+196)) then
tmp = t_1
else if (y <= (-3.15d+119)) then
tmp = y * t
else if (y <= 6.8d0) then
tmp = x * (z + 1.0d0)
else if (y <= 4.5d+118) then
tmp = x * (1.0d0 - y)
else if (y <= 1.2d+263) then
tmp = y * t
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 * -y;
double tmp;
if (y <= -9.5e+196) {
tmp = t_1;
} else if (y <= -3.15e+119) {
tmp = y * t;
} else if (y <= 6.8) {
tmp = x * (z + 1.0);
} else if (y <= 4.5e+118) {
tmp = x * (1.0 - y);
} else if (y <= 1.2e+263) {
tmp = y * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * -y tmp = 0 if y <= -9.5e+196: tmp = t_1 elif y <= -3.15e+119: tmp = y * t elif y <= 6.8: tmp = x * (z + 1.0) elif y <= 4.5e+118: tmp = x * (1.0 - y) elif y <= 1.2e+263: tmp = y * t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(-y)) tmp = 0.0 if (y <= -9.5e+196) tmp = t_1; elseif (y <= -3.15e+119) tmp = Float64(y * t); elseif (y <= 6.8) tmp = Float64(x * Float64(z + 1.0)); elseif (y <= 4.5e+118) tmp = Float64(x * Float64(1.0 - y)); elseif (y <= 1.2e+263) tmp = Float64(y * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * -y; tmp = 0.0; if (y <= -9.5e+196) tmp = t_1; elseif (y <= -3.15e+119) tmp = y * t; elseif (y <= 6.8) tmp = x * (z + 1.0); elseif (y <= 4.5e+118) tmp = x * (1.0 - y); elseif (y <= 1.2e+263) tmp = y * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * (-y)), $MachinePrecision]}, If[LessEqual[y, -9.5e+196], t$95$1, If[LessEqual[y, -3.15e+119], N[(y * t), $MachinePrecision], If[LessEqual[y, 6.8], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+118], N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+263], N[(y * t), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(-y\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+196}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.15 \cdot 10^{+119}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq 6.8:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+118}:\\
\;\;\;\;x \cdot \left(1 - y\right)\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+263}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000004e196 or 1.2e263 < y Initial program 100.0%
Taylor expanded in x around inf 67.9%
mul-1-neg67.9%
unsub-neg67.9%
Simplified67.9%
Taylor expanded in z around 0 63.8%
Taylor expanded in y around inf 63.8%
associate-*r*63.8%
neg-mul-163.8%
*-commutative63.8%
Simplified63.8%
if -9.5000000000000004e196 < y < -3.1499999999999999e119 or 4.50000000000000002e118 < y < 1.2e263Initial program 99.9%
Taylor expanded in y around inf 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in x around 0 79.9%
Taylor expanded in t around inf 61.7%
*-commutative61.7%
Simplified61.7%
if -3.1499999999999999e119 < y < 6.79999999999999982Initial program 100.0%
Taylor expanded in x around inf 64.2%
mul-1-neg64.2%
unsub-neg64.2%
Simplified64.2%
Taylor expanded in y around 0 59.9%
+-commutative59.9%
Simplified59.9%
if 6.79999999999999982 < y < 4.50000000000000002e118Initial program 99.9%
Taylor expanded in x around inf 66.8%
mul-1-neg66.8%
unsub-neg66.8%
Simplified66.8%
Taylor expanded in z around 0 49.6%
Final simplification59.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))) (t_2 (* x (+ (- z y) 1.0))))
(if (<= y -3.15e+119)
t_1
(if (<= y -0.16)
t_2
(if (<= y -1.42e-305) (- x (* z t)) (if (<= y 2.8e+95) t_2 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double t_2 = x * ((z - y) + 1.0);
double tmp;
if (y <= -3.15e+119) {
tmp = t_1;
} else if (y <= -0.16) {
tmp = t_2;
} else if (y <= -1.42e-305) {
tmp = x - (z * t);
} else if (y <= 2.8e+95) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = y * (t - x)
t_2 = x * ((z - y) + 1.0d0)
if (y <= (-3.15d+119)) then
tmp = t_1
else if (y <= (-0.16d0)) then
tmp = t_2
else if (y <= (-1.42d-305)) then
tmp = x - (z * t)
else if (y <= 2.8d+95) then
tmp = t_2
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 = y * (t - x);
double t_2 = x * ((z - y) + 1.0);
double tmp;
if (y <= -3.15e+119) {
tmp = t_1;
} else if (y <= -0.16) {
tmp = t_2;
} else if (y <= -1.42e-305) {
tmp = x - (z * t);
} else if (y <= 2.8e+95) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) t_2 = x * ((z - y) + 1.0) tmp = 0 if y <= -3.15e+119: tmp = t_1 elif y <= -0.16: tmp = t_2 elif y <= -1.42e-305: tmp = x - (z * t) elif y <= 2.8e+95: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) t_2 = Float64(x * Float64(Float64(z - y) + 1.0)) tmp = 0.0 if (y <= -3.15e+119) tmp = t_1; elseif (y <= -0.16) tmp = t_2; elseif (y <= -1.42e-305) tmp = Float64(x - Float64(z * t)); elseif (y <= 2.8e+95) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t - x); t_2 = x * ((z - y) + 1.0); tmp = 0.0; if (y <= -3.15e+119) tmp = t_1; elseif (y <= -0.16) tmp = t_2; elseif (y <= -1.42e-305) tmp = x - (z * t); elseif (y <= 2.8e+95) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(z - y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.15e+119], t$95$1, If[LessEqual[y, -0.16], t$95$2, If[LessEqual[y, -1.42e-305], N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+95], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
t_2 := x \cdot \left(\left(z - y\right) + 1\right)\\
\mathbf{if}\;y \leq -3.15 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -0.16:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.42 \cdot 10^{-305}:\\
\;\;\;\;x - z \cdot t\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+95}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1499999999999999e119 or 2.7999999999999998e95 < y Initial program 100.0%
Taylor expanded in y around inf 87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in x around 0 85.4%
Taylor expanded in y around inf 87.7%
mul-1-neg87.7%
sub-neg87.7%
Simplified87.7%
if -3.1499999999999999e119 < y < -0.160000000000000003 or -1.42000000000000002e-305 < y < 2.7999999999999998e95Initial program 100.0%
Taylor expanded in x around inf 66.1%
mul-1-neg66.1%
unsub-neg66.1%
Simplified66.1%
if -0.160000000000000003 < y < -1.42000000000000002e-305Initial program 100.0%
Taylor expanded in y around 0 89.3%
mul-1-neg89.3%
unsub-neg89.3%
Simplified89.3%
Taylor expanded in t around inf 70.5%
Final simplification74.3%
(FPCore (x y z t) :precision binary64 (if (or (<= z -95.0) (not (<= z 3.4e+62))) (- x (* z (- t x))) (+ x (* y (- t x)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -95.0) || !(z <= 3.4e+62)) {
tmp = x - (z * (t - x));
} else {
tmp = x + (y * (t - 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 <= (-95.0d0)) .or. (.not. (z <= 3.4d+62))) then
tmp = x - (z * (t - x))
else
tmp = x + (y * (t - x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -95.0) || !(z <= 3.4e+62)) {
tmp = x - (z * (t - x));
} else {
tmp = x + (y * (t - x));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -95.0) or not (z <= 3.4e+62): tmp = x - (z * (t - x)) else: tmp = x + (y * (t - x)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -95.0) || !(z <= 3.4e+62)) tmp = Float64(x - Float64(z * Float64(t - x))); else tmp = Float64(x + Float64(y * Float64(t - x))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -95.0) || ~((z <= 3.4e+62))) tmp = x - (z * (t - x)); else tmp = x + (y * (t - x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -95.0], N[Not[LessEqual[z, 3.4e+62]], $MachinePrecision]], N[(x - N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -95 \lor \neg \left(z \leq 3.4 \cdot 10^{+62}\right):\\
\;\;\;\;x - z \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(t - x\right)\\
\end{array}
\end{array}
if z < -95 or 3.40000000000000014e62 < z Initial program 100.0%
Taylor expanded in y around 0 83.2%
mul-1-neg83.2%
unsub-neg83.2%
Simplified83.2%
if -95 < z < 3.40000000000000014e62Initial program 100.0%
Taylor expanded in y around inf 90.6%
*-commutative90.6%
Simplified90.6%
Final simplification87.2%
(FPCore (x y z t) :precision binary64 (if (or (<= t -1.05e+33) (not (<= t 2.9e+78))) (- x (* t (- z y))) (* x (+ (- z y) 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.05e+33) || !(t <= 2.9e+78)) {
tmp = x - (t * (z - y));
} else {
tmp = x * ((z - y) + 1.0);
}
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.05d+33)) .or. (.not. (t <= 2.9d+78))) then
tmp = x - (t * (z - y))
else
tmp = x * ((z - y) + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -1.05e+33) || !(t <= 2.9e+78)) {
tmp = x - (t * (z - y));
} else {
tmp = x * ((z - y) + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -1.05e+33) or not (t <= 2.9e+78): tmp = x - (t * (z - y)) else: tmp = x * ((z - y) + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -1.05e+33) || !(t <= 2.9e+78)) tmp = Float64(x - Float64(t * Float64(z - y))); else tmp = Float64(x * Float64(Float64(z - y) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -1.05e+33) || ~((t <= 2.9e+78))) tmp = x - (t * (z - y)); else tmp = x * ((z - y) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -1.05e+33], N[Not[LessEqual[t, 2.9e+78]], $MachinePrecision]], N[(x - N[(t * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(z - y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+33} \lor \neg \left(t \leq 2.9 \cdot 10^{+78}\right):\\
\;\;\;\;x - t \cdot \left(z - y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(z - y\right) + 1\right)\\
\end{array}
\end{array}
if t < -1.05e33 or 2.90000000000000017e78 < t Initial program 100.0%
Taylor expanded in t around inf 88.1%
if -1.05e33 < t < 2.90000000000000017e78Initial program 100.0%
Taylor expanded in x around inf 81.3%
mul-1-neg81.3%
unsub-neg81.3%
Simplified81.3%
Final simplification84.1%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.2e-11) (not (<= y 1.46))) (* y (- t x)) (+ x (* z x))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.2e-11) || !(y <= 1.46)) {
tmp = y * (t - x);
} else {
tmp = x + (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 ((y <= (-1.2d-11)) .or. (.not. (y <= 1.46d0))) then
tmp = y * (t - x)
else
tmp = x + (z * x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.2e-11) || !(y <= 1.46)) {
tmp = y * (t - x);
} else {
tmp = x + (z * x);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.2e-11) or not (y <= 1.46): tmp = y * (t - x) else: tmp = x + (z * x) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.2e-11) || !(y <= 1.46)) tmp = Float64(y * Float64(t - x)); else tmp = Float64(x + Float64(z * x)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.2e-11) || ~((y <= 1.46))) tmp = y * (t - x); else tmp = x + (z * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.2e-11], N[Not[LessEqual[y, 1.46]], $MachinePrecision]], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-11} \lor \neg \left(y \leq 1.46\right):\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot x\\
\end{array}
\end{array}
if y < -1.2000000000000001e-11 or 1.46 < y Initial program 100.0%
Taylor expanded in y around inf 73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in x around 0 71.6%
Taylor expanded in y around inf 72.0%
mul-1-neg72.0%
sub-neg72.0%
Simplified72.0%
if -1.2000000000000001e-11 < y < 1.46Initial program 100.0%
Taylor expanded in y around 0 92.6%
mul-1-neg92.6%
unsub-neg92.6%
Simplified92.6%
Taylor expanded in t around 0 66.7%
mul-1-neg66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
Simplified66.7%
sub-neg66.7%
+-commutative66.7%
distribute-rgt-neg-out66.7%
remove-double-neg66.7%
*-commutative66.7%
Applied egg-rr66.7%
Final simplification69.4%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.2e-11) (not (<= y 7.4))) (* y (- t x)) (* x (+ z 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.2e-11) || !(y <= 7.4)) {
tmp = y * (t - x);
} else {
tmp = x * (z + 1.0);
}
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 <= (-1.2d-11)) .or. (.not. (y <= 7.4d0))) then
tmp = y * (t - x)
else
tmp = x * (z + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.2e-11) || !(y <= 7.4)) {
tmp = y * (t - x);
} else {
tmp = x * (z + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.2e-11) or not (y <= 7.4): tmp = y * (t - x) else: tmp = x * (z + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.2e-11) || !(y <= 7.4)) tmp = Float64(y * Float64(t - x)); else tmp = Float64(x * Float64(z + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.2e-11) || ~((y <= 7.4))) tmp = y * (t - x); else tmp = x * (z + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.2e-11], N[Not[LessEqual[y, 7.4]], $MachinePrecision]], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-11} \lor \neg \left(y \leq 7.4\right):\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\end{array}
\end{array}
if y < -1.2000000000000001e-11 or 7.4000000000000004 < y Initial program 100.0%
Taylor expanded in y around inf 73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in x around 0 71.6%
Taylor expanded in y around inf 72.0%
mul-1-neg72.0%
sub-neg72.0%
Simplified72.0%
if -1.2000000000000001e-11 < y < 7.4000000000000004Initial program 100.0%
Taylor expanded in x around inf 66.8%
mul-1-neg66.8%
unsub-neg66.8%
Simplified66.8%
Taylor expanded in y around 0 66.7%
+-commutative66.7%
Simplified66.7%
Final simplification69.4%
(FPCore (x y z t) :precision binary64 (if (or (<= z -118000000000.0) (not (<= z 86000000000000.0))) (* z x) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -118000000000.0) || !(z <= 86000000000000.0)) {
tmp = z * x;
} 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 ((z <= (-118000000000.0d0)) .or. (.not. (z <= 86000000000000.0d0))) then
tmp = z * x
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -118000000000.0) || !(z <= 86000000000000.0)) {
tmp = z * x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -118000000000.0) or not (z <= 86000000000000.0): tmp = z * x else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -118000000000.0) || !(z <= 86000000000000.0)) tmp = Float64(z * x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -118000000000.0) || ~((z <= 86000000000000.0))) tmp = z * x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -118000000000.0], N[Not[LessEqual[z, 86000000000000.0]], $MachinePrecision]], N[(z * x), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -118000000000 \lor \neg \left(z \leq 86000000000000\right):\\
\;\;\;\;z \cdot x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.18e11 or 8.6e13 < z Initial program 100.0%
Taylor expanded in y around 0 80.6%
mul-1-neg80.6%
unsub-neg80.6%
Simplified80.6%
Taylor expanded in t around 0 44.1%
mul-1-neg44.1%
*-commutative44.1%
distribute-rgt-neg-in44.1%
Simplified44.1%
Taylor expanded in z around inf 44.1%
if -1.18e11 < z < 8.6e13Initial program 100.0%
Taylor expanded in t around inf 74.9%
Taylor expanded in x around inf 38.7%
Final simplification41.2%
(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}
Initial program 100.0%
(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 100.0%
Taylor expanded in t around inf 63.0%
Taylor expanded in x around inf 21.9%
(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 2024101
(FPCore (x y z t)
:name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
:precision binary64
:alt
(+ x (+ (* t (- y z)) (* (- x) (- y z))))
(+ x (* (- y z) (- t x))))