
(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 18 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 (<= z -9e+43) (* z (+ y (+ (/ x z) (* a (+ b (/ t z)))))) (+ (fma y z x) (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -9e+43) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} else {
tmp = fma(y, z, x) + (a * (t + (z * b)));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -9e+43) tmp = Float64(z * Float64(y + Float64(Float64(x / z) + Float64(a * Float64(b + Float64(t / z)))))); else tmp = Float64(fma(y, z, x) + Float64(a * Float64(t + Float64(z * b)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -9e+43], N[(z * N[(y + N[(N[(x / z), $MachinePrecision] + N[(a * N[(b + N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z + x), $MachinePrecision] + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+43}:\\
\;\;\;\;z \cdot \left(y + \left(\frac{x}{z} + a \cdot \left(b + \frac{t}{z}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right) + a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if z < -9e43Initial program 86.7%
associate-+l+86.7%
associate-*l*85.2%
Simplified85.2%
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 -9e43 < z Initial program 97.0%
associate-+l+97.0%
+-commutative97.0%
fma-define97.0%
associate-*l*97.9%
*-commutative97.9%
*-commutative97.9%
distribute-rgt-out97.9%
remove-double-neg97.9%
*-commutative97.9%
distribute-lft-neg-out97.9%
sub-neg97.9%
sub-neg97.9%
distribute-lft-neg-out97.9%
*-commutative97.9%
remove-double-neg97.9%
*-commutative97.9%
Simplified97.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -3.5e-41) (not (<= z 3e-74))) (* z (+ y (+ (/ x z) (* a (+ b (/ t z)))))) (+ x (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.5e-41) || !(z <= 3e-74)) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} 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 ((z <= (-3.5d-41)) .or. (.not. (z <= 3d-74))) then
tmp = z * (y + ((x / z) + (a * (b + (t / z)))))
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 ((z <= -3.5e-41) || !(z <= 3e-74)) {
tmp = z * (y + ((x / z) + (a * (b + (t / z)))));
} else {
tmp = x + (a * (t + (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -3.5e-41) or not (z <= 3e-74): tmp = z * (y + ((x / z) + (a * (b + (t / z))))) else: tmp = x + (a * (t + (z * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.5e-41) || !(z <= 3e-74)) 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(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -3.5e-41) || ~((z <= 3e-74))) tmp = z * (y + ((x / z) + (a * (b + (t / z))))); else tmp = x + (a * (t + (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.5e-41], N[Not[LessEqual[z, 3e-74]], $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[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{-41} \lor \neg \left(z \leq 3 \cdot 10^{-74}\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 + z \cdot b\right)\\
\end{array}
\end{array}
if z < -3.5e-41 or 3.00000000000000007e-74 < z Initial program 92.8%
associate-+l+92.8%
associate-*l*91.6%
Simplified91.6%
Taylor expanded in z around inf 97.3%
+-commutative97.3%
associate-+l+97.3%
+-commutative97.3%
associate-/l*98.7%
distribute-lft-out98.6%
Simplified98.6%
if -3.5e-41 < z < 3.00000000000000007e-74Initial program 97.3%
associate-+l+97.3%
+-commutative97.3%
fma-define97.3%
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-out99.9%
*-commutative99.9%
remove-double-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 94.6%
Final simplification97.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (+ y (* a b)))))
(if (<= z -3.9e+96)
t_1
(if (<= z -1.8e+34)
(* z (+ (/ x z) (* a b)))
(if (<= z 6.5e-18) (+ x (* a t)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (y + (a * b));
double tmp;
if (z <= -3.9e+96) {
tmp = t_1;
} else if (z <= -1.8e+34) {
tmp = z * ((x / z) + (a * b));
} else if (z <= 6.5e-18) {
tmp = x + (a * t);
} 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 * (y + (a * b))
if (z <= (-3.9d+96)) then
tmp = t_1
else if (z <= (-1.8d+34)) then
tmp = z * ((x / z) + (a * b))
else if (z <= 6.5d-18) then
tmp = x + (a * t)
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 * (y + (a * b));
double tmp;
if (z <= -3.9e+96) {
tmp = t_1;
} else if (z <= -1.8e+34) {
tmp = z * ((x / z) + (a * b));
} else if (z <= 6.5e-18) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (y + (a * b)) tmp = 0 if z <= -3.9e+96: tmp = t_1 elif z <= -1.8e+34: tmp = z * ((x / z) + (a * b)) elif z <= 6.5e-18: tmp = x + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(y + Float64(a * b))) tmp = 0.0 if (z <= -3.9e+96) tmp = t_1; elseif (z <= -1.8e+34) tmp = Float64(z * Float64(Float64(x / z) + Float64(a * b))); elseif (z <= 6.5e-18) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (y + (a * b)); tmp = 0.0; if (z <= -3.9e+96) tmp = t_1; elseif (z <= -1.8e+34) tmp = z * ((x / z) + (a * b)); elseif (z <= 6.5e-18) tmp = x + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.9e+96], t$95$1, If[LessEqual[z, -1.8e+34], N[(z * N[(N[(x / z), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-18], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(y + a \cdot b\right)\\
\mathbf{if}\;z \leq -3.9 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{+34}:\\
\;\;\;\;z \cdot \left(\frac{x}{z} + a \cdot b\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-18}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.9e96 or 6.50000000000000008e-18 < z Initial program 93.2%
associate-+l+93.2%
associate-*l*90.5%
Simplified90.5%
Taylor expanded in z around inf 83.7%
if -3.9e96 < z < -1.8e34Initial program 78.2%
associate-+l+78.2%
+-commutative78.2%
fma-define78.2%
associate-*l*83.3%
*-commutative83.3%
*-commutative83.3%
distribute-rgt-out88.8%
remove-double-neg88.8%
*-commutative88.8%
distribute-lft-neg-out88.8%
sub-neg88.8%
sub-neg88.8%
distribute-lft-neg-out88.8%
*-commutative88.8%
remove-double-neg88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in y around 0 80.9%
Taylor expanded in b around inf 75.8%
associate-/l*81.3%
distribute-lft-out81.3%
Simplified81.3%
Taylor expanded in z around inf 81.3%
Taylor expanded in z around inf 86.3%
if -1.8e34 < z < 6.50000000000000008e-18Initial program 97.9%
associate-+l+97.9%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in z around 0 77.3%
Final simplification80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (+ y (* a b)))))
(if (<= z -4.6e+96)
t_1
(if (<= z -1.3e+34)
(+ x (* b (* z a)))
(if (<= z 1.2e-19) (+ x (* a t)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (y + (a * b));
double tmp;
if (z <= -4.6e+96) {
tmp = t_1;
} else if (z <= -1.3e+34) {
tmp = x + (b * (z * a));
} else if (z <= 1.2e-19) {
tmp = x + (a * t);
} 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 * (y + (a * b))
if (z <= (-4.6d+96)) then
tmp = t_1
else if (z <= (-1.3d+34)) then
tmp = x + (b * (z * a))
else if (z <= 1.2d-19) then
tmp = x + (a * t)
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 * (y + (a * b));
double tmp;
if (z <= -4.6e+96) {
tmp = t_1;
} else if (z <= -1.3e+34) {
tmp = x + (b * (z * a));
} else if (z <= 1.2e-19) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (y + (a * b)) tmp = 0 if z <= -4.6e+96: tmp = t_1 elif z <= -1.3e+34: tmp = x + (b * (z * a)) elif z <= 1.2e-19: tmp = x + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(y + Float64(a * b))) tmp = 0.0 if (z <= -4.6e+96) tmp = t_1; elseif (z <= -1.3e+34) tmp = Float64(x + Float64(b * Float64(z * a))); elseif (z <= 1.2e-19) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (y + (a * b)); tmp = 0.0; if (z <= -4.6e+96) tmp = t_1; elseif (z <= -1.3e+34) tmp = x + (b * (z * a)); elseif (z <= 1.2e-19) tmp = x + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.6e+96], t$95$1, If[LessEqual[z, -1.3e+34], N[(x + N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e-19], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(y + a \cdot b\right)\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{+34}:\\
\;\;\;\;x + b \cdot \left(z \cdot a\right)\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-19}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.6000000000000003e96 or 1.20000000000000011e-19 < z Initial program 93.2%
associate-+l+93.2%
associate-*l*90.5%
Simplified90.5%
Taylor expanded in z around inf 83.7%
if -4.6000000000000003e96 < z < -1.29999999999999999e34Initial program 78.2%
associate-+l+78.2%
+-commutative78.2%
fma-define78.2%
associate-*l*83.3%
*-commutative83.3%
*-commutative83.3%
distribute-rgt-out88.8%
remove-double-neg88.8%
*-commutative88.8%
distribute-lft-neg-out88.8%
sub-neg88.8%
sub-neg88.8%
distribute-lft-neg-out88.8%
*-commutative88.8%
remove-double-neg88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in y around 0 80.9%
Taylor expanded in b around inf 75.8%
associate-/l*81.3%
distribute-lft-out81.3%
Simplified81.3%
Taylor expanded in z around inf 81.3%
if -1.29999999999999999e34 < z < 1.20000000000000011e-19Initial program 97.9%
associate-+l+97.9%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in z around 0 77.3%
Final simplification80.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5.8e+43) (not (<= z 1.75e-29))) (* z (+ y (+ (/ x z) (* a b)))) (+ x (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.8e+43) || !(z <= 1.75e-29)) {
tmp = z * (y + ((x / z) + (a * b)));
} 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 ((z <= (-5.8d+43)) .or. (.not. (z <= 1.75d-29))) then
tmp = z * (y + ((x / z) + (a * b)))
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 ((z <= -5.8e+43) || !(z <= 1.75e-29)) {
tmp = z * (y + ((x / z) + (a * b)));
} else {
tmp = x + (a * (t + (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.8e+43) or not (z <= 1.75e-29): tmp = z * (y + ((x / z) + (a * b))) else: tmp = x + (a * (t + (z * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.8e+43) || !(z <= 1.75e-29)) tmp = Float64(z * Float64(y + Float64(Float64(x / z) + Float64(a * b)))); 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 ((z <= -5.8e+43) || ~((z <= 1.75e-29))) tmp = z * (y + ((x / z) + (a * b))); else tmp = x + (a * (t + (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.8e+43], N[Not[LessEqual[z, 1.75e-29]], $MachinePrecision]], N[(z * N[(y + N[(N[(x / z), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+43} \lor \neg \left(z \leq 1.75 \cdot 10^{-29}\right):\\
\;\;\;\;z \cdot \left(y + \left(\frac{x}{z} + a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if z < -5.8000000000000004e43 or 1.7499999999999999e-29 < z Initial program 90.9%
associate-+l+90.9%
associate-*l*89.4%
Simplified89.4%
Taylor expanded in z around inf 98.2%
+-commutative98.2%
associate-+l+98.2%
+-commutative98.2%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in b around inf 93.4%
if -5.8000000000000004e43 < z < 1.7499999999999999e-29Initial program 97.9%
associate-+l+97.9%
+-commutative97.9%
fma-define97.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-out99.9%
*-commutative99.9%
remove-double-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 90.8%
Final simplification92.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* z y))))
(if (<= z -1.25e+78)
t_1
(if (<= z 6.5e-74) (+ x (* a t)) (if (<= z 3e+70) t_1 (* b (* z a)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * y);
double tmp;
if (z <= -1.25e+78) {
tmp = t_1;
} else if (z <= 6.5e-74) {
tmp = x + (a * t);
} else if (z <= 3e+70) {
tmp = t_1;
} else {
tmp = b * (z * 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) :: t_1
real(8) :: tmp
t_1 = x + (z * y)
if (z <= (-1.25d+78)) then
tmp = t_1
else if (z <= 6.5d-74) then
tmp = x + (a * t)
else if (z <= 3d+70) then
tmp = t_1
else
tmp = b * (z * a)
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 + (z * y);
double tmp;
if (z <= -1.25e+78) {
tmp = t_1;
} else if (z <= 6.5e-74) {
tmp = x + (a * t);
} else if (z <= 3e+70) {
tmp = t_1;
} else {
tmp = b * (z * a);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * y) tmp = 0 if z <= -1.25e+78: tmp = t_1 elif z <= 6.5e-74: tmp = x + (a * t) elif z <= 3e+70: tmp = t_1 else: tmp = b * (z * a) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * y)) tmp = 0.0 if (z <= -1.25e+78) tmp = t_1; elseif (z <= 6.5e-74) tmp = Float64(x + Float64(a * t)); elseif (z <= 3e+70) tmp = t_1; else tmp = Float64(b * Float64(z * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * y); tmp = 0.0; if (z <= -1.25e+78) tmp = t_1; elseif (z <= 6.5e-74) tmp = x + (a * t); elseif (z <= 3e+70) tmp = t_1; else tmp = b * (z * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+78], t$95$1, If[LessEqual[z, 6.5e-74], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+70], t$95$1, N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot y\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-74}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot a\right)\\
\end{array}
\end{array}
if z < -1.24999999999999996e78 or 6.5000000000000002e-74 < z < 2.99999999999999976e70Initial program 93.9%
associate-+l+93.9%
associate-*l*91.7%
Simplified91.7%
Taylor expanded in b around 0 71.4%
Taylor expanded in a around 0 62.1%
+-commutative62.1%
Simplified62.1%
if -1.24999999999999996e78 < z < 6.5000000000000002e-74Initial program 95.7%
associate-+l+95.7%
associate-*l*98.4%
Simplified98.4%
Taylor expanded in z around 0 76.9%
if 2.99999999999999976e70 < z Initial program 92.7%
associate-+l+92.7%
associate-*l*90.4%
Simplified90.4%
Taylor expanded in z around inf 99.8%
+-commutative99.8%
associate-+l+99.8%
+-commutative99.8%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in z around inf 90.6%
+-commutative90.6%
Simplified90.6%
Taylor expanded in a around inf 61.9%
Taylor expanded in z around 0 59.5%
*-commutative59.5%
associate-*r*64.3%
*-commutative64.3%
Simplified64.3%
Final simplification70.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (* z a))))
(if (<= z -1.7e+147)
t_1
(if (<= z -8e+96) (* z y) (if (<= z 5.2e+71) (+ x (* a t)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (z * a);
double tmp;
if (z <= -1.7e+147) {
tmp = t_1;
} else if (z <= -8e+96) {
tmp = z * y;
} else if (z <= 5.2e+71) {
tmp = x + (a * t);
} 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 = b * (z * a)
if (z <= (-1.7d+147)) then
tmp = t_1
else if (z <= (-8d+96)) then
tmp = z * y
else if (z <= 5.2d+71) then
tmp = x + (a * t)
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 = b * (z * a);
double tmp;
if (z <= -1.7e+147) {
tmp = t_1;
} else if (z <= -8e+96) {
tmp = z * y;
} else if (z <= 5.2e+71) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (z * a) tmp = 0 if z <= -1.7e+147: tmp = t_1 elif z <= -8e+96: tmp = z * y elif z <= 5.2e+71: tmp = x + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(z * a)) tmp = 0.0 if (z <= -1.7e+147) tmp = t_1; elseif (z <= -8e+96) tmp = Float64(z * y); elseif (z <= 5.2e+71) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (z * a); tmp = 0.0; if (z <= -1.7e+147) tmp = t_1; elseif (z <= -8e+96) tmp = z * y; elseif (z <= 5.2e+71) tmp = x + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.7e+147], t$95$1, If[LessEqual[z, -8e+96], N[(z * y), $MachinePrecision], If[LessEqual[z, 5.2e+71], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot a\right)\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -8 \cdot 10^{+96}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+71}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.7e147 or 5.19999999999999983e71 < z Initial program 91.5%
associate-+l+91.5%
associate-*l*87.6%
Simplified87.6%
Taylor expanded in z around inf 98.3%
+-commutative98.3%
associate-+l+98.3%
+-commutative98.3%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in z around inf 86.0%
+-commutative86.0%
Simplified86.0%
Taylor expanded in a around inf 61.0%
Taylor expanded in z around 0 55.6%
*-commutative55.6%
associate-*r*62.5%
*-commutative62.5%
Simplified62.5%
if -1.7e147 < z < -8.0000000000000004e96Initial program 92.9%
associate-+l+92.9%
associate-*l*93.2%
Simplified93.2%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-/l*99.9%
distribute-lft-out99.9%
Simplified99.9%
Taylor expanded in z around inf 92.8%
+-commutative92.8%
Simplified92.8%
Taylor expanded in a around 0 72.5%
*-commutative72.5%
Simplified72.5%
if -8.0000000000000004e96 < z < 5.19999999999999983e71Initial program 96.0%
associate-+l+96.0%
associate-*l*98.2%
Simplified98.2%
Taylor expanded in z around 0 70.1%
Final simplification68.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (* z a))))
(if (<= z -1.52e+147)
t_1
(if (<= z -3.9e+96) (* z y) (if (<= z 1.4e+64) x t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (z * a);
double tmp;
if (z <= -1.52e+147) {
tmp = t_1;
} else if (z <= -3.9e+96) {
tmp = z * y;
} else if (z <= 1.4e+64) {
tmp = 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 = b * (z * a)
if (z <= (-1.52d+147)) then
tmp = t_1
else if (z <= (-3.9d+96)) then
tmp = z * y
else if (z <= 1.4d+64) then
tmp = 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 = b * (z * a);
double tmp;
if (z <= -1.52e+147) {
tmp = t_1;
} else if (z <= -3.9e+96) {
tmp = z * y;
} else if (z <= 1.4e+64) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (z * a) tmp = 0 if z <= -1.52e+147: tmp = t_1 elif z <= -3.9e+96: tmp = z * y elif z <= 1.4e+64: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(z * a)) tmp = 0.0 if (z <= -1.52e+147) tmp = t_1; elseif (z <= -3.9e+96) tmp = Float64(z * y); elseif (z <= 1.4e+64) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (z * a); tmp = 0.0; if (z <= -1.52e+147) tmp = t_1; elseif (z <= -3.9e+96) tmp = z * y; elseif (z <= 1.4e+64) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.52e+147], t$95$1, If[LessEqual[z, -3.9e+96], N[(z * y), $MachinePrecision], If[LessEqual[z, 1.4e+64], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot a\right)\\
\mathbf{if}\;z \leq -1.52 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{+96}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+64}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.51999999999999992e147 or 1.40000000000000012e64 < z Initial program 91.5%
associate-+l+91.5%
associate-*l*87.6%
Simplified87.6%
Taylor expanded in z around inf 98.3%
+-commutative98.3%
associate-+l+98.3%
+-commutative98.3%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in z around inf 86.0%
+-commutative86.0%
Simplified86.0%
Taylor expanded in a around inf 61.0%
Taylor expanded in z around 0 55.6%
*-commutative55.6%
associate-*r*62.5%
*-commutative62.5%
Simplified62.5%
if -1.51999999999999992e147 < z < -3.9e96Initial program 92.9%
associate-+l+92.9%
associate-*l*93.2%
Simplified93.2%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-/l*99.9%
distribute-lft-out99.9%
Simplified99.9%
Taylor expanded in z around inf 92.8%
+-commutative92.8%
Simplified92.8%
Taylor expanded in a around 0 72.5%
*-commutative72.5%
Simplified72.5%
if -3.9e96 < z < 1.40000000000000012e64Initial program 96.0%
associate-+l+96.0%
associate-*l*98.2%
Simplified98.2%
Taylor expanded in z around 0 70.1%
Taylor expanded in x around inf 41.1%
Final simplification48.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (* a b))))
(if (<= z -1.95e+148)
t_1
(if (<= z -4e+96) (* z y) (if (<= z 9.5e+64) x t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a * b);
double tmp;
if (z <= -1.95e+148) {
tmp = t_1;
} else if (z <= -4e+96) {
tmp = z * y;
} else if (z <= 9.5e+64) {
tmp = 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 * (a * b)
if (z <= (-1.95d+148)) then
tmp = t_1
else if (z <= (-4d+96)) then
tmp = z * y
else if (z <= 9.5d+64) then
tmp = 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 * (a * b);
double tmp;
if (z <= -1.95e+148) {
tmp = t_1;
} else if (z <= -4e+96) {
tmp = z * y;
} else if (z <= 9.5e+64) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (a * b) tmp = 0 if z <= -1.95e+148: tmp = t_1 elif z <= -4e+96: tmp = z * y elif z <= 9.5e+64: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(a * b)) tmp = 0.0 if (z <= -1.95e+148) tmp = t_1; elseif (z <= -4e+96) tmp = Float64(z * y); elseif (z <= 9.5e+64) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (a * b); tmp = 0.0; if (z <= -1.95e+148) tmp = t_1; elseif (z <= -4e+96) tmp = z * y; elseif (z <= 9.5e+64) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.95e+148], t$95$1, If[LessEqual[z, -4e+96], N[(z * y), $MachinePrecision], If[LessEqual[z, 9.5e+64], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a \cdot b\right)\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4 \cdot 10^{+96}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+64}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.95000000000000001e148 or 9.50000000000000028e64 < z Initial program 91.5%
associate-+l+91.5%
associate-*l*87.6%
Simplified87.6%
Taylor expanded in z around inf 98.3%
+-commutative98.3%
associate-+l+98.3%
+-commutative98.3%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in z around inf 86.0%
+-commutative86.0%
Simplified86.0%
Taylor expanded in a around inf 61.0%
if -1.95000000000000001e148 < z < -4.0000000000000002e96Initial program 92.9%
associate-+l+92.9%
associate-*l*93.2%
Simplified93.2%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
associate-+l+99.9%
+-commutative99.9%
associate-/l*99.9%
distribute-lft-out99.9%
Simplified99.9%
Taylor expanded in z around inf 92.8%
+-commutative92.8%
Simplified92.8%
Taylor expanded in a around 0 72.5%
*-commutative72.5%
Simplified72.5%
if -4.0000000000000002e96 < z < 9.50000000000000028e64Initial program 96.0%
associate-+l+96.0%
associate-*l*98.2%
Simplified98.2%
Taylor expanded in z around 0 70.1%
Taylor expanded in x around inf 41.1%
(FPCore (x y z t a b) :precision binary64 (if (<= z -9e+43) (* 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 <= -9e+43) {
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 <= (-9d+43)) 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 <= -9e+43) {
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 <= -9e+43: 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 <= -9e+43) 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 <= -9e+43) 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[LessEqual[z, -9e+43], 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 -9 \cdot 10^{+43}:\\
\;\;\;\;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 < -9e43Initial program 86.7%
associate-+l+86.7%
associate-*l*85.2%
Simplified85.2%
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 -9e43 < z Initial program 97.0%
associate-+l+97.0%
associate-*l*97.9%
Simplified97.9%
Final simplification98.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -1.6e-71) (not (<= a 9.5e-37))) (+ 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 <= -1.6e-71) || !(a <= 9.5e-37)) {
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 <= (-1.6d-71)) .or. (.not. (a <= 9.5d-37))) 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 <= -1.6e-71) || !(a <= 9.5e-37)) {
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 <= -1.6e-71) or not (a <= 9.5e-37): 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 <= -1.6e-71) || !(a <= 9.5e-37)) 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 <= -1.6e-71) || ~((a <= 9.5e-37))) 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, -1.6e-71], N[Not[LessEqual[a, 9.5e-37]], $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 -1.6 \cdot 10^{-71} \lor \neg \left(a \leq 9.5 \cdot 10^{-37}\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 < -1.5999999999999999e-71 or 9.49999999999999927e-37 < a Initial program 92.7%
associate-+l+92.7%
+-commutative92.7%
fma-define92.7%
associate-*l*96.6%
*-commutative96.6%
*-commutative96.6%
distribute-rgt-out97.9%
remove-double-neg97.9%
*-commutative97.9%
distribute-lft-neg-out97.9%
sub-neg97.9%
sub-neg97.9%
distribute-lft-neg-out97.9%
*-commutative97.9%
remove-double-neg97.9%
*-commutative97.9%
Simplified97.9%
Taylor expanded in y around 0 91.8%
if -1.5999999999999999e-71 < a < 9.49999999999999927e-37Initial program 97.3%
associate-+l+97.3%
associate-*l*92.8%
Simplified92.8%
Taylor expanded in b around 0 88.4%
Final simplification90.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.75e+96) (not (<= z 1.06e+43))) (* z (+ y (* a b))) (+ x (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.75e+96) || !(z <= 1.06e+43)) {
tmp = z * (y + (a * b));
} 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 ((z <= (-1.75d+96)) .or. (.not. (z <= 1.06d+43))) then
tmp = z * (y + (a * b))
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 ((z <= -1.75e+96) || !(z <= 1.06e+43)) {
tmp = z * (y + (a * b));
} else {
tmp = x + (a * (t + (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.75e+96) or not (z <= 1.06e+43): tmp = z * (y + (a * b)) else: tmp = x + (a * (t + (z * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.75e+96) || !(z <= 1.06e+43)) tmp = Float64(z * Float64(y + Float64(a * b))); 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 ((z <= -1.75e+96) || ~((z <= 1.06e+43))) tmp = z * (y + (a * b)); else tmp = x + (a * (t + (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.75e+96], N[Not[LessEqual[z, 1.06e+43]], $MachinePrecision]], N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+96} \lor \neg \left(z \leq 1.06 \cdot 10^{+43}\right):\\
\;\;\;\;z \cdot \left(y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if z < -1.7499999999999999e96 or 1.06000000000000006e43 < z Initial program 92.5%
associate-+l+92.5%
associate-*l*88.4%
Simplified88.4%
Taylor expanded in z around inf 85.0%
if -1.7499999999999999e96 < z < 1.06000000000000006e43Initial program 95.8%
associate-+l+95.8%
+-commutative95.8%
fma-define95.9%
associate-*l*98.7%
*-commutative98.7%
*-commutative98.7%
distribute-rgt-out99.3%
remove-double-neg99.3%
*-commutative99.3%
distribute-lft-neg-out99.3%
sub-neg99.3%
sub-neg99.3%
distribute-lft-neg-out99.3%
*-commutative99.3%
remove-double-neg99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in y around 0 88.9%
Final simplification87.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.3e+33) (not (<= z 4.2e-18))) (* 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 <= -1.3e+33) || !(z <= 4.2e-18)) {
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 <= (-1.3d+33)) .or. (.not. (z <= 4.2d-18))) 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 <= -1.3e+33) || !(z <= 4.2e-18)) {
tmp = z * (y + (a * b));
} else {
tmp = x + (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.3e+33) or not (z <= 4.2e-18): 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 <= -1.3e+33) || !(z <= 4.2e-18)) 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 <= -1.3e+33) || ~((z <= 4.2e-18))) 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, -1.3e+33], N[Not[LessEqual[z, 4.2e-18]], $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 -1.3 \cdot 10^{+33} \lor \neg \left(z \leq 4.2 \cdot 10^{-18}\right):\\
\;\;\;\;z \cdot \left(y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot t\\
\end{array}
\end{array}
if z < -1.2999999999999999e33 or 4.19999999999999999e-18 < z Initial program 90.9%
associate-+l+90.9%
associate-*l*89.4%
Simplified89.4%
Taylor expanded in z around inf 79.6%
if -1.2999999999999999e33 < z < 4.19999999999999999e-18Initial program 97.9%
associate-+l+97.9%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in z around 0 77.3%
Final simplification78.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -6.4e-77) (not (<= a 1160000000.0))) (* 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 <= -6.4e-77) || !(a <= 1160000000.0)) {
tmp = 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 <= (-6.4d-77)) .or. (.not. (a <= 1160000000.0d0))) then
tmp = 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 <= -6.4e-77) || !(a <= 1160000000.0)) {
tmp = a * (t + (z * b));
} else {
tmp = x + (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -6.4e-77) or not (a <= 1160000000.0): tmp = a * (t + (z * b)) else: tmp = x + (z * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -6.4e-77) || !(a <= 1160000000.0)) tmp = 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 <= -6.4e-77) || ~((a <= 1160000000.0))) tmp = 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, -6.4e-77], N[Not[LessEqual[a, 1160000000.0]], $MachinePrecision]], N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.4 \cdot 10^{-77} \lor \neg \left(a \leq 1160000000\right):\\
\;\;\;\;a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot y\\
\end{array}
\end{array}
if a < -6.39999999999999999e-77 or 1.16e9 < a Initial program 92.5%
associate-+l+92.5%
+-commutative92.5%
fma-define92.5%
associate-*l*96.5%
*-commutative96.5%
*-commutative96.5%
distribute-rgt-out97.8%
remove-double-neg97.8%
*-commutative97.8%
distribute-lft-neg-out97.8%
sub-neg97.8%
sub-neg97.8%
distribute-lft-neg-out97.8%
*-commutative97.8%
remove-double-neg97.8%
*-commutative97.8%
Simplified97.8%
Taylor expanded in y around 0 91.5%
Taylor expanded in x around 0 76.1%
if -6.39999999999999999e-77 < a < 1.16e9Initial program 97.4%
associate-+l+97.4%
associate-*l*93.1%
Simplified93.1%
Taylor expanded in b around 0 88.0%
Taylor expanded in a around 0 79.9%
+-commutative79.9%
Simplified79.9%
Final simplification77.7%
(FPCore (x y z t a b) :precision binary64 (if (<= z -3.9e+96) (* z y) (if (<= z 5.8e+71) x (* a (* z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.9e+96) {
tmp = z * y;
} else if (z <= 5.8e+71) {
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 (z <= (-3.9d+96)) then
tmp = z * y
else if (z <= 5.8d+71) 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 (z <= -3.9e+96) {
tmp = z * y;
} else if (z <= 5.8e+71) {
tmp = x;
} else {
tmp = a * (z * b);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3.9e+96: tmp = z * y elif z <= 5.8e+71: tmp = x else: tmp = a * (z * b) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.9e+96) tmp = Float64(z * y); elseif (z <= 5.8e+71) 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 (z <= -3.9e+96) tmp = z * y; elseif (z <= 5.8e+71) tmp = x; else tmp = a * (z * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.9e+96], N[(z * y), $MachinePrecision], If[LessEqual[z, 5.8e+71], x, N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+96}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+71}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if z < -3.9e96Initial program 90.8%
associate-+l+90.8%
associate-*l*86.7%
Simplified86.7%
Taylor expanded in z around inf 97.5%
+-commutative97.5%
associate-+l+97.5%
+-commutative97.5%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in z around inf 83.8%
+-commutative83.8%
Simplified83.8%
Taylor expanded in a around 0 52.4%
*-commutative52.4%
Simplified52.4%
if -3.9e96 < z < 5.80000000000000014e71Initial program 96.0%
associate-+l+96.0%
associate-*l*98.2%
Simplified98.2%
Taylor expanded in z around 0 70.1%
Taylor expanded in x around inf 41.1%
if 5.80000000000000014e71 < z Initial program 92.7%
associate-+l+92.7%
+-commutative92.7%
fma-define92.7%
associate-*l*90.4%
*-commutative90.4%
*-commutative90.4%
distribute-rgt-out90.4%
remove-double-neg90.4%
*-commutative90.4%
distribute-lft-neg-out90.4%
sub-neg90.4%
sub-neg90.4%
distribute-lft-neg-out90.4%
*-commutative90.4%
remove-double-neg90.4%
*-commutative90.4%
Simplified90.4%
Taylor expanded in y around 0 68.8%
Taylor expanded in z around inf 59.5%
*-commutative59.5%
Simplified59.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -6.5e+96) (not (<= z 1e+43))) (* z y) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.5e+96) || !(z <= 1e+43)) {
tmp = z * y;
} 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 ((z <= (-6.5d+96)) .or. (.not. (z <= 1d+43))) then
tmp = z * y
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 ((z <= -6.5e+96) || !(z <= 1e+43)) {
tmp = z * y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.5e+96) or not (z <= 1e+43): tmp = z * y else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.5e+96) || !(z <= 1e+43)) tmp = Float64(z * y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.5e+96) || ~((z <= 1e+43))) tmp = z * y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.5e+96], N[Not[LessEqual[z, 1e+43]], $MachinePrecision]], N[(z * y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+96} \lor \neg \left(z \leq 10^{+43}\right):\\
\;\;\;\;z \cdot y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -6.5e96 or 1.00000000000000001e43 < z Initial program 92.4%
associate-+l+92.4%
associate-*l*89.4%
Simplified89.4%
Taylor expanded in z around inf 98.7%
+-commutative98.7%
associate-+l+98.7%
+-commutative98.7%
associate-/l*99.8%
distribute-lft-out99.8%
Simplified99.8%
Taylor expanded in z around inf 85.9%
+-commutative85.9%
Simplified85.9%
Taylor expanded in a around 0 45.8%
*-commutative45.8%
Simplified45.8%
if -6.5e96 < z < 1.00000000000000001e43Initial program 95.9%
associate-+l+95.9%
associate-*l*98.1%
Simplified98.1%
Taylor expanded in z around 0 71.7%
Taylor expanded in x around inf 42.2%
Final simplification43.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9.6e+85) (not (<= t 1.16e+39))) (* a t) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9.6e+85) || !(t <= 1.16e+39)) {
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 <= (-9.6d+85)) .or. (.not. (t <= 1.16d+39))) 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 <= -9.6e+85) || !(t <= 1.16e+39)) {
tmp = a * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -9.6e+85) or not (t <= 1.16e+39): tmp = a * t else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -9.6e+85) || !(t <= 1.16e+39)) 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 <= -9.6e+85) || ~((t <= 1.16e+39))) tmp = a * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -9.6e+85], N[Not[LessEqual[t, 1.16e+39]], $MachinePrecision]], N[(a * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.6 \cdot 10^{+85} \lor \neg \left(t \leq 1.16 \cdot 10^{+39}\right):\\
\;\;\;\;a \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -9.59999999999999986e85 or 1.16000000000000003e39 < t Initial program 94.0%
associate-+l+94.0%
associate-*l*91.8%
Simplified91.8%
Taylor expanded in z around 0 73.9%
Taylor expanded in x around 0 57.5%
if -9.59999999999999986e85 < t < 1.16000000000000003e39Initial program 94.9%
associate-+l+94.9%
associate-*l*96.5%
Simplified96.5%
Taylor expanded in z around 0 43.8%
Taylor expanded in x around inf 36.2%
Final simplification43.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 94.6%
associate-+l+94.6%
associate-*l*95.0%
Simplified95.0%
Taylor expanded in z around 0 53.7%
Taylor expanded in x around inf 30.0%
(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 2024170
(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)))