
(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 16 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%
Final simplification100.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 y))) (t_2 (* (- y z) t)))
(if (<= x -3.4e+123)
t_1
(if (<= x -1e+21)
t_2
(if (<= x -1.45e-19)
t_1
(if (<= x 5.2e-59)
t_2
(if (<= x 3.1e+29)
t_1
(if (<= x 7.6e+57) t_2 (if (<= x 1.3e+87) (* z x) t_1)))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double t_2 = (y - z) * t;
double tmp;
if (x <= -3.4e+123) {
tmp = t_1;
} else if (x <= -1e+21) {
tmp = t_2;
} else if (x <= -1.45e-19) {
tmp = t_1;
} else if (x <= 5.2e-59) {
tmp = t_2;
} else if (x <= 3.1e+29) {
tmp = t_1;
} else if (x <= 7.6e+57) {
tmp = t_2;
} else if (x <= 1.3e+87) {
tmp = z * x;
} 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 = x * (1.0d0 - y)
t_2 = (y - z) * t
if (x <= (-3.4d+123)) then
tmp = t_1
else if (x <= (-1d+21)) then
tmp = t_2
else if (x <= (-1.45d-19)) then
tmp = t_1
else if (x <= 5.2d-59) then
tmp = t_2
else if (x <= 3.1d+29) then
tmp = t_1
else if (x <= 7.6d+57) then
tmp = t_2
else if (x <= 1.3d+87) then
tmp = z * x
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 * (1.0 - y);
double t_2 = (y - z) * t;
double tmp;
if (x <= -3.4e+123) {
tmp = t_1;
} else if (x <= -1e+21) {
tmp = t_2;
} else if (x <= -1.45e-19) {
tmp = t_1;
} else if (x <= 5.2e-59) {
tmp = t_2;
} else if (x <= 3.1e+29) {
tmp = t_1;
} else if (x <= 7.6e+57) {
tmp = t_2;
} else if (x <= 1.3e+87) {
tmp = z * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - y) t_2 = (y - z) * t tmp = 0 if x <= -3.4e+123: tmp = t_1 elif x <= -1e+21: tmp = t_2 elif x <= -1.45e-19: tmp = t_1 elif x <= 5.2e-59: tmp = t_2 elif x <= 3.1e+29: tmp = t_1 elif x <= 7.6e+57: tmp = t_2 elif x <= 1.3e+87: tmp = z * x else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - y)) t_2 = Float64(Float64(y - z) * t) tmp = 0.0 if (x <= -3.4e+123) tmp = t_1; elseif (x <= -1e+21) tmp = t_2; elseif (x <= -1.45e-19) tmp = t_1; elseif (x <= 5.2e-59) tmp = t_2; elseif (x <= 3.1e+29) tmp = t_1; elseif (x <= 7.6e+57) tmp = t_2; elseif (x <= 1.3e+87) tmp = Float64(z * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - y); t_2 = (y - z) * t; tmp = 0.0; if (x <= -3.4e+123) tmp = t_1; elseif (x <= -1e+21) tmp = t_2; elseif (x <= -1.45e-19) tmp = t_1; elseif (x <= 5.2e-59) tmp = t_2; elseif (x <= 3.1e+29) tmp = t_1; elseif (x <= 7.6e+57) tmp = t_2; elseif (x <= 1.3e+87) tmp = z * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[x, -3.4e+123], t$95$1, If[LessEqual[x, -1e+21], t$95$2, If[LessEqual[x, -1.45e-19], t$95$1, If[LessEqual[x, 5.2e-59], t$95$2, If[LessEqual[x, 3.1e+29], t$95$1, If[LessEqual[x, 7.6e+57], t$95$2, If[LessEqual[x, 1.3e+87], N[(z * x), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y\right)\\
t_2 := \left(y - z\right) \cdot t\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1 \cdot 10^{+21}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+87}:\\
\;\;\;\;z \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.40000000000000001e123 or -1e21 < x < -1.45e-19 or 5.19999999999999996e-59 < x < 3.0999999999999999e29 or 1.29999999999999999e87 < x Initial program 100.0%
Taylor expanded in t around 0 89.2%
mul-1-neg89.2%
distribute-rgt-neg-in89.2%
neg-sub089.2%
sub-neg89.2%
+-commutative89.2%
associate--r+89.2%
neg-sub089.2%
remove-double-neg89.2%
Simplified89.2%
Taylor expanded in z around 0 75.3%
*-rgt-identity75.3%
mul-1-neg75.3%
distribute-rgt-neg-out75.3%
distribute-lft-in75.3%
unsub-neg75.3%
Simplified75.3%
if -3.40000000000000001e123 < x < -1e21 or -1.45e-19 < x < 5.19999999999999996e-59 or 3.0999999999999999e29 < x < 7.5999999999999997e57Initial program 100.0%
Taylor expanded in t around inf 84.8%
sub-neg84.8%
distribute-rgt-in80.5%
Applied egg-rr80.5%
associate-+r+80.5%
distribute-lft-neg-out80.5%
unsub-neg80.5%
+-commutative80.5%
*-commutative80.5%
Applied egg-rr80.5%
Taylor expanded in t around inf 77.5%
if 7.5999999999999997e57 < x < 1.29999999999999999e87Initial program 99.8%
Taylor expanded in t around 0 87.6%
mul-1-neg87.6%
distribute-rgt-neg-in87.6%
neg-sub087.6%
sub-neg87.6%
+-commutative87.6%
associate--r+87.6%
neg-sub087.6%
remove-double-neg87.6%
Simplified87.6%
Taylor expanded in z around inf 75.4%
*-commutative75.4%
Simplified75.4%
Final simplification76.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* z (- t))))
(if (<= z -6.2e+125)
t_1
(if (<= z -2.1e+60)
(* z x)
(if (<= z -2.8e-76)
t_1
(if (<= z -3.5e-155)
x
(if (<= z -1.65e-267)
(* y t)
(if (<= z 1.95e-174) x (if (<= z 4.7e+46) (* y t) t_1)))))))))
double code(double x, double y, double z, double t) {
double t_1 = z * -t;
double tmp;
if (z <= -6.2e+125) {
tmp = t_1;
} else if (z <= -2.1e+60) {
tmp = z * x;
} else if (z <= -2.8e-76) {
tmp = t_1;
} else if (z <= -3.5e-155) {
tmp = x;
} else if (z <= -1.65e-267) {
tmp = y * t;
} else if (z <= 1.95e-174) {
tmp = x;
} else if (z <= 4.7e+46) {
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 = z * -t
if (z <= (-6.2d+125)) then
tmp = t_1
else if (z <= (-2.1d+60)) then
tmp = z * x
else if (z <= (-2.8d-76)) then
tmp = t_1
else if (z <= (-3.5d-155)) then
tmp = x
else if (z <= (-1.65d-267)) then
tmp = y * t
else if (z <= 1.95d-174) then
tmp = x
else if (z <= 4.7d+46) 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 = z * -t;
double tmp;
if (z <= -6.2e+125) {
tmp = t_1;
} else if (z <= -2.1e+60) {
tmp = z * x;
} else if (z <= -2.8e-76) {
tmp = t_1;
} else if (z <= -3.5e-155) {
tmp = x;
} else if (z <= -1.65e-267) {
tmp = y * t;
} else if (z <= 1.95e-174) {
tmp = x;
} else if (z <= 4.7e+46) {
tmp = y * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = z * -t tmp = 0 if z <= -6.2e+125: tmp = t_1 elif z <= -2.1e+60: tmp = z * x elif z <= -2.8e-76: tmp = t_1 elif z <= -3.5e-155: tmp = x elif z <= -1.65e-267: tmp = y * t elif z <= 1.95e-174: tmp = x elif z <= 4.7e+46: tmp = y * t else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(z * Float64(-t)) tmp = 0.0 if (z <= -6.2e+125) tmp = t_1; elseif (z <= -2.1e+60) tmp = Float64(z * x); elseif (z <= -2.8e-76) tmp = t_1; elseif (z <= -3.5e-155) tmp = x; elseif (z <= -1.65e-267) tmp = Float64(y * t); elseif (z <= 1.95e-174) tmp = x; elseif (z <= 4.7e+46) tmp = Float64(y * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = z * -t; tmp = 0.0; if (z <= -6.2e+125) tmp = t_1; elseif (z <= -2.1e+60) tmp = z * x; elseif (z <= -2.8e-76) tmp = t_1; elseif (z <= -3.5e-155) tmp = x; elseif (z <= -1.65e-267) tmp = y * t; elseif (z <= 1.95e-174) tmp = x; elseif (z <= 4.7e+46) tmp = y * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * (-t)), $MachinePrecision]}, If[LessEqual[z, -6.2e+125], t$95$1, If[LessEqual[z, -2.1e+60], N[(z * x), $MachinePrecision], If[LessEqual[z, -2.8e-76], t$95$1, If[LessEqual[z, -3.5e-155], x, If[LessEqual[z, -1.65e-267], N[(y * t), $MachinePrecision], If[LessEqual[z, 1.95e-174], x, If[LessEqual[z, 4.7e+46], N[(y * t), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(-t\right)\\
\mathbf{if}\;z \leq -6.2 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+60}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-155}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{-267}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-174}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{+46}:\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.2e125 or -2.1000000000000001e60 < z < -2.8000000000000001e-76 or 4.6999999999999996e46 < z Initial program 100.0%
Taylor expanded in t around inf 62.4%
sub-neg62.4%
distribute-rgt-in56.5%
Applied egg-rr56.5%
associate-+r+56.5%
distribute-lft-neg-out56.5%
unsub-neg56.5%
+-commutative56.5%
*-commutative56.5%
Applied egg-rr56.5%
Taylor expanded in z around inf 51.0%
neg-mul-151.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
if -6.2e125 < z < -2.1000000000000001e60Initial program 100.0%
Taylor expanded in t around 0 88.7%
mul-1-neg88.7%
distribute-rgt-neg-in88.7%
neg-sub088.7%
sub-neg88.7%
+-commutative88.7%
associate--r+88.7%
neg-sub088.7%
remove-double-neg88.7%
Simplified88.7%
Taylor expanded in z around inf 52.9%
*-commutative52.9%
Simplified52.9%
if -2.8000000000000001e-76 < z < -3.50000000000000015e-155 or -1.65000000000000002e-267 < z < 1.9499999999999999e-174Initial program 100.0%
Taylor expanded in t around inf 80.7%
Taylor expanded in x around inf 55.2%
if -3.50000000000000015e-155 < z < -1.65000000000000002e-267 or 1.9499999999999999e-174 < z < 4.6999999999999996e46Initial program 100.0%
Taylor expanded in t around inf 71.9%
sub-neg71.9%
distribute-rgt-in71.9%
Applied egg-rr71.9%
associate-+r+71.9%
distribute-lft-neg-out71.9%
unsub-neg71.9%
+-commutative71.9%
*-commutative71.9%
Applied egg-rr71.9%
Taylor expanded in y around inf 43.0%
Final simplification49.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- 1.0 y))) (t_2 (* z (- x t))) (t_3 (* y (- t x))))
(if (<= z -1.2e+25)
t_2
(if (<= z -4.5e-74)
(* (- y z) t)
(if (<= z -1.75e-178)
t_1
(if (<= z -7.2e-269)
t_3
(if (<= z 1.6e-169) t_1 (if (<= z 3.3e+86) t_3 t_2))))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double t_2 = z * (x - t);
double t_3 = y * (t - x);
double tmp;
if (z <= -1.2e+25) {
tmp = t_2;
} else if (z <= -4.5e-74) {
tmp = (y - z) * t;
} else if (z <= -1.75e-178) {
tmp = t_1;
} else if (z <= -7.2e-269) {
tmp = t_3;
} else if (z <= 1.6e-169) {
tmp = t_1;
} else if (z <= 3.3e+86) {
tmp = t_3;
} else {
tmp = t_2;
}
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) :: t_3
real(8) :: tmp
t_1 = x * (1.0d0 - y)
t_2 = z * (x - t)
t_3 = y * (t - x)
if (z <= (-1.2d+25)) then
tmp = t_2
else if (z <= (-4.5d-74)) then
tmp = (y - z) * t
else if (z <= (-1.75d-178)) then
tmp = t_1
else if (z <= (-7.2d-269)) then
tmp = t_3
else if (z <= 1.6d-169) then
tmp = t_1
else if (z <= 3.3d+86) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = x * (1.0 - y);
double t_2 = z * (x - t);
double t_3 = y * (t - x);
double tmp;
if (z <= -1.2e+25) {
tmp = t_2;
} else if (z <= -4.5e-74) {
tmp = (y - z) * t;
} else if (z <= -1.75e-178) {
tmp = t_1;
} else if (z <= -7.2e-269) {
tmp = t_3;
} else if (z <= 1.6e-169) {
tmp = t_1;
} else if (z <= 3.3e+86) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (1.0 - y) t_2 = z * (x - t) t_3 = y * (t - x) tmp = 0 if z <= -1.2e+25: tmp = t_2 elif z <= -4.5e-74: tmp = (y - z) * t elif z <= -1.75e-178: tmp = t_1 elif z <= -7.2e-269: tmp = t_3 elif z <= 1.6e-169: tmp = t_1 elif z <= 3.3e+86: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(1.0 - y)) t_2 = Float64(z * Float64(x - t)) t_3 = Float64(y * Float64(t - x)) tmp = 0.0 if (z <= -1.2e+25) tmp = t_2; elseif (z <= -4.5e-74) tmp = Float64(Float64(y - z) * t); elseif (z <= -1.75e-178) tmp = t_1; elseif (z <= -7.2e-269) tmp = t_3; elseif (z <= 1.6e-169) tmp = t_1; elseif (z <= 3.3e+86) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (1.0 - y); t_2 = z * (x - t); t_3 = y * (t - x); tmp = 0.0; if (z <= -1.2e+25) tmp = t_2; elseif (z <= -4.5e-74) tmp = (y - z) * t; elseif (z <= -1.75e-178) tmp = t_1; elseif (z <= -7.2e-269) tmp = t_3; elseif (z <= 1.6e-169) tmp = t_1; elseif (z <= 3.3e+86) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.2e+25], t$95$2, If[LessEqual[z, -4.5e-74], N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -1.75e-178], t$95$1, If[LessEqual[z, -7.2e-269], t$95$3, If[LessEqual[z, 1.6e-169], t$95$1, If[LessEqual[z, 3.3e+86], t$95$3, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - y\right)\\
t_2 := z \cdot \left(x - t\right)\\
t_3 := y \cdot \left(t - x\right)\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{+25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-74}:\\
\;\;\;\;\left(y - z\right) \cdot t\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-269}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+86}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.19999999999999998e25 or 3.2999999999999999e86 < z Initial program 100.0%
Taylor expanded in y around 0 81.4%
mul-1-neg81.4%
unsub-neg81.4%
Simplified81.4%
Taylor expanded in z around inf 81.4%
if -1.19999999999999998e25 < z < -4.4999999999999999e-74Initial program 99.9%
Taylor expanded in t around inf 85.1%
sub-neg85.1%
distribute-rgt-in85.2%
Applied egg-rr85.2%
associate-+r+85.2%
distribute-lft-neg-out85.2%
unsub-neg85.2%
+-commutative85.2%
*-commutative85.2%
Applied egg-rr85.2%
Taylor expanded in t around inf 74.1%
if -4.4999999999999999e-74 < z < -1.74999999999999992e-178 or -7.19999999999999996e-269 < z < 1.59999999999999997e-169Initial program 99.9%
Taylor expanded in t around 0 78.1%
mul-1-neg78.1%
distribute-rgt-neg-in78.1%
neg-sub078.1%
sub-neg78.1%
+-commutative78.1%
associate--r+78.1%
neg-sub078.1%
remove-double-neg78.1%
Simplified78.1%
Taylor expanded in z around 0 78.1%
*-rgt-identity78.1%
mul-1-neg78.1%
distribute-rgt-neg-out78.1%
distribute-lft-in78.1%
unsub-neg78.1%
Simplified78.1%
if -1.74999999999999992e-178 < z < -7.19999999999999996e-269 or 1.59999999999999997e-169 < z < 3.2999999999999999e86Initial program 100.0%
Taylor expanded in y around inf 82.7%
*-commutative82.7%
Simplified82.7%
*-commutative82.7%
sub-neg82.7%
distribute-lft-in81.3%
Applied egg-rr81.3%
associate-+r+81.3%
distribute-rgt-neg-out81.3%
unsub-neg81.3%
+-commutative81.3%
Applied egg-rr81.3%
Taylor expanded in y around inf 68.6%
Final simplification76.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))) (t_2 (* t (- y z))))
(if (<= y -3.1e+41)
t_1
(if (<= y -3.2e-88)
t_2
(if (<= y 8.5e-140)
(- x (* z t))
(if (<= y 2.7e-62)
(+ x (* z x))
(if (<= y 255000000000.0) t_2 t_1)))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double t_2 = t * (y - z);
double tmp;
if (y <= -3.1e+41) {
tmp = t_1;
} else if (y <= -3.2e-88) {
tmp = t_2;
} else if (y <= 8.5e-140) {
tmp = x - (z * t);
} else if (y <= 2.7e-62) {
tmp = x + (z * x);
} else if (y <= 255000000000.0) {
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 = t * (y - z)
if (y <= (-3.1d+41)) then
tmp = t_1
else if (y <= (-3.2d-88)) then
tmp = t_2
else if (y <= 8.5d-140) then
tmp = x - (z * t)
else if (y <= 2.7d-62) then
tmp = x + (z * x)
else if (y <= 255000000000.0d0) 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 = t * (y - z);
double tmp;
if (y <= -3.1e+41) {
tmp = t_1;
} else if (y <= -3.2e-88) {
tmp = t_2;
} else if (y <= 8.5e-140) {
tmp = x - (z * t);
} else if (y <= 2.7e-62) {
tmp = x + (z * x);
} else if (y <= 255000000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) t_2 = t * (y - z) tmp = 0 if y <= -3.1e+41: tmp = t_1 elif y <= -3.2e-88: tmp = t_2 elif y <= 8.5e-140: tmp = x - (z * t) elif y <= 2.7e-62: tmp = x + (z * x) elif y <= 255000000000.0: 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(t * Float64(y - z)) tmp = 0.0 if (y <= -3.1e+41) tmp = t_1; elseif (y <= -3.2e-88) tmp = t_2; elseif (y <= 8.5e-140) tmp = Float64(x - Float64(z * t)); elseif (y <= 2.7e-62) tmp = Float64(x + Float64(z * x)); elseif (y <= 255000000000.0) 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 = t * (y - z); tmp = 0.0; if (y <= -3.1e+41) tmp = t_1; elseif (y <= -3.2e-88) tmp = t_2; elseif (y <= 8.5e-140) tmp = x - (z * t); elseif (y <= 2.7e-62) tmp = x + (z * x); elseif (y <= 255000000000.0) 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[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+41], t$95$1, If[LessEqual[y, -3.2e-88], t$95$2, If[LessEqual[y, 8.5e-140], N[(x - N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e-62], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 255000000000.0], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
t_2 := t \cdot \left(y - z\right)\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-88}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-140}:\\
\;\;\;\;x - z \cdot t\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-62}:\\
\;\;\;\;x + z \cdot x\\
\mathbf{elif}\;y \leq 255000000000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1e41 or 2.55e11 < y Initial program 100.0%
Taylor expanded in y around inf 81.3%
*-commutative81.3%
Simplified81.3%
*-commutative81.3%
sub-neg81.3%
distribute-lft-in77.2%
Applied egg-rr77.2%
associate-+r+77.2%
distribute-rgt-neg-out77.2%
unsub-neg77.2%
+-commutative77.2%
Applied egg-rr77.2%
Taylor expanded in y around inf 81.2%
if -3.1e41 < y < -3.20000000000000012e-88 or 2.70000000000000019e-62 < y < 2.55e11Initial program 99.9%
Taylor expanded in t around inf 83.6%
sub-neg83.6%
distribute-rgt-in83.6%
Applied egg-rr83.6%
associate-+r+83.6%
distribute-lft-neg-out83.6%
unsub-neg83.6%
+-commutative83.6%
*-commutative83.6%
Applied egg-rr83.6%
Taylor expanded in t around inf 69.9%
if -3.20000000000000012e-88 < y < 8.49999999999999997e-140Initial program 100.0%
Taylor expanded in t around inf 87.7%
Taylor expanded in y around 0 86.0%
mul-1-neg86.0%
unsub-neg86.0%
Simplified86.0%
if 8.49999999999999997e-140 < y < 2.70000000000000019e-62Initial program 100.0%
Taylor expanded in t around 0 81.7%
mul-1-neg81.7%
distribute-rgt-neg-in81.7%
neg-sub081.7%
sub-neg81.7%
+-commutative81.7%
associate--r+81.7%
neg-sub081.7%
remove-double-neg81.7%
Simplified81.7%
Taylor expanded in y around 0 81.7%
Final simplification81.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))) (t_2 (+ x (* t (- y z)))))
(if (<= y -3.1e+41)
t_1
(if (<= y 3.5e-140)
t_2
(if (<= y 1.42e-70)
(+ x (* z x))
(if (<= y 145000000000.0) t_2 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double t_2 = x + (t * (y - z));
double tmp;
if (y <= -3.1e+41) {
tmp = t_1;
} else if (y <= 3.5e-140) {
tmp = t_2;
} else if (y <= 1.42e-70) {
tmp = x + (z * x);
} else if (y <= 145000000000.0) {
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 + (t * (y - z))
if (y <= (-3.1d+41)) then
tmp = t_1
else if (y <= 3.5d-140) then
tmp = t_2
else if (y <= 1.42d-70) then
tmp = x + (z * x)
else if (y <= 145000000000.0d0) 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 + (t * (y - z));
double tmp;
if (y <= -3.1e+41) {
tmp = t_1;
} else if (y <= 3.5e-140) {
tmp = t_2;
} else if (y <= 1.42e-70) {
tmp = x + (z * x);
} else if (y <= 145000000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) t_2 = x + (t * (y - z)) tmp = 0 if y <= -3.1e+41: tmp = t_1 elif y <= 3.5e-140: tmp = t_2 elif y <= 1.42e-70: tmp = x + (z * x) elif y <= 145000000000.0: 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(t * Float64(y - z))) tmp = 0.0 if (y <= -3.1e+41) tmp = t_1; elseif (y <= 3.5e-140) tmp = t_2; elseif (y <= 1.42e-70) tmp = Float64(x + Float64(z * x)); elseif (y <= 145000000000.0) 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 + (t * (y - z)); tmp = 0.0; if (y <= -3.1e+41) tmp = t_1; elseif (y <= 3.5e-140) tmp = t_2; elseif (y <= 1.42e-70) tmp = x + (z * x); elseif (y <= 145000000000.0) 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[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+41], t$95$1, If[LessEqual[y, 3.5e-140], t$95$2, If[LessEqual[y, 1.42e-70], N[(x + N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 145000000000.0], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
t_2 := x + t \cdot \left(y - z\right)\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-140}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.42 \cdot 10^{-70}:\\
\;\;\;\;x + z \cdot x\\
\mathbf{elif}\;y \leq 145000000000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.1e41 or 1.45e11 < y Initial program 100.0%
Taylor expanded in y around inf 81.3%
*-commutative81.3%
Simplified81.3%
*-commutative81.3%
sub-neg81.3%
distribute-lft-in77.2%
Applied egg-rr77.2%
associate-+r+77.2%
distribute-rgt-neg-out77.2%
unsub-neg77.2%
+-commutative77.2%
Applied egg-rr77.2%
Taylor expanded in y around inf 81.2%
if -3.1e41 < y < 3.4999999999999998e-140 or 1.42000000000000002e-70 < y < 1.45e11Initial program 100.0%
Taylor expanded in t around inf 86.7%
if 3.4999999999999998e-140 < y < 1.42000000000000002e-70Initial program 100.0%
Taylor expanded in t around 0 85.1%
mul-1-neg85.1%
distribute-rgt-neg-in85.1%
neg-sub085.1%
sub-neg85.1%
+-commutative85.1%
associate--r+85.1%
neg-sub085.1%
remove-double-neg85.1%
Simplified85.1%
Taylor expanded in y around 0 85.1%
Final simplification84.0%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* z (- x t))))
(if (<= z -3.6e+26)
t_1
(if (<= z -3e-72)
(* t (- y z))
(if (<= z 3.1e-93)
(+ x (* y t))
(if (<= z 3.3e+86) (* y (- t x)) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = z * (x - t);
double tmp;
if (z <= -3.6e+26) {
tmp = t_1;
} else if (z <= -3e-72) {
tmp = t * (y - z);
} else if (z <= 3.1e-93) {
tmp = x + (y * t);
} else if (z <= 3.3e+86) {
tmp = y * (t - x);
} 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 = z * (x - t)
if (z <= (-3.6d+26)) then
tmp = t_1
else if (z <= (-3d-72)) then
tmp = t * (y - z)
else if (z <= 3.1d-93) then
tmp = x + (y * t)
else if (z <= 3.3d+86) then
tmp = y * (t - x)
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 = z * (x - t);
double tmp;
if (z <= -3.6e+26) {
tmp = t_1;
} else if (z <= -3e-72) {
tmp = t * (y - z);
} else if (z <= 3.1e-93) {
tmp = x + (y * t);
} else if (z <= 3.3e+86) {
tmp = y * (t - x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = z * (x - t) tmp = 0 if z <= -3.6e+26: tmp = t_1 elif z <= -3e-72: tmp = t * (y - z) elif z <= 3.1e-93: tmp = x + (y * t) elif z <= 3.3e+86: tmp = y * (t - x) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(z * Float64(x - t)) tmp = 0.0 if (z <= -3.6e+26) tmp = t_1; elseif (z <= -3e-72) tmp = Float64(t * Float64(y - z)); elseif (z <= 3.1e-93) tmp = Float64(x + Float64(y * t)); elseif (z <= 3.3e+86) tmp = Float64(y * Float64(t - x)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = z * (x - t); tmp = 0.0; if (z <= -3.6e+26) tmp = t_1; elseif (z <= -3e-72) tmp = t * (y - z); elseif (z <= 3.1e-93) tmp = x + (y * t); elseif (z <= 3.3e+86) tmp = y * (t - x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.6e+26], t$95$1, If[LessEqual[z, -3e-72], N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-93], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e+86], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x - t\right)\\
\mathbf{if}\;z \leq -3.6 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-72}:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-93}:\\
\;\;\;\;x + y \cdot t\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+86}:\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.60000000000000024e26 or 3.2999999999999999e86 < z Initial program 100.0%
Taylor expanded in y around 0 81.4%
mul-1-neg81.4%
unsub-neg81.4%
Simplified81.4%
Taylor expanded in z around inf 81.4%
if -3.60000000000000024e26 < z < -3e-72Initial program 99.9%
Taylor expanded in t around inf 85.1%
sub-neg85.1%
distribute-rgt-in85.2%
Applied egg-rr85.2%
associate-+r+85.2%
distribute-lft-neg-out85.2%
unsub-neg85.2%
+-commutative85.2%
*-commutative85.2%
Applied egg-rr85.2%
Taylor expanded in t around inf 74.1%
if -3e-72 < z < 3.1e-93Initial program 100.0%
Taylor expanded in t around inf 81.6%
Taylor expanded in y around inf 74.6%
if 3.1e-93 < z < 3.2999999999999999e86Initial program 100.0%
Taylor expanded in y around inf 74.8%
*-commutative74.8%
Simplified74.8%
*-commutative74.8%
sub-neg74.8%
distribute-lft-in72.2%
Applied egg-rr72.2%
associate-+r+72.2%
distribute-rgt-neg-out72.2%
unsub-neg72.2%
+-commutative72.2%
Applied egg-rr72.2%
Taylor expanded in y around inf 66.4%
Final simplification76.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (- y))) (t_2 (* z (- t))))
(if (<= y -1.1e+41)
t_1
(if (<= y -6.5e-52)
t_2
(if (<= y -9e-205) x (if (<= y 270000000000.0) t_2 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = x * -y;
double t_2 = z * -t;
double tmp;
if (y <= -1.1e+41) {
tmp = t_1;
} else if (y <= -6.5e-52) {
tmp = t_2;
} else if (y <= -9e-205) {
tmp = x;
} else if (y <= 270000000000.0) {
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 = x * -y
t_2 = z * -t
if (y <= (-1.1d+41)) then
tmp = t_1
else if (y <= (-6.5d-52)) then
tmp = t_2
else if (y <= (-9d-205)) then
tmp = x
else if (y <= 270000000000.0d0) 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 = x * -y;
double t_2 = z * -t;
double tmp;
if (y <= -1.1e+41) {
tmp = t_1;
} else if (y <= -6.5e-52) {
tmp = t_2;
} else if (y <= -9e-205) {
tmp = x;
} else if (y <= 270000000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * -y t_2 = z * -t tmp = 0 if y <= -1.1e+41: tmp = t_1 elif y <= -6.5e-52: tmp = t_2 elif y <= -9e-205: tmp = x elif y <= 270000000000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(-y)) t_2 = Float64(z * Float64(-t)) tmp = 0.0 if (y <= -1.1e+41) tmp = t_1; elseif (y <= -6.5e-52) tmp = t_2; elseif (y <= -9e-205) tmp = x; elseif (y <= 270000000000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * -y; t_2 = z * -t; tmp = 0.0; if (y <= -1.1e+41) tmp = t_1; elseif (y <= -6.5e-52) tmp = t_2; elseif (y <= -9e-205) tmp = x; elseif (y <= 270000000000.0) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * (-y)), $MachinePrecision]}, Block[{t$95$2 = N[(z * (-t)), $MachinePrecision]}, If[LessEqual[y, -1.1e+41], t$95$1, If[LessEqual[y, -6.5e-52], t$95$2, If[LessEqual[y, -9e-205], x, If[LessEqual[y, 270000000000.0], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(-y\right)\\
t_2 := z \cdot \left(-t\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-52}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-205}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 270000000000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.09999999999999995e41 or 2.7e11 < y Initial program 100.0%
Taylor expanded in t around 0 58.2%
mul-1-neg58.2%
distribute-rgt-neg-in58.2%
neg-sub058.2%
sub-neg58.2%
+-commutative58.2%
associate--r+58.2%
neg-sub058.2%
remove-double-neg58.2%
Simplified58.2%
Taylor expanded in y around inf 50.8%
mul-1-neg50.8%
distribute-lft-neg-out50.8%
*-commutative50.8%
Simplified50.8%
if -1.09999999999999995e41 < y < -6.5e-52 or -8.99999999999999912e-205 < y < 2.7e11Initial program 100.0%
Taylor expanded in t around inf 80.5%
sub-neg80.5%
distribute-rgt-in80.5%
Applied egg-rr80.5%
associate-+r+80.5%
distribute-lft-neg-out80.5%
unsub-neg80.5%
+-commutative80.5%
*-commutative80.5%
Applied egg-rr80.5%
Taylor expanded in z around inf 46.0%
neg-mul-146.0%
distribute-rgt-neg-in46.0%
Simplified46.0%
if -6.5e-52 < y < -8.99999999999999912e-205Initial program 99.9%
Taylor expanded in t around inf 87.7%
Taylor expanded in x around inf 48.9%
Final simplification48.6%
(FPCore (x y z t)
:precision binary64
(if (<= y -7.5e-90)
(* y t)
(if (<= y 1.95e-140)
x
(if (<= y 7e-70) (* z x) (if (<= y 6e-55) x (* y t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7.5e-90) {
tmp = y * t;
} else if (y <= 1.95e-140) {
tmp = x;
} else if (y <= 7e-70) {
tmp = z * x;
} else if (y <= 6e-55) {
tmp = x;
} 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) :: tmp
if (y <= (-7.5d-90)) then
tmp = y * t
else if (y <= 1.95d-140) then
tmp = x
else if (y <= 7d-70) then
tmp = z * x
else if (y <= 6d-55) then
tmp = x
else
tmp = y * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7.5e-90) {
tmp = y * t;
} else if (y <= 1.95e-140) {
tmp = x;
} else if (y <= 7e-70) {
tmp = z * x;
} else if (y <= 6e-55) {
tmp = x;
} else {
tmp = y * t;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -7.5e-90: tmp = y * t elif y <= 1.95e-140: tmp = x elif y <= 7e-70: tmp = z * x elif y <= 6e-55: tmp = x else: tmp = y * t return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -7.5e-90) tmp = Float64(y * t); elseif (y <= 1.95e-140) tmp = x; elseif (y <= 7e-70) tmp = Float64(z * x); elseif (y <= 6e-55) tmp = x; else tmp = Float64(y * t); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -7.5e-90) tmp = y * t; elseif (y <= 1.95e-140) tmp = x; elseif (y <= 7e-70) tmp = z * x; elseif (y <= 6e-55) tmp = x; else tmp = y * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -7.5e-90], N[(y * t), $MachinePrecision], If[LessEqual[y, 1.95e-140], x, If[LessEqual[y, 7e-70], N[(z * x), $MachinePrecision], If[LessEqual[y, 6e-55], x, N[(y * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{-90}:\\
\;\;\;\;y \cdot t\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-140}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-70}:\\
\;\;\;\;z \cdot x\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-55}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot t\\
\end{array}
\end{array}
if y < -7.4999999999999999e-90 or 6.00000000000000033e-55 < y Initial program 100.0%
Taylor expanded in t around inf 57.0%
sub-neg57.0%
distribute-rgt-in52.6%
Applied egg-rr52.6%
associate-+r+52.6%
distribute-lft-neg-out52.6%
unsub-neg52.6%
+-commutative52.6%
*-commutative52.6%
Applied egg-rr52.6%
Taylor expanded in y around inf 37.0%
if -7.4999999999999999e-90 < y < 1.9500000000000001e-140 or 6.99999999999999949e-70 < y < 6.00000000000000033e-55Initial program 100.0%
Taylor expanded in t around inf 88.3%
Taylor expanded in x around inf 43.0%
if 1.9500000000000001e-140 < y < 6.99999999999999949e-70Initial program 100.0%
Taylor expanded in t around 0 79.1%
mul-1-neg79.1%
distribute-rgt-neg-in79.1%
neg-sub079.1%
sub-neg79.1%
+-commutative79.1%
associate--r+79.1%
neg-sub079.1%
remove-double-neg79.1%
Simplified79.1%
Taylor expanded in z around inf 58.7%
*-commutative58.7%
Simplified58.7%
Final simplification40.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* z (- x t))))
(if (<= z -1.15e+26)
t_1
(if (<= z -2.8e-166)
(+ x (* t (- y z)))
(if (<= z 3.3e+86) (+ x (* y (- t x))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = z * (x - t);
double tmp;
if (z <= -1.15e+26) {
tmp = t_1;
} else if (z <= -2.8e-166) {
tmp = x + (t * (y - z));
} else if (z <= 3.3e+86) {
tmp = x + (y * (t - x));
} 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 = z * (x - t)
if (z <= (-1.15d+26)) then
tmp = t_1
else if (z <= (-2.8d-166)) then
tmp = x + (t * (y - z))
else if (z <= 3.3d+86) then
tmp = x + (y * (t - x))
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 = z * (x - t);
double tmp;
if (z <= -1.15e+26) {
tmp = t_1;
} else if (z <= -2.8e-166) {
tmp = x + (t * (y - z));
} else if (z <= 3.3e+86) {
tmp = x + (y * (t - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = z * (x - t) tmp = 0 if z <= -1.15e+26: tmp = t_1 elif z <= -2.8e-166: tmp = x + (t * (y - z)) elif z <= 3.3e+86: tmp = x + (y * (t - x)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(z * Float64(x - t)) tmp = 0.0 if (z <= -1.15e+26) tmp = t_1; elseif (z <= -2.8e-166) tmp = Float64(x + Float64(t * Float64(y - z))); elseif (z <= 3.3e+86) tmp = Float64(x + Float64(y * Float64(t - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = z * (x - t); tmp = 0.0; if (z <= -1.15e+26) tmp = t_1; elseif (z <= -2.8e-166) tmp = x + (t * (y - z)); elseif (z <= 3.3e+86) tmp = x + (y * (t - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+26], t$95$1, If[LessEqual[z, -2.8e-166], N[(x + N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e+86], N[(x + N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x - t\right)\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-166}:\\
\;\;\;\;x + t \cdot \left(y - z\right)\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+86}:\\
\;\;\;\;x + y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.15e26 or 3.2999999999999999e86 < z Initial program 100.0%
Taylor expanded in y around 0 81.4%
mul-1-neg81.4%
unsub-neg81.4%
Simplified81.4%
Taylor expanded in z around inf 81.4%
if -1.15e26 < z < -2.7999999999999999e-166Initial program 99.9%
Taylor expanded in t around inf 88.8%
if -2.7999999999999999e-166 < z < 3.2999999999999999e86Initial program 100.0%
Taylor expanded in y around inf 88.7%
*-commutative88.7%
Simplified88.7%
Final simplification85.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (- t x))))
(if (<= y -3.3e+45)
t_1
(if (<= y -1.2e-126)
(+ x (* t (- y z)))
(if (<= y 155000000000.0) (- x (* z (- t x))) (+ x t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (y <= -3.3e+45) {
tmp = t_1;
} else if (y <= -1.2e-126) {
tmp = x + (t * (y - z));
} else if (y <= 155000000000.0) {
tmp = x - (z * (t - x));
} else {
tmp = x + 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 = y * (t - x)
if (y <= (-3.3d+45)) then
tmp = t_1
else if (y <= (-1.2d-126)) then
tmp = x + (t * (y - z))
else if (y <= 155000000000.0d0) then
tmp = x - (z * (t - x))
else
tmp = x + 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 tmp;
if (y <= -3.3e+45) {
tmp = t_1;
} else if (y <= -1.2e-126) {
tmp = x + (t * (y - z));
} else if (y <= 155000000000.0) {
tmp = x - (z * (t - x));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) tmp = 0 if y <= -3.3e+45: tmp = t_1 elif y <= -1.2e-126: tmp = x + (t * (y - z)) elif y <= 155000000000.0: tmp = x - (z * (t - x)) else: tmp = x + t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) tmp = 0.0 if (y <= -3.3e+45) tmp = t_1; elseif (y <= -1.2e-126) tmp = Float64(x + Float64(t * Float64(y - z))); elseif (y <= 155000000000.0) tmp = Float64(x - Float64(z * Float64(t - x))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t - x); tmp = 0.0; if (y <= -3.3e+45) tmp = t_1; elseif (y <= -1.2e-126) tmp = x + (t * (y - z)); elseif (y <= 155000000000.0) tmp = x - (z * (t - x)); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.3e+45], t$95$1, If[LessEqual[y, -1.2e-126], N[(x + N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 155000000000.0], N[(x - N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-126}:\\
\;\;\;\;x + t \cdot \left(y - z\right)\\
\mathbf{elif}\;y \leq 155000000000:\\
\;\;\;\;x - z \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if y < -3.3000000000000001e45Initial program 100.0%
Taylor expanded in y around inf 81.0%
*-commutative81.0%
Simplified81.0%
*-commutative81.0%
sub-neg81.0%
distribute-lft-in72.5%
Applied egg-rr72.5%
associate-+r+72.5%
distribute-rgt-neg-out72.5%
unsub-neg72.5%
+-commutative72.5%
Applied egg-rr72.5%
Taylor expanded in y around inf 81.0%
if -3.3000000000000001e45 < y < -1.20000000000000003e-126Initial program 99.9%
Taylor expanded in t around inf 87.2%
if -1.20000000000000003e-126 < y < 1.55e11Initial program 100.0%
Taylor expanded in y around 0 95.9%
mul-1-neg95.9%
unsub-neg95.9%
Simplified95.9%
if 1.55e11 < y Initial program 100.0%
Taylor expanded in y around inf 81.7%
*-commutative81.7%
Simplified81.7%
Final simplification88.0%
(FPCore (x y z t) :precision binary64 (if (or (<= t -3.35e-93) (not (<= t 2.5e-107))) (+ x (* t (- y z))) (+ x (* x (- z y)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -3.35e-93) || !(t <= 2.5e-107)) {
tmp = x + (t * (y - z));
} else {
tmp = x + (x * (z - y));
}
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 <= (-3.35d-93)) .or. (.not. (t <= 2.5d-107))) then
tmp = x + (t * (y - z))
else
tmp = x + (x * (z - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -3.35e-93) || !(t <= 2.5e-107)) {
tmp = x + (t * (y - z));
} else {
tmp = x + (x * (z - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -3.35e-93) or not (t <= 2.5e-107): tmp = x + (t * (y - z)) else: tmp = x + (x * (z - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -3.35e-93) || !(t <= 2.5e-107)) tmp = Float64(x + Float64(t * Float64(y - z))); else tmp = Float64(x + Float64(x * Float64(z - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -3.35e-93) || ~((t <= 2.5e-107))) tmp = x + (t * (y - z)); else tmp = x + (x * (z - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -3.35e-93], N[Not[LessEqual[t, 2.5e-107]], $MachinePrecision]], N[(x + N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.35 \cdot 10^{-93} \lor \neg \left(t \leq 2.5 \cdot 10^{-107}\right):\\
\;\;\;\;x + t \cdot \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + x \cdot \left(z - y\right)\\
\end{array}
\end{array}
if t < -3.34999999999999987e-93 or 2.49999999999999985e-107 < t Initial program 100.0%
Taylor expanded in t around inf 83.1%
if -3.34999999999999987e-93 < t < 2.49999999999999985e-107Initial program 100.0%
Taylor expanded in t around 0 83.1%
mul-1-neg83.1%
distribute-rgt-neg-in83.1%
neg-sub083.1%
sub-neg83.1%
+-commutative83.1%
associate--r+83.1%
neg-sub083.1%
remove-double-neg83.1%
Simplified83.1%
Final simplification83.1%
(FPCore (x y z t) :precision binary64 (if (or (<= t -3.35e-90) (not (<= t 3.5e-106))) (* t (- y z)) (* x (- y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -3.35e-90) || !(t <= 3.5e-106)) {
tmp = t * (y - z);
} else {
tmp = x * -y;
}
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 <= (-3.35d-90)) .or. (.not. (t <= 3.5d-106))) then
tmp = t * (y - z)
else
tmp = x * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -3.35e-90) || !(t <= 3.5e-106)) {
tmp = t * (y - z);
} else {
tmp = x * -y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -3.35e-90) or not (t <= 3.5e-106): tmp = t * (y - z) else: tmp = x * -y return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -3.35e-90) || !(t <= 3.5e-106)) tmp = Float64(t * Float64(y - z)); else tmp = Float64(x * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -3.35e-90) || ~((t <= 3.5e-106))) tmp = t * (y - z); else tmp = x * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -3.35e-90], N[Not[LessEqual[t, 3.5e-106]], $MachinePrecision]], N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision], N[(x * (-y)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.35 \cdot 10^{-90} \lor \neg \left(t \leq 3.5 \cdot 10^{-106}\right):\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-y\right)\\
\end{array}
\end{array}
if t < -3.3500000000000002e-90 or 3.5e-106 < t Initial program 100.0%
Taylor expanded in t around inf 83.1%
sub-neg83.1%
distribute-rgt-in78.8%
Applied egg-rr78.8%
associate-+r+78.8%
distribute-lft-neg-out78.8%
unsub-neg78.8%
+-commutative78.8%
*-commutative78.8%
Applied egg-rr78.8%
Taylor expanded in t around inf 68.3%
if -3.3500000000000002e-90 < t < 3.5e-106Initial program 100.0%
Taylor expanded in t around 0 83.1%
mul-1-neg83.1%
distribute-rgt-neg-in83.1%
neg-sub083.1%
sub-neg83.1%
+-commutative83.1%
associate--r+83.1%
neg-sub083.1%
remove-double-neg83.1%
Simplified83.1%
Taylor expanded in y around inf 41.5%
mul-1-neg41.5%
distribute-lft-neg-out41.5%
*-commutative41.5%
Simplified41.5%
Final simplification58.8%
(FPCore (x y z t) :precision binary64 (if (or (<= y -2.6e-88) (not (<= y 1.22e-54))) (* y t) x))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2.6e-88) || !(y <= 1.22e-54)) {
tmp = y * 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 ((y <= (-2.6d-88)) .or. (.not. (y <= 1.22d-54))) then
tmp = y * 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 ((y <= -2.6e-88) || !(y <= 1.22e-54)) {
tmp = y * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -2.6e-88) or not (y <= 1.22e-54): tmp = y * t else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -2.6e-88) || !(y <= 1.22e-54)) tmp = Float64(y * t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -2.6e-88) || ~((y <= 1.22e-54))) tmp = y * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2.6e-88], N[Not[LessEqual[y, 1.22e-54]], $MachinePrecision]], N[(y * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{-88} \lor \neg \left(y \leq 1.22 \cdot 10^{-54}\right):\\
\;\;\;\;y \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.60000000000000014e-88 or 1.22e-54 < y Initial program 100.0%
Taylor expanded in t around inf 57.0%
sub-neg57.0%
distribute-rgt-in52.6%
Applied egg-rr52.6%
associate-+r+52.6%
distribute-lft-neg-out52.6%
unsub-neg52.6%
+-commutative52.6%
*-commutative52.6%
Applied egg-rr52.6%
Taylor expanded in y around inf 37.0%
if -2.60000000000000014e-88 < y < 1.22e-54Initial program 100.0%
Taylor expanded in t around inf 82.0%
Taylor expanded in x around inf 40.2%
Final simplification38.2%
(FPCore (x y z t) :precision binary64 (+ x (* (- t x) (- y z))))
double code(double x, double y, double z, double t) {
return x + ((t - 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 - x) * (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x + ((t - x) * (y - z));
}
def code(x, y, z, t): return x + ((t - x) * (y - z))
function code(x, y, z, t) return Float64(x + Float64(Float64(t - x) * Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x + ((t - x) * (y - z)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(t - x), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(t - x\right) \cdot \left(y - z\right)
\end{array}
Initial program 100.0%
Final simplification100.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 66.7%
Taylor expanded in x around inf 18.8%
Final simplification18.8%
(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 2024073
(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))))