
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ (+ (+ x (* y z)) (* t a)) (* (* z a) b)))) (if (<= t_1 INFINITY) t_1 (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * (t + (z * b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * (t + (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * (t + (z * b)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(z * a) * b)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(t + Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x + (y * z)) + (t * a)) + ((z * a) * b); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * (t + (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(z \cdot a\right) \cdot b\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) < +inf.0Initial program 98.3%
if +inf.0 < (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) Initial program 0.0%
associate-+l+0.0%
+-commutative0.0%
fma-define0.0%
associate-*l*0.0%
*-commutative0.0%
*-commutative0.0%
distribute-rgt-out46.7%
remove-double-neg46.7%
*-commutative46.7%
distribute-lft-neg-out46.7%
sub-neg46.7%
sub-neg46.7%
distribute-lft-neg-out46.7%
*-commutative46.7%
remove-double-neg46.7%
*-commutative46.7%
Simplified46.7%
Taylor expanded in y around 0 93.3%
Taylor expanded in x around 0 93.3%
Final simplification98.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -1.2e+69)
(* t a)
(if (<= a -2.15e-116)
x
(if (<= a 1.35e-219) (* y z) (if (<= a 9.6e-68) x (* a (* z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.2e+69) {
tmp = t * a;
} else if (a <= -2.15e-116) {
tmp = x;
} else if (a <= 1.35e-219) {
tmp = y * z;
} else if (a <= 9.6e-68) {
tmp = x;
} else {
tmp = a * (z * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= (-1.2d+69)) then
tmp = t * a
else if (a <= (-2.15d-116)) then
tmp = x
else if (a <= 1.35d-219) then
tmp = y * z
else if (a <= 9.6d-68) then
tmp = x
else
tmp = a * (z * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.2e+69) {
tmp = t * a;
} else if (a <= -2.15e-116) {
tmp = x;
} else if (a <= 1.35e-219) {
tmp = y * z;
} else if (a <= 9.6e-68) {
tmp = x;
} else {
tmp = a * (z * b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -1.2e+69: tmp = t * a elif a <= -2.15e-116: tmp = x elif a <= 1.35e-219: tmp = y * z elif a <= 9.6e-68: tmp = x else: tmp = a * (z * b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -1.2e+69) tmp = Float64(t * a); elseif (a <= -2.15e-116) tmp = x; elseif (a <= 1.35e-219) tmp = Float64(y * z); elseif (a <= 9.6e-68) tmp = x; else tmp = Float64(a * Float64(z * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -1.2e+69) tmp = t * a; elseif (a <= -2.15e-116) tmp = x; elseif (a <= 1.35e-219) tmp = y * z; elseif (a <= 9.6e-68) tmp = x; else tmp = a * (z * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.2e+69], N[(t * a), $MachinePrecision], If[LessEqual[a, -2.15e-116], x, If[LessEqual[a, 1.35e-219], N[(y * z), $MachinePrecision], If[LessEqual[a, 9.6e-68], x, N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{+69}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;a \leq -2.15 \cdot 10^{-116}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-219}:\\
\;\;\;\;y \cdot z\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{-68}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if a < -1.2000000000000001e69Initial program 85.8%
associate-+l+85.8%
associate-*l*91.1%
Simplified91.1%
Taylor expanded in z around 0 58.5%
Taylor expanded in x around 0 47.6%
if -1.2000000000000001e69 < a < -2.1499999999999999e-116 or 1.35e-219 < a < 9.59999999999999965e-68Initial program 98.4%
associate-+l+98.4%
associate-*l*95.3%
Simplified95.3%
Taylor expanded in z around 0 67.4%
Taylor expanded in x around inf 51.7%
if -2.1499999999999999e-116 < a < 1.35e-219Initial program 99.9%
add-cube-cbrt99.9%
pow399.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 58.4%
*-commutative58.4%
Simplified58.4%
if 9.59999999999999965e-68 < a Initial program 88.5%
Taylor expanded in x around 0 75.5%
add-cube-cbrt88.2%
pow388.2%
*-commutative88.2%
Applied egg-rr75.2%
Taylor expanded in b around inf 50.4%
*-commutative50.4%
Simplified50.4%
Final simplification51.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (+ t (* z b)))))
(if (or (<= y -8.6e-89) (not (<= y 1.4e-33)))
(+ t_1 (* y (+ z (/ x y))))
(+ x t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (t + (z * b));
double tmp;
if ((y <= -8.6e-89) || !(y <= 1.4e-33)) {
tmp = t_1 + (y * (z + (x / y)));
} else {
tmp = x + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (t + (z * b))
if ((y <= (-8.6d-89)) .or. (.not. (y <= 1.4d-33))) then
tmp = t_1 + (y * (z + (x / y)))
else
tmp = x + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (t + (z * b));
double tmp;
if ((y <= -8.6e-89) || !(y <= 1.4e-33)) {
tmp = t_1 + (y * (z + (x / y)));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (t + (z * b)) tmp = 0 if (y <= -8.6e-89) or not (y <= 1.4e-33): tmp = t_1 + (y * (z + (x / y))) else: tmp = x + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(t + Float64(z * b))) tmp = 0.0 if ((y <= -8.6e-89) || !(y <= 1.4e-33)) tmp = Float64(t_1 + Float64(y * Float64(z + Float64(x / y)))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (t + (z * b)); tmp = 0.0; if ((y <= -8.6e-89) || ~((y <= 1.4e-33))) tmp = t_1 + (y * (z + (x / y))); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[y, -8.6e-89], N[Not[LessEqual[y, 1.4e-33]], $MachinePrecision]], N[(t$95$1 + N[(y * N[(z + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t + z \cdot b\right)\\
\mathbf{if}\;y \leq -8.6 \cdot 10^{-89} \lor \neg \left(y \leq 1.4 \cdot 10^{-33}\right):\\
\;\;\;\;t\_1 + y \cdot \left(z + \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if y < -8.59999999999999974e-89 or 1.4e-33 < y Initial program 91.6%
associate-+l+91.6%
+-commutative91.6%
fma-define91.6%
associate-*l*90.3%
*-commutative90.3%
*-commutative90.3%
distribute-rgt-out93.3%
remove-double-neg93.3%
*-commutative93.3%
distribute-lft-neg-out93.3%
sub-neg93.3%
sub-neg93.3%
distribute-lft-neg-out93.3%
*-commutative93.3%
remove-double-neg93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in y around inf 92.8%
if -8.59999999999999974e-89 < y < 1.4e-33Initial program 94.4%
associate-+l+94.4%
+-commutative94.4%
fma-define94.4%
associate-*l*93.4%
*-commutative93.4%
*-commutative93.4%
distribute-rgt-out95.6%
remove-double-neg95.6%
*-commutative95.6%
distribute-lft-neg-out95.6%
sub-neg95.6%
sub-neg95.6%
distribute-lft-neg-out95.6%
*-commutative95.6%
remove-double-neg95.6%
*-commutative95.6%
Simplified95.6%
Taylor expanded in y around 0 95.6%
Final simplification93.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* t a))))
(if (<= a -1e+89)
t_1
(if (<= a 7.8e+68) (+ x (* y z)) (if (<= a 1.4e+95) t_1 (* a (* z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (t * a);
double tmp;
if (a <= -1e+89) {
tmp = t_1;
} else if (a <= 7.8e+68) {
tmp = x + (y * z);
} else if (a <= 1.4e+95) {
tmp = t_1;
} else {
tmp = a * (z * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t * a)
if (a <= (-1d+89)) then
tmp = t_1
else if (a <= 7.8d+68) then
tmp = x + (y * z)
else if (a <= 1.4d+95) then
tmp = t_1
else
tmp = a * (z * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (t * a);
double tmp;
if (a <= -1e+89) {
tmp = t_1;
} else if (a <= 7.8e+68) {
tmp = x + (y * z);
} else if (a <= 1.4e+95) {
tmp = t_1;
} else {
tmp = a * (z * b);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (t * a) tmp = 0 if a <= -1e+89: tmp = t_1 elif a <= 7.8e+68: tmp = x + (y * z) elif a <= 1.4e+95: tmp = t_1 else: tmp = a * (z * b) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(t * a)) tmp = 0.0 if (a <= -1e+89) tmp = t_1; elseif (a <= 7.8e+68) tmp = Float64(x + Float64(y * z)); elseif (a <= 1.4e+95) tmp = t_1; else tmp = Float64(a * Float64(z * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (t * a); tmp = 0.0; if (a <= -1e+89) tmp = t_1; elseif (a <= 7.8e+68) tmp = x + (y * z); elseif (a <= 1.4e+95) tmp = t_1; else tmp = a * (z * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e+89], t$95$1, If[LessEqual[a, 7.8e+68], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+95], t$95$1, N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot a\\
\mathbf{if}\;a \leq -1 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{+68}:\\
\;\;\;\;x + y \cdot z\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if a < -9.99999999999999995e88 or 7.80000000000000037e68 < a < 1.3999999999999999e95Initial program 86.7%
associate-+l+86.7%
associate-*l*91.7%
Simplified91.7%
Taylor expanded in z around 0 66.2%
if -9.99999999999999995e88 < a < 7.80000000000000037e68Initial program 99.2%
add-cube-cbrt99.0%
pow399.0%
*-commutative99.0%
Applied egg-rr99.0%
Taylor expanded in a around 0 74.3%
if 1.3999999999999999e95 < a Initial program 80.8%
Taylor expanded in x around 0 71.6%
add-cube-cbrt80.6%
pow380.6%
*-commutative80.6%
Applied egg-rr71.4%
Taylor expanded in b around inf 61.9%
*-commutative61.9%
Simplified61.9%
Final simplification69.9%
(FPCore (x y z t a b) :precision binary64 (if (<= a 3.8e+125) (+ (+ x (* y z)) (+ (* a (* z b)) (* t a))) (+ x (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 3.8e+125) {
tmp = (x + (y * z)) + ((a * (z * b)) + (t * a));
} else {
tmp = x + (a * (t + (z * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= 3.8d+125) then
tmp = (x + (y * z)) + ((a * (z * b)) + (t * a))
else
tmp = x + (a * (t + (z * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 3.8e+125) {
tmp = (x + (y * z)) + ((a * (z * b)) + (t * a));
} else {
tmp = x + (a * (t + (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 3.8e+125: tmp = (x + (y * z)) + ((a * (z * b)) + (t * a)) else: tmp = x + (a * (t + (z * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 3.8e+125) tmp = Float64(Float64(x + Float64(y * z)) + Float64(Float64(a * Float64(z * b)) + Float64(t * a))); else tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 3.8e+125) tmp = (x + (y * z)) + ((a * (z * b)) + (t * a)); else tmp = x + (a * (t + (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 3.8e+125], N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.8 \cdot 10^{+125}:\\
\;\;\;\;\left(x + y \cdot z\right) + \left(a \cdot \left(z \cdot b\right) + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if a < 3.80000000000000002e125Initial program 95.3%
associate-+l+95.3%
associate-*l*93.4%
Simplified93.4%
if 3.80000000000000002e125 < a Initial program 79.1%
associate-+l+79.1%
+-commutative79.1%
fma-define79.1%
associate-*l*81.3%
*-commutative81.3%
*-commutative81.3%
distribute-rgt-out90.6%
remove-double-neg90.6%
*-commutative90.6%
distribute-lft-neg-out90.6%
sub-neg90.6%
sub-neg90.6%
distribute-lft-neg-out90.6%
*-commutative90.6%
remove-double-neg90.6%
*-commutative90.6%
Simplified90.6%
Taylor expanded in y around 0 95.5%
Final simplification93.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -6.6e-80) (not (<= a 2.6e-28))) (+ x (* a (+ t (* z b)))) (+ x (+ (* t a) (* y z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -6.6e-80) || !(a <= 2.6e-28)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + ((t * a) + (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-6.6d-80)) .or. (.not. (a <= 2.6d-28))) then
tmp = x + (a * (t + (z * b)))
else
tmp = x + ((t * a) + (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -6.6e-80) || !(a <= 2.6e-28)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + ((t * a) + (y * z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -6.6e-80) or not (a <= 2.6e-28): tmp = x + (a * (t + (z * b))) else: tmp = x + ((t * a) + (y * z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -6.6e-80) || !(a <= 2.6e-28)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(x + Float64(Float64(t * a) + Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -6.6e-80) || ~((a <= 2.6e-28))) tmp = x + (a * (t + (z * b))); else tmp = x + ((t * a) + (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -6.6e-80], N[Not[LessEqual[a, 2.6e-28]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t * a), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.6 \cdot 10^{-80} \lor \neg \left(a \leq 2.6 \cdot 10^{-28}\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(t \cdot a + y \cdot z\right)\\
\end{array}
\end{array}
if a < -6.5999999999999999e-80 or 2.6e-28 < a Initial program 88.0%
associate-+l+88.0%
+-commutative88.0%
fma-define88.0%
associate-*l*90.4%
*-commutative90.4%
*-commutative90.4%
distribute-rgt-out94.9%
remove-double-neg94.9%
*-commutative94.9%
distribute-lft-neg-out94.9%
sub-neg94.9%
sub-neg94.9%
distribute-lft-neg-out94.9%
*-commutative94.9%
remove-double-neg94.9%
*-commutative94.9%
Simplified94.9%
Taylor expanded in y around 0 89.3%
if -6.5999999999999999e-80 < a < 2.6e-28Initial program 100.0%
associate-+l+100.0%
associate-*l*93.0%
Simplified93.0%
Taylor expanded in b around 0 94.4%
Final simplification91.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -1.45e-80) (not (<= a 4.8e-135))) (+ x (* a (+ t (* z b)))) (+ x (* y z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.45e-80) || !(a <= 4.8e-135)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-1.45d-80)) .or. (.not. (a <= 4.8d-135))) then
tmp = x + (a * (t + (z * b)))
else
tmp = x + (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.45e-80) || !(a <= 4.8e-135)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -1.45e-80) or not (a <= 4.8e-135): tmp = x + (a * (t + (z * b))) else: tmp = x + (y * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -1.45e-80) || !(a <= 4.8e-135)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(x + Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -1.45e-80) || ~((a <= 4.8e-135))) tmp = x + (a * (t + (z * b))); else tmp = x + (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.45e-80], N[Not[LessEqual[a, 4.8e-135]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{-80} \lor \neg \left(a \leq 4.8 \cdot 10^{-135}\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot z\\
\end{array}
\end{array}
if a < -1.44999999999999999e-80 or 4.7999999999999997e-135 < a Initial program 89.5%
associate-+l+89.5%
+-commutative89.5%
fma-define89.5%
associate-*l*91.1%
*-commutative91.1%
*-commutative91.1%
distribute-rgt-out95.0%
remove-double-neg95.0%
*-commutative95.0%
distribute-lft-neg-out95.0%
sub-neg95.0%
sub-neg95.0%
distribute-lft-neg-out95.0%
*-commutative95.0%
remove-double-neg95.0%
*-commutative95.0%
Simplified95.0%
Taylor expanded in y around 0 86.7%
if -1.44999999999999999e-80 < a < 4.7999999999999997e-135Initial program 100.0%
add-cube-cbrt99.9%
pow399.9%
*-commutative99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 88.0%
Final simplification87.1%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.36e+26) (* t a) (if (<= t -5.8e-232) (* y z) (if (<= t 4.5e+14) x (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.36e+26) {
tmp = t * a;
} else if (t <= -5.8e-232) {
tmp = y * z;
} else if (t <= 4.5e+14) {
tmp = x;
} else {
tmp = t * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-1.36d+26)) then
tmp = t * a
else if (t <= (-5.8d-232)) then
tmp = y * z
else if (t <= 4.5d+14) then
tmp = x
else
tmp = t * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.36e+26) {
tmp = t * a;
} else if (t <= -5.8e-232) {
tmp = y * z;
} else if (t <= 4.5e+14) {
tmp = x;
} else {
tmp = t * a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.36e+26: tmp = t * a elif t <= -5.8e-232: tmp = y * z elif t <= 4.5e+14: tmp = x else: tmp = t * a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.36e+26) tmp = Float64(t * a); elseif (t <= -5.8e-232) tmp = Float64(y * z); elseif (t <= 4.5e+14) tmp = x; else tmp = Float64(t * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.36e+26) tmp = t * a; elseif (t <= -5.8e-232) tmp = y * z; elseif (t <= 4.5e+14) tmp = x; else tmp = t * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.36e+26], N[(t * a), $MachinePrecision], If[LessEqual[t, -5.8e-232], N[(y * z), $MachinePrecision], If[LessEqual[t, 4.5e+14], x, N[(t * a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.36 \cdot 10^{+26}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-232}:\\
\;\;\;\;y \cdot z\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+14}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t \cdot a\\
\end{array}
\end{array}
if t < -1.35999999999999993e26 or 4.5e14 < t Initial program 92.2%
associate-+l+92.2%
associate-*l*89.7%
Simplified89.7%
Taylor expanded in z around 0 68.8%
Taylor expanded in x around 0 51.1%
if -1.35999999999999993e26 < t < -5.7999999999999998e-232Initial program 95.5%
add-cube-cbrt95.4%
pow395.4%
*-commutative95.4%
Applied egg-rr95.4%
Taylor expanded in y around inf 56.7%
*-commutative56.7%
Simplified56.7%
if -5.7999999999999998e-232 < t < 4.5e14Initial program 91.6%
associate-+l+91.6%
associate-*l*95.7%
Simplified95.7%
Taylor expanded in z around 0 41.8%
Taylor expanded in x around inf 34.7%
Final simplification46.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -8.6e+88) (not (<= a 1.9e-28))) (* a (+ t (* z b))) (+ x (* y z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -8.6e+88) || !(a <= 1.9e-28)) {
tmp = a * (t + (z * b));
} else {
tmp = x + (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-8.6d+88)) .or. (.not. (a <= 1.9d-28))) then
tmp = a * (t + (z * b))
else
tmp = x + (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -8.6e+88) || !(a <= 1.9e-28)) {
tmp = a * (t + (z * b));
} else {
tmp = x + (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -8.6e+88) or not (a <= 1.9e-28): tmp = a * (t + (z * b)) else: tmp = x + (y * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -8.6e+88) || !(a <= 1.9e-28)) tmp = Float64(a * Float64(t + Float64(z * b))); else tmp = Float64(x + Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -8.6e+88) || ~((a <= 1.9e-28))) tmp = a * (t + (z * b)); else tmp = x + (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -8.6e+88], N[Not[LessEqual[a, 1.9e-28]], $MachinePrecision]], N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.6 \cdot 10^{+88} \lor \neg \left(a \leq 1.9 \cdot 10^{-28}\right):\\
\;\;\;\;a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot z\\
\end{array}
\end{array}
if a < -8.59999999999999947e88 or 1.90000000000000005e-28 < a Initial program 86.3%
associate-+l+86.3%
+-commutative86.3%
fma-define86.3%
associate-*l*89.2%
*-commutative89.2%
*-commutative89.2%
distribute-rgt-out94.6%
remove-double-neg94.6%
*-commutative94.6%
distribute-lft-neg-out94.6%
sub-neg94.6%
sub-neg94.6%
distribute-lft-neg-out94.6%
*-commutative94.6%
remove-double-neg94.6%
*-commutative94.6%
Simplified94.6%
Taylor expanded in y around 0 90.2%
Taylor expanded in x around 0 77.6%
if -8.59999999999999947e88 < a < 1.90000000000000005e-28Initial program 99.2%
add-cube-cbrt99.0%
pow399.0%
*-commutative99.0%
Applied egg-rr99.0%
Taylor expanded in a around 0 78.1%
Final simplification77.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.1e+165) (not (<= y 2.4e+141))) (* y z) (+ x (* t a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.1e+165) || !(y <= 2.4e+141)) {
tmp = y * z;
} else {
tmp = x + (t * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.1d+165)) .or. (.not. (y <= 2.4d+141))) then
tmp = y * z
else
tmp = x + (t * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.1e+165) || !(y <= 2.4e+141)) {
tmp = y * z;
} else {
tmp = x + (t * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.1e+165) or not (y <= 2.4e+141): tmp = y * z else: tmp = x + (t * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.1e+165) || !(y <= 2.4e+141)) tmp = Float64(y * z); else tmp = Float64(x + Float64(t * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.1e+165) || ~((y <= 2.4e+141))) tmp = y * z; else tmp = x + (t * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.1e+165], N[Not[LessEqual[y, 2.4e+141]], $MachinePrecision]], N[(y * z), $MachinePrecision], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+165} \lor \neg \left(y \leq 2.4 \cdot 10^{+141}\right):\\
\;\;\;\;y \cdot z\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot a\\
\end{array}
\end{array}
if y < -1.1e165 or 2.39999999999999997e141 < y Initial program 87.3%
add-cube-cbrt87.2%
pow387.2%
*-commutative87.2%
Applied egg-rr87.2%
Taylor expanded in y around inf 62.0%
*-commutative62.0%
Simplified62.0%
if -1.1e165 < y < 2.39999999999999997e141Initial program 94.9%
associate-+l+94.9%
associate-*l*93.8%
Simplified93.8%
Taylor expanded in z around 0 62.0%
Final simplification62.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9.5e+100) (not (<= t 1.7e+15))) (* t a) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9.5e+100) || !(t <= 1.7e+15)) {
tmp = t * a;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-9.5d+100)) .or. (.not. (t <= 1.7d+15))) then
tmp = t * a
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9.5e+100) || !(t <= 1.7e+15)) {
tmp = t * a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -9.5e+100) or not (t <= 1.7e+15): tmp = t * a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -9.5e+100) || !(t <= 1.7e+15)) tmp = Float64(t * a); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -9.5e+100) || ~((t <= 1.7e+15))) tmp = t * a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -9.5e+100], N[Not[LessEqual[t, 1.7e+15]], $MachinePrecision]], N[(t * a), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{+100} \lor \neg \left(t \leq 1.7 \cdot 10^{+15}\right):\\
\;\;\;\;t \cdot a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -9.4999999999999995e100 or 1.7e15 < t Initial program 91.1%
associate-+l+91.1%
associate-*l*88.2%
Simplified88.2%
Taylor expanded in z around 0 69.1%
Taylor expanded in x around 0 54.5%
if -9.4999999999999995e100 < t < 1.7e15Initial program 93.5%
associate-+l+93.5%
associate-*l*93.5%
Simplified93.5%
Taylor expanded in z around 0 40.1%
Taylor expanded in x around inf 31.9%
Final simplification40.8%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 92.6%
associate-+l+92.6%
associate-*l*91.4%
Simplified91.4%
Taylor expanded in z around 0 51.5%
Taylor expanded in x around inf 25.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* z (+ (* b a) y)) (+ x (* t a)))))
(if (< z -11820553527347888000.0)
t_1
(if (< z 4.7589743188364287e-122)
(+ (* (+ (* b z) t) a) (+ (* z y) x))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((b * a) + y)) + (x + (t * a));
double tmp;
if (z < -11820553527347888000.0) {
tmp = t_1;
} else if (z < 4.7589743188364287e-122) {
tmp = (((b * z) + t) * a) + ((z * y) + x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (z * ((b * a) + y)) + (x + (t * a))
if (z < (-11820553527347888000.0d0)) then
tmp = t_1
else if (z < 4.7589743188364287d-122) then
tmp = (((b * z) + t) * a) + ((z * y) + x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((b * a) + y)) + (x + (t * a));
double tmp;
if (z < -11820553527347888000.0) {
tmp = t_1;
} else if (z < 4.7589743188364287e-122) {
tmp = (((b * z) + t) * a) + ((z * y) + x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((b * a) + y)) + (x + (t * a)) tmp = 0 if z < -11820553527347888000.0: tmp = t_1 elif z < 4.7589743188364287e-122: tmp = (((b * z) + t) * a) + ((z * y) + x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(b * a) + y)) + Float64(x + Float64(t * a))) tmp = 0.0 if (z < -11820553527347888000.0) tmp = t_1; elseif (z < 4.7589743188364287e-122) tmp = Float64(Float64(Float64(Float64(b * z) + t) * a) + Float64(Float64(z * y) + x)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((b * a) + y)) + (x + (t * a)); tmp = 0.0; if (z < -11820553527347888000.0) tmp = t_1; elseif (z < 4.7589743188364287e-122) tmp = (((b * z) + t) * a) + ((z * y) + x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(b * a), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -11820553527347888000.0], t$95$1, If[Less[z, 4.7589743188364287e-122], N[(N[(N[(N[(b * z), $MachinePrecision] + t), $MachinePrecision] * a), $MachinePrecision] + N[(N[(z * y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot a + y\right) + \left(x + t \cdot a\right)\\
\mathbf{if}\;z < -11820553527347888000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.7589743188364287 \cdot 10^{-122}:\\
\;\;\;\;\left(b \cdot z + t\right) \cdot a + \left(z \cdot y + x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024157
(FPCore (x y z t a b)
:name "Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1"
:precision binary64
:alt
(! :herbie-platform default (if (< z -11820553527347888000) (+ (* z (+ (* b a) y)) (+ x (* t a))) (if (< z 47589743188364287/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (* (+ (* b z) t) a) (+ (* z y) x)) (+ (* z (+ (* b a) y)) (+ x (* t a))))))
(+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))