
(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 (if (or (<= z -1e+43) (not (<= z 5e+131))) (* z (+ y (+ (/ x z) (* a (+ b (/ t z)))))) (+ (+ (* a (* z b)) (* a t)) (+ x (* z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1e+43) || !(z <= 5e+131)) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} else {
tmp = ((a * (z * b)) + (a * t)) + (x + (z * y));
}
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 ((z <= (-1d+43)) .or. (.not. (z <= 5d+131))) then
tmp = z * (y + ((x / z) + (a * (b + (t / z)))))
else
tmp = ((a * (z * b)) + (a * t)) + (x + (z * y))
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 ((z <= -1e+43) || !(z <= 5e+131)) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} else {
tmp = ((a * (z * b)) + (a * t)) + (x + (z * y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1e+43) or not (z <= 5e+131): tmp = z * (y + ((x / z) + (a * (b + (t / z))))) else: tmp = ((a * (z * b)) + (a * t)) + (x + (z * y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1e+43) || !(z <= 5e+131)) tmp = Float64(z * Float64(y + Float64(Float64(x / z) + Float64(a * Float64(b + Float64(t / z)))))); else tmp = Float64(Float64(Float64(a * Float64(z * b)) + Float64(a * t)) + Float64(x + Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1e+43) || ~((z <= 5e+131))) tmp = z * (y + ((x / z) + (a * (b + (t / z))))); else tmp = ((a * (z * b)) + (a * t)) + (x + (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1e+43], N[Not[LessEqual[z, 5e+131]], $MachinePrecision]], N[(z * N[(y + N[(N[(x / z), $MachinePrecision] + N[(a * N[(b + N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision] + N[(a * t), $MachinePrecision]), $MachinePrecision] + N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+43} \lor \neg \left(z \leq 5 \cdot 10^{+131}\right):\\
\;\;\;\;z \cdot \left(y + \left(\frac{x}{z} + a \cdot \left(b + \frac{t}{z}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot \left(z \cdot b\right) + a \cdot t\right) + \left(x + z \cdot y\right)\\
\end{array}
\end{array}
if z < -1.00000000000000001e43 or 4.99999999999999995e131 < z Initial program 75.1%
associate-+l+75.1%
associate-*l*79.8%
Simplified79.8%
Taylor expanded in z around inf 96.4%
+-commutative96.4%
associate-+l+96.4%
+-commutative96.4%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
if -1.00000000000000001e43 < z < 4.99999999999999995e131Initial program 100.0%
associate-+l+100.0%
associate-*l*99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a b) :precision binary64 (if (<= z 3.1e+131) (+ (fma y z x) (* a (+ t (* z b)))) (* z (+ y (+ (/ x z) (* a (+ b (/ t z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 3.1e+131) {
tmp = fma(y, z, x) + (a * (t + (z * b)));
} else {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 3.1e+131) tmp = Float64(fma(y, z, x) + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(z * Float64(y + Float64(Float64(x / z) + Float64(a * Float64(b + Float64(t / z)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 3.1e+131], N[(N[(y * z + x), $MachinePrecision] + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(y + N[(N[(x / z), $MachinePrecision] + N[(a * N[(b + N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.1 \cdot 10^{+131}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right) + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y + \left(\frac{x}{z} + a \cdot \left(b + \frac{t}{z}\right)\right)\right)\\
\end{array}
\end{array}
if z < 3.10000000000000016e131Initial program 94.6%
associate-+l+94.6%
+-commutative94.6%
fma-define94.6%
associate-*l*96.4%
*-commutative96.4%
*-commutative96.4%
distribute-rgt-out98.2%
remove-double-neg98.2%
*-commutative98.2%
distribute-lft-neg-out98.2%
sub-neg98.2%
sub-neg98.2%
distribute-lft-neg-in98.2%
remove-double-neg98.2%
Simplified98.2%
if 3.10000000000000016e131 < z Initial program 72.3%
associate-+l+72.3%
associate-*l*72.9%
Simplified72.9%
Taylor expanded in z around inf 94.2%
+-commutative94.2%
associate-+l+94.2%
+-commutative94.2%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ (+ (* a t) (+ x (* z y))) (* b (* z a))))) (if (<= t_1 1e+294) t_1 (* z (+ y (+ (/ x z) (* a (+ b (/ t z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((a * t) + (x + (z * y))) + (b * (z * a));
double tmp;
if (t_1 <= 1e+294) {
tmp = t_1;
} else {
tmp = z * (y + ((x / z) + (a * (b + (t / 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) :: t_1
real(8) :: tmp
t_1 = ((a * t) + (x + (z * y))) + (b * (z * a))
if (t_1 <= 1d+294) then
tmp = t_1
else
tmp = z * (y + ((x / z) + (a * (b + (t / z)))))
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) + (x + (z * y))) + (b * (z * a));
double tmp;
if (t_1 <= 1e+294) {
tmp = t_1;
} else {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((a * t) + (x + (z * y))) + (b * (z * a)) tmp = 0 if t_1 <= 1e+294: tmp = t_1 else: tmp = z * (y + ((x / z) + (a * (b + (t / z))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(a * t) + Float64(x + Float64(z * y))) + Float64(b * Float64(z * a))) tmp = 0.0 if (t_1 <= 1e+294) tmp = t_1; else tmp = Float64(z * Float64(y + Float64(Float64(x / z) + Float64(a * Float64(b + Float64(t / z)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((a * t) + (x + (z * y))) + (b * (z * a)); tmp = 0.0; if (t_1 <= 1e+294) tmp = t_1; else tmp = z * (y + ((x / z) + (a * (b + (t / z))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(a * t), $MachinePrecision] + N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+294], t$95$1, N[(z * N[(y + N[(N[(x / z), $MachinePrecision] + N[(a * N[(b + N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot t + \left(x + z \cdot y\right)\right) + b \cdot \left(z \cdot a\right)\\
\mathbf{if}\;t\_1 \leq 10^{+294}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y + \left(\frac{x}{z} + a \cdot \left(b + \frac{t}{z}\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) < 1.00000000000000007e294Initial program 98.5%
if 1.00000000000000007e294 < (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) Initial program 67.1%
associate-+l+67.1%
associate-*l*80.7%
Simplified80.7%
Taylor expanded in z around inf 92.9%
+-commutative92.9%
associate-+l+92.9%
+-commutative92.9%
associate-/l*98.2%
distribute-lft-out98.2%
Simplified98.2%
Final simplification98.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -7.2e-127) (not (<= z 3e-77))) (* z (+ y (+ (/ x z) (* a (+ b (/ t z)))))) (+ x (* a (* t (+ 1.0 (* b (/ z t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.2e-127) || !(z <= 3e-77)) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} else {
tmp = x + (a * (t * (1.0 + (b * (z / t)))));
}
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 ((z <= (-7.2d-127)) .or. (.not. (z <= 3d-77))) then
tmp = z * (y + ((x / z) + (a * (b + (t / z)))))
else
tmp = x + (a * (t * (1.0d0 + (b * (z / t)))))
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 ((z <= -7.2e-127) || !(z <= 3e-77)) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} else {
tmp = x + (a * (t * (1.0 + (b * (z / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -7.2e-127) or not (z <= 3e-77): tmp = z * (y + ((x / z) + (a * (b + (t / z))))) else: tmp = x + (a * (t * (1.0 + (b * (z / t))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -7.2e-127) || !(z <= 3e-77)) tmp = Float64(z * Float64(y + Float64(Float64(x / z) + Float64(a * Float64(b + Float64(t / z)))))); else tmp = Float64(x + Float64(a * Float64(t * Float64(1.0 + Float64(b * Float64(z / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -7.2e-127) || ~((z <= 3e-77))) tmp = z * (y + ((x / z) + (a * (b + (t / z))))); else tmp = x + (a * (t * (1.0 + (b * (z / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -7.2e-127], N[Not[LessEqual[z, 3e-77]], $MachinePrecision]], N[(z * N[(y + N[(N[(x / z), $MachinePrecision] + N[(a * N[(b + N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * N[(t * N[(1.0 + N[(b * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{-127} \lor \neg \left(z \leq 3 \cdot 10^{-77}\right):\\
\;\;\;\;z \cdot \left(y + \left(\frac{x}{z} + a \cdot \left(b + \frac{t}{z}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \left(t \cdot \left(1 + b \cdot \frac{z}{t}\right)\right)\\
\end{array}
\end{array}
if z < -7.1999999999999999e-127 or 3.00000000000000016e-77 < z Initial program 86.8%
associate-+l+86.8%
associate-*l*89.3%
Simplified89.3%
Taylor expanded in z around inf 97.4%
+-commutative97.4%
associate-+l+97.4%
+-commutative97.4%
associate-/l*98.7%
distribute-lft-out98.7%
Simplified98.7%
if -7.1999999999999999e-127 < z < 3.00000000000000016e-77Initial program 99.9%
associate-+l+99.9%
+-commutative99.9%
fma-define99.9%
associate-*l*99.9%
*-commutative99.9%
*-commutative99.9%
distribute-rgt-out99.9%
remove-double-neg99.9%
*-commutative99.9%
distribute-lft-neg-out99.9%
sub-neg99.9%
sub-neg99.9%
distribute-lft-neg-in99.9%
remove-double-neg99.9%
Simplified99.9%
Taylor expanded in y around 0 93.6%
Taylor expanded in t around inf 93.6%
associate-/l*93.6%
Simplified93.6%
Final simplification96.9%
(FPCore (x y z t a b) :precision binary64 (if (<= z -6.6e+243) (* a (* z b)) (if (or (<= z -1.2e-38) (not (<= z 2.1e-64))) (+ x (* z y)) (+ x (* a t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.6e+243) {
tmp = a * (z * b);
} else if ((z <= -1.2e-38) || !(z <= 2.1e-64)) {
tmp = x + (z * y);
} else {
tmp = x + (a * t);
}
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 (z <= (-6.6d+243)) then
tmp = a * (z * b)
else if ((z <= (-1.2d-38)) .or. (.not. (z <= 2.1d-64))) then
tmp = x + (z * y)
else
tmp = x + (a * t)
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 (z <= -6.6e+243) {
tmp = a * (z * b);
} else if ((z <= -1.2e-38) || !(z <= 2.1e-64)) {
tmp = x + (z * y);
} else {
tmp = x + (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -6.6e+243: tmp = a * (z * b) elif (z <= -1.2e-38) or not (z <= 2.1e-64): tmp = x + (z * y) else: tmp = x + (a * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.6e+243) tmp = Float64(a * Float64(z * b)); elseif ((z <= -1.2e-38) || !(z <= 2.1e-64)) tmp = Float64(x + Float64(z * y)); else tmp = Float64(x + Float64(a * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -6.6e+243) tmp = a * (z * b); elseif ((z <= -1.2e-38) || ~((z <= 2.1e-64))) tmp = x + (z * y); else tmp = x + (a * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.6e+243], N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.2e-38], N[Not[LessEqual[z, 2.1e-64]], $MachinePrecision]], N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.6 \cdot 10^{+243}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-38} \lor \neg \left(z \leq 2.1 \cdot 10^{-64}\right):\\
\;\;\;\;x + z \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot t\\
\end{array}
\end{array}
if z < -6.59999999999999989e243Initial program 53.1%
associate-+l+53.1%
associate-*l*99.7%
Simplified99.7%
add-cube-cbrt99.6%
pow399.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 89.9%
+-commutative89.9%
Simplified89.9%
Taylor expanded in a around inf 89.5%
if -6.59999999999999989e243 < z < -1.20000000000000011e-38 or 2.10000000000000011e-64 < z Initial program 87.6%
associate-+l+87.6%
associate-*l*87.1%
Simplified87.1%
Taylor expanded in b around 0 71.1%
Taylor expanded in a around 0 55.6%
*-commutative55.6%
Simplified55.6%
if -1.20000000000000011e-38 < z < 2.10000000000000011e-64Initial program 100.0%
associate-+l+100.0%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in z around 0 81.5%
Final simplification68.0%
(FPCore (x y z t a b) :precision binary64 (if (<= z -2.35e+241) (* a (* z b)) (if (or (<= z -4.1e+82) (not (<= z 5e+89))) (* z y) (+ x (* a t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.35e+241) {
tmp = a * (z * b);
} else if ((z <= -4.1e+82) || !(z <= 5e+89)) {
tmp = z * y;
} else {
tmp = x + (a * t);
}
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 (z <= (-2.35d+241)) then
tmp = a * (z * b)
else if ((z <= (-4.1d+82)) .or. (.not. (z <= 5d+89))) then
tmp = z * y
else
tmp = x + (a * t)
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 (z <= -2.35e+241) {
tmp = a * (z * b);
} else if ((z <= -4.1e+82) || !(z <= 5e+89)) {
tmp = z * y;
} else {
tmp = x + (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.35e+241: tmp = a * (z * b) elif (z <= -4.1e+82) or not (z <= 5e+89): tmp = z * y else: tmp = x + (a * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.35e+241) tmp = Float64(a * Float64(z * b)); elseif ((z <= -4.1e+82) || !(z <= 5e+89)) tmp = Float64(z * y); else tmp = Float64(x + Float64(a * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.35e+241) tmp = a * (z * b); elseif ((z <= -4.1e+82) || ~((z <= 5e+89))) tmp = z * y; else tmp = x + (a * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.35e+241], N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -4.1e+82], N[Not[LessEqual[z, 5e+89]], $MachinePrecision]], N[(z * y), $MachinePrecision], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.35 \cdot 10^{+241}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{+82} \lor \neg \left(z \leq 5 \cdot 10^{+89}\right):\\
\;\;\;\;z \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot t\\
\end{array}
\end{array}
if z < -2.34999999999999991e241Initial program 53.1%
associate-+l+53.1%
associate-*l*99.7%
Simplified99.7%
add-cube-cbrt99.6%
pow399.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 89.9%
+-commutative89.9%
Simplified89.9%
Taylor expanded in a around inf 89.5%
if -2.34999999999999991e241 < z < -4.09999999999999995e82 or 4.99999999999999983e89 < z Initial program 80.3%
associate-+l+80.3%
associate-*l*79.5%
Simplified79.5%
Taylor expanded in z around inf 97.2%
+-commutative97.2%
associate-+l+97.2%
+-commutative97.2%
associate-/l*99.9%
distribute-lft-out99.9%
Simplified99.9%
Taylor expanded in y around inf 51.1%
if -4.09999999999999995e82 < z < 4.99999999999999983e89Initial program 98.8%
associate-+l+98.8%
associate-*l*98.8%
Simplified98.8%
Taylor expanded in z around 0 68.6%
Final simplification64.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -5.6e-14) (not (<= a 1.2e-24))) (+ x (* a (+ t (* z b)))) (+ x (+ (* a t) (* z y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -5.6e-14) || !(a <= 1.2e-24)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + ((a * t) + (z * y));
}
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 <= (-5.6d-14)) .or. (.not. (a <= 1.2d-24))) then
tmp = x + (a * (t + (z * b)))
else
tmp = x + ((a * t) + (z * y))
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 <= -5.6e-14) || !(a <= 1.2e-24)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + ((a * t) + (z * y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -5.6e-14) or not (a <= 1.2e-24): tmp = x + (a * (t + (z * b))) else: tmp = x + ((a * t) + (z * y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -5.6e-14) || !(a <= 1.2e-24)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(x + Float64(Float64(a * t) + Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -5.6e-14) || ~((a <= 1.2e-24))) tmp = x + (a * (t + (z * b))); else tmp = x + ((a * t) + (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -5.6e-14], N[Not[LessEqual[a, 1.2e-24]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(a * t), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.6 \cdot 10^{-14} \lor \neg \left(a \leq 1.2 \cdot 10^{-24}\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(a \cdot t + z \cdot y\right)\\
\end{array}
\end{array}
if a < -5.6000000000000001e-14 or 1.1999999999999999e-24 < a Initial program 85.3%
associate-+l+85.3%
+-commutative85.3%
fma-define85.3%
associate-*l*92.8%
*-commutative92.8%
*-commutative92.8%
distribute-rgt-out96.4%
remove-double-neg96.4%
*-commutative96.4%
distribute-lft-neg-out96.4%
sub-neg96.4%
sub-neg96.4%
distribute-lft-neg-in96.4%
remove-double-neg96.4%
Simplified96.4%
Taylor expanded in y around 0 89.7%
if -5.6000000000000001e-14 < a < 1.1999999999999999e-24Initial program 99.0%
associate-+l+99.0%
associate-*l*93.4%
Simplified93.4%
Taylor expanded in b around 0 90.5%
Final simplification90.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -7e+19) (not (<= a 140000000.0))) (+ x (* a (+ t (* z b)))) (+ x (* z (+ y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -7e+19) || !(a <= 140000000.0)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + (z * (y + (a * 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 <= (-7d+19)) .or. (.not. (a <= 140000000.0d0))) then
tmp = x + (a * (t + (z * b)))
else
tmp = x + (z * (y + (a * 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 <= -7e+19) || !(a <= 140000000.0)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + (z * (y + (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -7e+19) or not (a <= 140000000.0): tmp = x + (a * (t + (z * b))) else: tmp = x + (z * (y + (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -7e+19) || !(a <= 140000000.0)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(x + Float64(z * Float64(y + Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -7e+19) || ~((a <= 140000000.0))) tmp = x + (a * (t + (z * b))); else tmp = x + (z * (y + (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -7e+19], N[Not[LessEqual[a, 140000000.0]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7 \cdot 10^{+19} \lor \neg \left(a \leq 140000000\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\
\end{array}
\end{array}
if a < -7e19 or 1.4e8 < a Initial program 83.6%
associate-+l+83.6%
+-commutative83.6%
fma-define83.6%
associate-*l*92.0%
*-commutative92.0%
*-commutative92.0%
distribute-rgt-out95.9%
remove-double-neg95.9%
*-commutative95.9%
distribute-lft-neg-out95.9%
sub-neg95.9%
sub-neg95.9%
distribute-lft-neg-in95.9%
remove-double-neg95.9%
Simplified95.9%
Taylor expanded in y around 0 90.8%
if -7e19 < a < 1.4e8Initial program 99.2%
associate-+l+99.2%
associate-*l*94.2%
Simplified94.2%
Taylor expanded in t around 0 79.4%
associate-*r*84.4%
distribute-rgt-in85.2%
+-commutative85.2%
Simplified85.2%
Final simplification87.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -1.55e-33) (not (<= a 3.6e-32))) (+ x (* a (+ t (* z b)))) (+ x (* z y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -1.55e-33) || !(a <= 3.6e-32)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + (z * y);
}
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.55d-33)) .or. (.not. (a <= 3.6d-32))) then
tmp = x + (a * (t + (z * b)))
else
tmp = x + (z * y)
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.55e-33) || !(a <= 3.6e-32)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = x + (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -1.55e-33) or not (a <= 3.6e-32): tmp = x + (a * (t + (z * b))) else: tmp = x + (z * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -1.55e-33) || !(a <= 3.6e-32)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(x + Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -1.55e-33) || ~((a <= 3.6e-32))) tmp = x + (a * (t + (z * b))); else tmp = x + (z * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.55e-33], N[Not[LessEqual[a, 3.6e-32]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{-33} \lor \neg \left(a \leq 3.6 \cdot 10^{-32}\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot y\\
\end{array}
\end{array}
if a < -1.54999999999999998e-33 or 3.59999999999999993e-32 < a Initial program 86.2%
associate-+l+86.2%
+-commutative86.2%
fma-define86.2%
associate-*l*92.6%
*-commutative92.6%
*-commutative92.6%
distribute-rgt-out96.0%
remove-double-neg96.0%
*-commutative96.0%
distribute-lft-neg-out96.0%
sub-neg96.0%
sub-neg96.0%
distribute-lft-neg-in96.0%
remove-double-neg96.0%
Simplified96.0%
Taylor expanded in y around 0 87.9%
if -1.54999999999999998e-33 < a < 3.59999999999999993e-32Initial program 99.0%
associate-+l+99.0%
associate-*l*93.7%
Simplified93.7%
Taylor expanded in b around 0 90.6%
Taylor expanded in a around 0 77.8%
*-commutative77.8%
Simplified77.8%
Final simplification83.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -8e-36) (not (<= z 3.3e+14))) (* z (+ y (* a b))) (+ x (* a t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8e-36) || !(z <= 3.3e+14)) {
tmp = z * (y + (a * b));
} else {
tmp = x + (a * t);
}
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 ((z <= (-8d-36)) .or. (.not. (z <= 3.3d+14))) then
tmp = z * (y + (a * b))
else
tmp = x + (a * t)
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 ((z <= -8e-36) || !(z <= 3.3e+14)) {
tmp = z * (y + (a * b));
} else {
tmp = x + (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -8e-36) or not (z <= 3.3e+14): tmp = z * (y + (a * b)) else: tmp = x + (a * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -8e-36) || !(z <= 3.3e+14)) tmp = Float64(z * Float64(y + Float64(a * b))); else tmp = Float64(x + Float64(a * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -8e-36) || ~((z <= 3.3e+14))) tmp = z * (y + (a * b)); else tmp = x + (a * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -8e-36], N[Not[LessEqual[z, 3.3e+14]], $MachinePrecision]], N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{-36} \lor \neg \left(z \leq 3.3 \cdot 10^{+14}\right):\\
\;\;\;\;z \cdot \left(y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot t\\
\end{array}
\end{array}
if z < -7.9999999999999995e-36 or 3.3e14 < z Initial program 84.0%
associate-+l+84.0%
associate-*l*87.0%
Simplified87.0%
Taylor expanded in z around inf 74.4%
if -7.9999999999999995e-36 < z < 3.3e14Initial program 99.9%
associate-+l+99.9%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in z around 0 79.3%
Final simplification76.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9e+23) (not (<= t 1.03e+37))) (* a t) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9e+23) || !(t <= 1.03e+37)) {
tmp = a * t;
} 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 <= (-9d+23)) .or. (.not. (t <= 1.03d+37))) then
tmp = a * t
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 <= -9e+23) || !(t <= 1.03e+37)) {
tmp = a * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -9e+23) or not (t <= 1.03e+37): tmp = a * t else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -9e+23) || !(t <= 1.03e+37)) tmp = Float64(a * t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -9e+23) || ~((t <= 1.03e+37))) tmp = a * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -9e+23], N[Not[LessEqual[t, 1.03e+37]], $MachinePrecision]], N[(a * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+23} \lor \neg \left(t \leq 1.03 \cdot 10^{+37}\right):\\
\;\;\;\;a \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -8.99999999999999958e23 or 1.02999999999999994e37 < t Initial program 91.1%
associate-+l+91.1%
associate-*l*90.4%
Simplified90.4%
Taylor expanded in z around inf 83.6%
+-commutative83.6%
associate-+l+83.6%
+-commutative83.6%
associate-/l*79.4%
distribute-lft-out79.4%
Simplified79.4%
Taylor expanded in t around inf 83.6%
associate-/l*83.6%
Simplified83.6%
Taylor expanded in t around inf 57.2%
if -8.99999999999999958e23 < t < 1.02999999999999994e37Initial program 91.8%
associate-+l+91.8%
associate-*l*95.2%
Simplified95.2%
Taylor expanded in z around 0 43.6%
Taylor expanded in x around inf 37.5%
Final simplification46.2%
(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 91.5%
associate-+l+91.5%
associate-*l*93.1%
Simplified93.1%
Taylor expanded in z around 0 53.0%
Taylor expanded in x around inf 24.8%
(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 2024123
(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)))