
(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 17 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 -4.5e+185) (not (<= z 8.5e+185))) (+ (* z (+ y (* a b))) x) (+ (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 <= -4.5e+185) || !(z <= 8.5e+185)) {
tmp = (z * (y + (a * b))) + x;
} 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 <= -4.5e+185) || !(z <= 8.5e+185)) tmp = Float64(Float64(z * Float64(y + Float64(a * b))) + x); 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[Or[LessEqual[z, -4.5e+185], N[Not[LessEqual[z, 8.5e+185]], $MachinePrecision]], N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $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 -4.5 \cdot 10^{+185} \lor \neg \left(z \leq 8.5 \cdot 10^{+185}\right):\\
\;\;\;\;z \cdot \left(y + a \cdot b\right) + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right) + a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if z < -4.5000000000000002e185 or 8.50000000000000013e185 < z Initial program 71.4%
associate-+l+71.4%
*-commutative71.4%
associate-*l*75.0%
Simplified75.0%
Taylor expanded in t around 0 77.1%
+-commutative77.1%
associate-*r*85.7%
distribute-rgt-in98.2%
+-commutative98.2%
Simplified98.2%
if -4.5000000000000002e185 < z < 8.50000000000000013e185Initial program 96.1%
associate-+l+96.1%
+-commutative96.1%
fma-def96.1%
associate-*l*97.5%
*-commutative97.5%
*-commutative97.5%
distribute-rgt-out98.5%
*-commutative98.5%
Simplified98.5%
Final simplification98.4%
(FPCore (x y z t a b) :precision binary64 (if (<= z -2e+185) (+ (* z (+ y (* a b))) x) (fma a (+ t (* z b)) (fma y z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2e+185) {
tmp = (z * (y + (a * b))) + x;
} else {
tmp = fma(a, (t + (z * b)), fma(y, z, x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2e+185) tmp = Float64(Float64(z * Float64(y + Float64(a * b))) + x); else tmp = fma(a, Float64(t + Float64(z * b)), fma(y, z, x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2e+185], N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision] + N[(y * z + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+185}:\\
\;\;\;\;z \cdot \left(y + a \cdot b\right) + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, t + z \cdot b, \mathsf{fma}\left(y, z, x\right)\right)\\
\end{array}
\end{array}
if z < -2e185Initial program 69.6%
associate-+l+69.6%
*-commutative69.6%
associate-*l*69.6%
Simplified69.6%
Taylor expanded in t around 0 69.9%
+-commutative69.9%
associate-*r*82.6%
distribute-rgt-in100.0%
+-commutative100.0%
Simplified100.0%
if -2e185 < z Initial program 92.8%
associate-+l+92.8%
+-commutative92.8%
*-commutative92.8%
associate-*l*94.1%
*-commutative94.1%
distribute-lft-out96.2%
fma-def96.6%
*-commutative96.6%
+-commutative96.6%
fma-def96.6%
Simplified96.6%
Final simplification96.9%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ (+ (+ x (* z y)) (* a t)) (* b (* z a))))) (if (<= t_1 INFINITY) t_1 (* z (+ y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x + (z * y)) + (a * t)) + (b * (z * a));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * (y + (a * b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x + (z * y)) + (a * t)) + (b * (z * a));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * (y + (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x + (z * y)) + (a * t)) + (b * (z * a)) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * (y + (a * b)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x + Float64(z * y)) + Float64(a * t)) + Float64(b * Float64(z * a))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(y + Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x + (z * y)) + (a * t)) + (b * (z * a)); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * (y + (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(a * t), $MachinePrecision]), $MachinePrecision] + N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x + z \cdot y\right) + a \cdot t\right) + b \cdot \left(z \cdot a\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y + a \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) < +inf.0Initial program 97.2%
if +inf.0 < (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) Initial program 0.0%
associate-+l+0.0%
*-commutative0.0%
associate-*l*5.9%
Simplified5.9%
Taylor expanded in z around inf 82.4%
Final simplification96.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* z (+ y (* a b))) x)))
(if (<= z -3.7e-8)
t_1
(if (<= z 2.8e-9)
(+ x (* a (+ t (* z b))))
(if (<= z 5.8e+185) (+ (+ (* a t) (* z y)) (* b (* z a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * (y + (a * b))) + x;
double tmp;
if (z <= -3.7e-8) {
tmp = t_1;
} else if (z <= 2.8e-9) {
tmp = x + (a * (t + (z * b)));
} else if (z <= 5.8e+185) {
tmp = ((a * t) + (z * y)) + (b * (z * a));
} 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))) + x
if (z <= (-3.7d-8)) then
tmp = t_1
else if (z <= 2.8d-9) then
tmp = x + (a * (t + (z * b)))
else if (z <= 5.8d+185) then
tmp = ((a * t) + (z * y)) + (b * (z * a))
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))) + x;
double tmp;
if (z <= -3.7e-8) {
tmp = t_1;
} else if (z <= 2.8e-9) {
tmp = x + (a * (t + (z * b)));
} else if (z <= 5.8e+185) {
tmp = ((a * t) + (z * y)) + (b * (z * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * (y + (a * b))) + x tmp = 0 if z <= -3.7e-8: tmp = t_1 elif z <= 2.8e-9: tmp = x + (a * (t + (z * b))) elif z <= 5.8e+185: tmp = ((a * t) + (z * y)) + (b * (z * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(y + Float64(a * b))) + x) tmp = 0.0 if (z <= -3.7e-8) tmp = t_1; elseif (z <= 2.8e-9) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); elseif (z <= 5.8e+185) tmp = Float64(Float64(Float64(a * t) + Float64(z * y)) + Float64(b * Float64(z * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * (y + (a * b))) + x; tmp = 0.0; if (z <= -3.7e-8) tmp = t_1; elseif (z <= 2.8e-9) tmp = x + (a * (t + (z * b))); elseif (z <= 5.8e+185) tmp = ((a * t) + (z * y)) + (b * (z * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -3.7e-8], t$95$1, If[LessEqual[z, 2.8e-9], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.8e+185], N[(N[(N[(a * t), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(y + a \cdot b\right) + x\\
\mathbf{if}\;z \leq -3.7 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-9}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+185}:\\
\;\;\;\;\left(a \cdot t + z \cdot y\right) + b \cdot \left(z \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -3.7e-8 or 5.79999999999999976e185 < z Initial program 80.7%
associate-+l+80.7%
*-commutative80.7%
associate-*l*84.9%
Simplified84.9%
Taylor expanded in t around 0 82.4%
+-commutative82.4%
associate-*r*88.6%
distribute-rgt-in96.1%
+-commutative96.1%
Simplified96.1%
if -3.7e-8 < z < 2.79999999999999984e-9Initial program 99.1%
associate-+l+99.1%
+-commutative99.1%
fma-def99.1%
associate-*l*99.1%
*-commutative99.1%
*-commutative99.1%
distribute-rgt-out100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 89.9%
if 2.79999999999999984e-9 < z < 5.79999999999999976e185Initial program 90.6%
Taylor expanded in x around 0 88.8%
Final simplification91.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -2.6e+199) (not (<= a 1.9e+73))) (+ x (* a (+ t (* z b)))) (+ (+ x (* z y)) (+ (* a t) (* z (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -2.6e+199) || !(a <= 1.9e+73)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = (x + (z * y)) + ((a * t) + (z * (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 <= (-2.6d+199)) .or. (.not. (a <= 1.9d+73))) then
tmp = x + (a * (t + (z * b)))
else
tmp = (x + (z * y)) + ((a * t) + (z * (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 <= -2.6e+199) || !(a <= 1.9e+73)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = (x + (z * y)) + ((a * t) + (z * (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -2.6e+199) or not (a <= 1.9e+73): tmp = x + (a * (t + (z * b))) else: tmp = (x + (z * y)) + ((a * t) + (z * (a * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -2.6e+199) || !(a <= 1.9e+73)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(Float64(x + Float64(z * y)) + Float64(Float64(a * t) + Float64(z * Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -2.6e+199) || ~((a <= 1.9e+73))) tmp = x + (a * (t + (z * b))); else tmp = (x + (z * y)) + ((a * t) + (z * (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -2.6e+199], N[Not[LessEqual[a, 1.9e+73]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(N[(a * t), $MachinePrecision] + N[(z * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{+199} \lor \neg \left(a \leq 1.9 \cdot 10^{+73}\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + z \cdot y\right) + \left(a \cdot t + z \cdot \left(a \cdot b\right)\right)\\
\end{array}
\end{array}
if a < -2.6000000000000001e199 or 1.90000000000000011e73 < a Initial program 80.1%
associate-+l+80.1%
+-commutative80.1%
fma-def80.1%
associate-*l*86.4%
*-commutative86.4%
*-commutative86.4%
distribute-rgt-out96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in y around 0 91.3%
if -2.6000000000000001e199 < a < 1.90000000000000011e73Initial program 96.4%
associate-+l+96.4%
*-commutative96.4%
associate-*l*97.0%
Simplified97.0%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* z b))))
(if (<= a -3.85e-19)
t_1
(if (<= a 4.6e-148)
(* z y)
(if (<= a 0.0215)
x
(if (or (<= a 2.3e+156) (and (not (<= a 1.55e+235)) (<= a 1.22e+275)))
t_1
(* a t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (z * b);
double tmp;
if (a <= -3.85e-19) {
tmp = t_1;
} else if (a <= 4.6e-148) {
tmp = z * y;
} else if (a <= 0.0215) {
tmp = x;
} else if ((a <= 2.3e+156) || (!(a <= 1.55e+235) && (a <= 1.22e+275))) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = a * (z * b)
if (a <= (-3.85d-19)) then
tmp = t_1
else if (a <= 4.6d-148) then
tmp = z * y
else if (a <= 0.0215d0) then
tmp = x
else if ((a <= 2.3d+156) .or. (.not. (a <= 1.55d+235)) .and. (a <= 1.22d+275)) then
tmp = t_1
else
tmp = 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 t_1 = a * (z * b);
double tmp;
if (a <= -3.85e-19) {
tmp = t_1;
} else if (a <= 4.6e-148) {
tmp = z * y;
} else if (a <= 0.0215) {
tmp = x;
} else if ((a <= 2.3e+156) || (!(a <= 1.55e+235) && (a <= 1.22e+275))) {
tmp = t_1;
} else {
tmp = a * t;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (z * b) tmp = 0 if a <= -3.85e-19: tmp = t_1 elif a <= 4.6e-148: tmp = z * y elif a <= 0.0215: tmp = x elif (a <= 2.3e+156) or (not (a <= 1.55e+235) and (a <= 1.22e+275)): tmp = t_1 else: tmp = a * t return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(z * b)) tmp = 0.0 if (a <= -3.85e-19) tmp = t_1; elseif (a <= 4.6e-148) tmp = Float64(z * y); elseif (a <= 0.0215) tmp = x; elseif ((a <= 2.3e+156) || (!(a <= 1.55e+235) && (a <= 1.22e+275))) tmp = t_1; else tmp = Float64(a * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (z * b); tmp = 0.0; if (a <= -3.85e-19) tmp = t_1; elseif (a <= 4.6e-148) tmp = z * y; elseif (a <= 0.0215) tmp = x; elseif ((a <= 2.3e+156) || (~((a <= 1.55e+235)) && (a <= 1.22e+275))) tmp = t_1; else tmp = a * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.85e-19], t$95$1, If[LessEqual[a, 4.6e-148], N[(z * y), $MachinePrecision], If[LessEqual[a, 0.0215], x, If[Or[LessEqual[a, 2.3e+156], And[N[Not[LessEqual[a, 1.55e+235]], $MachinePrecision], LessEqual[a, 1.22e+275]]], t$95$1, N[(a * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(z \cdot b\right)\\
\mathbf{if}\;a \leq -3.85 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-148}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;a \leq 0.0215:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+156} \lor \neg \left(a \leq 1.55 \cdot 10^{+235}\right) \land a \leq 1.22 \cdot 10^{+275}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
\end{array}
if a < -3.85000000000000022e-19 or 0.021499999999999998 < a < 2.2999999999999999e156 or 1.55000000000000005e235 < a < 1.22e275Initial program 85.9%
associate-+l+85.9%
*-commutative85.9%
associate-*l*80.6%
Simplified80.6%
*-commutative80.6%
associate-*r*91.8%
distribute-rgt-in97.2%
add-cube-cbrt96.5%
associate-*r*96.6%
cbrt-unprod93.2%
pow293.2%
+-commutative93.2%
fma-def93.2%
+-commutative93.2%
fma-def93.2%
Applied egg-rr93.2%
Taylor expanded in b around inf 50.9%
if -3.85000000000000022e-19 < a < 4.59999999999999995e-148Initial program 97.6%
associate-+l+97.6%
*-commutative97.6%
associate-*l*97.7%
Simplified97.7%
Taylor expanded in y around inf 51.2%
*-commutative51.2%
Simplified51.2%
if 4.59999999999999995e-148 < a < 0.021499999999999998Initial program 99.9%
associate-+l+99.9%
*-commutative99.9%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in x around inf 45.2%
if 2.2999999999999999e156 < a < 1.55000000000000005e235 or 1.22e275 < a Initial program 79.3%
associate-+l+79.3%
*-commutative79.3%
associate-*l*72.7%
Simplified72.7%
*-commutative72.7%
associate-*r*82.7%
distribute-rgt-in93.1%
add-cube-cbrt92.5%
associate-*r*92.4%
cbrt-unprod89.5%
pow289.5%
+-commutative89.5%
fma-def89.5%
+-commutative89.5%
fma-def89.5%
Applied egg-rr89.5%
Taylor expanded in t around inf 66.4%
*-commutative66.4%
Simplified66.4%
Final simplification52.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.00095)
(* z y)
(if (<= z -5e-155)
(* a t)
(if (<= z 2.5e-261)
x
(if (<= z 1.02e-204)
(* a t)
(if (<= z 1.8e-153) x (if (<= z 5.7e+35) (* a t) (* z y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.00095) {
tmp = z * y;
} else if (z <= -5e-155) {
tmp = a * t;
} else if (z <= 2.5e-261) {
tmp = x;
} else if (z <= 1.02e-204) {
tmp = a * t;
} else if (z <= 1.8e-153) {
tmp = x;
} else if (z <= 5.7e+35) {
tmp = a * t;
} else {
tmp = 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 <= (-0.00095d0)) then
tmp = z * y
else if (z <= (-5d-155)) then
tmp = a * t
else if (z <= 2.5d-261) then
tmp = x
else if (z <= 1.02d-204) then
tmp = a * t
else if (z <= 1.8d-153) then
tmp = x
else if (z <= 5.7d+35) then
tmp = a * t
else
tmp = 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 <= -0.00095) {
tmp = z * y;
} else if (z <= -5e-155) {
tmp = a * t;
} else if (z <= 2.5e-261) {
tmp = x;
} else if (z <= 1.02e-204) {
tmp = a * t;
} else if (z <= 1.8e-153) {
tmp = x;
} else if (z <= 5.7e+35) {
tmp = a * t;
} else {
tmp = z * y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.00095: tmp = z * y elif z <= -5e-155: tmp = a * t elif z <= 2.5e-261: tmp = x elif z <= 1.02e-204: tmp = a * t elif z <= 1.8e-153: tmp = x elif z <= 5.7e+35: tmp = a * t else: tmp = z * y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.00095) tmp = Float64(z * y); elseif (z <= -5e-155) tmp = Float64(a * t); elseif (z <= 2.5e-261) tmp = x; elseif (z <= 1.02e-204) tmp = Float64(a * t); elseif (z <= 1.8e-153) tmp = x; elseif (z <= 5.7e+35) tmp = Float64(a * t); else tmp = Float64(z * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.00095) tmp = z * y; elseif (z <= -5e-155) tmp = a * t; elseif (z <= 2.5e-261) tmp = x; elseif (z <= 1.02e-204) tmp = a * t; elseif (z <= 1.8e-153) tmp = x; elseif (z <= 5.7e+35) tmp = a * t; else tmp = z * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.00095], N[(z * y), $MachinePrecision], If[LessEqual[z, -5e-155], N[(a * t), $MachinePrecision], If[LessEqual[z, 2.5e-261], x, If[LessEqual[z, 1.02e-204], N[(a * t), $MachinePrecision], If[LessEqual[z, 1.8e-153], x, If[LessEqual[z, 5.7e+35], N[(a * t), $MachinePrecision], N[(z * y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.00095:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-155}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-261}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-204}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-153}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+35}:\\
\;\;\;\;a \cdot t\\
\mathbf{else}:\\
\;\;\;\;z \cdot y\\
\end{array}
\end{array}
if z < -9.49999999999999998e-4 or 5.69999999999999993e35 < z Initial program 83.0%
associate-+l+83.0%
*-commutative83.0%
associate-*l*89.1%
Simplified89.1%
Taylor expanded in y around inf 46.1%
*-commutative46.1%
Simplified46.1%
if -9.49999999999999998e-4 < z < -4.9999999999999999e-155 or 2.4999999999999999e-261 < z < 1.0200000000000001e-204 or 1.7999999999999999e-153 < z < 5.69999999999999993e35Initial program 97.4%
associate-+l+97.4%
*-commutative97.4%
associate-*l*85.3%
Simplified85.3%
*-commutative85.3%
associate-*r*97.3%
distribute-rgt-in99.9%
add-cube-cbrt99.0%
associate-*r*99.0%
cbrt-unprod83.5%
pow283.5%
+-commutative83.5%
fma-def83.5%
+-commutative83.5%
fma-def83.5%
Applied egg-rr83.5%
Taylor expanded in t around inf 47.2%
*-commutative47.2%
Simplified47.2%
if -4.9999999999999999e-155 < z < 2.4999999999999999e-261 or 1.0200000000000001e-204 < z < 1.7999999999999999e-153Initial program 100.0%
associate-+l+100.0%
*-commutative100.0%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around inf 60.3%
Final simplification49.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -4.4e-15)
(* a (* z b))
(if (<= a 2.05e-148)
(* z y)
(if (<= a 0.005)
x
(if (or (<= a 2.05e+160) (not (<= a 7.6e+234)))
(* b (* z a))
(* a t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -4.4e-15) {
tmp = a * (z * b);
} else if (a <= 2.05e-148) {
tmp = z * y;
} else if (a <= 0.005) {
tmp = x;
} else if ((a <= 2.05e+160) || !(a <= 7.6e+234)) {
tmp = b * (z * a);
} else {
tmp = 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 (a <= (-4.4d-15)) then
tmp = a * (z * b)
else if (a <= 2.05d-148) then
tmp = z * y
else if (a <= 0.005d0) then
tmp = x
else if ((a <= 2.05d+160) .or. (.not. (a <= 7.6d+234))) then
tmp = b * (z * a)
else
tmp = 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 (a <= -4.4e-15) {
tmp = a * (z * b);
} else if (a <= 2.05e-148) {
tmp = z * y;
} else if (a <= 0.005) {
tmp = x;
} else if ((a <= 2.05e+160) || !(a <= 7.6e+234)) {
tmp = b * (z * a);
} else {
tmp = a * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -4.4e-15: tmp = a * (z * b) elif a <= 2.05e-148: tmp = z * y elif a <= 0.005: tmp = x elif (a <= 2.05e+160) or not (a <= 7.6e+234): tmp = b * (z * a) else: tmp = a * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -4.4e-15) tmp = Float64(a * Float64(z * b)); elseif (a <= 2.05e-148) tmp = Float64(z * y); elseif (a <= 0.005) tmp = x; elseif ((a <= 2.05e+160) || !(a <= 7.6e+234)) tmp = Float64(b * Float64(z * a)); else tmp = Float64(a * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -4.4e-15) tmp = a * (z * b); elseif (a <= 2.05e-148) tmp = z * y; elseif (a <= 0.005) tmp = x; elseif ((a <= 2.05e+160) || ~((a <= 7.6e+234))) tmp = b * (z * a); else tmp = a * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -4.4e-15], N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-148], N[(z * y), $MachinePrecision], If[LessEqual[a, 0.005], x, If[Or[LessEqual[a, 2.05e+160], N[Not[LessEqual[a, 7.6e+234]], $MachinePrecision]], N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision], N[(a * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.4 \cdot 10^{-15}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-148}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;a \leq 0.005:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+160} \lor \neg \left(a \leq 7.6 \cdot 10^{+234}\right):\\
\;\;\;\;b \cdot \left(z \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
\end{array}
if a < -4.39999999999999971e-15Initial program 81.1%
associate-+l+81.1%
*-commutative81.1%
associate-*l*80.9%
Simplified80.9%
*-commutative80.9%
associate-*r*91.0%
distribute-rgt-in96.9%
add-cube-cbrt96.4%
associate-*r*96.4%
cbrt-unprod94.7%
pow294.7%
+-commutative94.7%
fma-def94.7%
+-commutative94.7%
fma-def94.7%
Applied egg-rr94.7%
Taylor expanded in b around inf 48.9%
if -4.39999999999999971e-15 < a < 2.0500000000000001e-148Initial program 97.6%
associate-+l+97.6%
*-commutative97.6%
associate-*l*97.7%
Simplified97.7%
Taylor expanded in y around inf 51.2%
*-commutative51.2%
Simplified51.2%
if 2.0500000000000001e-148 < a < 0.0050000000000000001Initial program 99.9%
associate-+l+99.9%
*-commutative99.9%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in x around inf 45.2%
if 0.0050000000000000001 < a < 2.04999999999999999e160 or 7.6000000000000001e234 < a Initial program 88.4%
associate-+l+88.4%
*-commutative88.4%
associate-*l*75.4%
Simplified75.4%
*-commutative75.4%
associate-*r*88.4%
distribute-rgt-in96.1%
add-cube-cbrt95.3%
associate-*r*95.3%
cbrt-unprod90.2%
pow290.2%
+-commutative90.2%
fma-def90.2%
+-commutative90.2%
fma-def90.2%
Applied egg-rr90.2%
Taylor expanded in b around inf 49.8%
associate-*r*46.1%
*-commutative46.1%
associate-*l*51.5%
Simplified51.5%
if 2.04999999999999999e160 < a < 7.6000000000000001e234Initial program 85.7%
associate-+l+85.7%
*-commutative85.7%
associate-*l*81.3%
Simplified81.3%
*-commutative81.3%
associate-*r*90.4%
distribute-rgt-in95.2%
add-cube-cbrt94.6%
associate-*r*94.5%
cbrt-unprod90.3%
pow290.3%
+-commutative90.3%
fma-def90.3%
+-commutative90.3%
fma-def90.3%
Applied egg-rr90.3%
Taylor expanded in t around inf 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification50.9%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= a -2.7e-14)
(not (or (<= a -5e-102) (and (not (<= a -6.1e-118)) (<= a 0.00021)))))
(* 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 <= -2.7e-14) || !((a <= -5e-102) || (!(a <= -6.1e-118) && (a <= 0.00021)))) {
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 <= (-2.7d-14)) .or. (.not. (a <= (-5d-102)) .or. (.not. (a <= (-6.1d-118))) .and. (a <= 0.00021d0))) 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 <= -2.7e-14) || !((a <= -5e-102) || (!(a <= -6.1e-118) && (a <= 0.00021)))) {
tmp = a * (t + (z * b));
} else {
tmp = x + (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -2.7e-14) or not ((a <= -5e-102) or (not (a <= -6.1e-118) and (a <= 0.00021))): 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 <= -2.7e-14) || !((a <= -5e-102) || (!(a <= -6.1e-118) && (a <= 0.00021)))) 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 <= -2.7e-14) || ~(((a <= -5e-102) || (~((a <= -6.1e-118)) && (a <= 0.00021))))) 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, -2.7e-14], N[Not[Or[LessEqual[a, -5e-102], And[N[Not[LessEqual[a, -6.1e-118]], $MachinePrecision], LessEqual[a, 0.00021]]]], $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 -2.7 \cdot 10^{-14} \lor \neg \left(a \leq -5 \cdot 10^{-102} \lor \neg \left(a \leq -6.1 \cdot 10^{-118}\right) \land a \leq 0.00021\right):\\
\;\;\;\;a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot y\\
\end{array}
\end{array}
if a < -2.6999999999999999e-14 or -5.00000000000000026e-102 < a < -6.09999999999999985e-118 or 2.1000000000000001e-4 < a Initial program 85.3%
associate-+l+85.3%
*-commutative85.3%
associate-*l*80.1%
Simplified80.1%
*-commutative80.1%
associate-*r*90.5%
distribute-rgt-in96.5%
add-cube-cbrt95.8%
associate-*r*95.8%
cbrt-unprod90.2%
pow290.2%
+-commutative90.2%
fma-def90.2%
+-commutative90.2%
fma-def90.2%
Applied egg-rr90.2%
Taylor expanded in a around inf 77.3%
if -2.6999999999999999e-14 < a < -5.00000000000000026e-102 or -6.09999999999999985e-118 < a < 2.1000000000000001e-4Initial program 98.1%
associate-+l+98.1%
*-commutative98.1%
associate-*l*98.1%
Simplified98.1%
Taylor expanded in a around 0 83.2%
Final simplification79.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* z (+ y (* a b))) x)))
(if (<= z -0.0009)
t_1
(if (<= z 2.1e+22)
(+ x (* a (+ t (* z b))))
(if (<= z 1.1e+130) (+ (+ x (* z y)) (* 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))) + x;
double tmp;
if (z <= -0.0009) {
tmp = t_1;
} else if (z <= 2.1e+22) {
tmp = x + (a * (t + (z * b)));
} else if (z <= 1.1e+130) {
tmp = (x + (z * y)) + (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))) + x
if (z <= (-0.0009d0)) then
tmp = t_1
else if (z <= 2.1d+22) then
tmp = x + (a * (t + (z * b)))
else if (z <= 1.1d+130) then
tmp = (x + (z * y)) + (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))) + x;
double tmp;
if (z <= -0.0009) {
tmp = t_1;
} else if (z <= 2.1e+22) {
tmp = x + (a * (t + (z * b)));
} else if (z <= 1.1e+130) {
tmp = (x + (z * y)) + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * (y + (a * b))) + x tmp = 0 if z <= -0.0009: tmp = t_1 elif z <= 2.1e+22: tmp = x + (a * (t + (z * b))) elif z <= 1.1e+130: tmp = (x + (z * y)) + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(y + Float64(a * b))) + x) tmp = 0.0 if (z <= -0.0009) tmp = t_1; elseif (z <= 2.1e+22) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); elseif (z <= 1.1e+130) tmp = Float64(Float64(x + Float64(z * y)) + 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))) + x; tmp = 0.0; if (z <= -0.0009) tmp = t_1; elseif (z <= 2.1e+22) tmp = x + (a * (t + (z * b))); elseif (z <= 1.1e+130) tmp = (x + (z * y)) + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -0.0009], t$95$1, If[LessEqual[z, 2.1e+22], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+130], N[(N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(y + a \cdot b\right) + x\\
\mathbf{if}\;z \leq -0.0009:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+22}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+130}:\\
\;\;\;\;\left(x + z \cdot y\right) + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -8.9999999999999998e-4 or 1.09999999999999997e130 < z Initial program 83.3%
associate-+l+83.3%
*-commutative83.3%
associate-*l*87.0%
Simplified87.0%
Taylor expanded in t around 0 83.1%
+-commutative83.1%
associate-*r*89.3%
distribute-rgt-in95.8%
+-commutative95.8%
Simplified95.8%
if -8.9999999999999998e-4 < z < 2.0999999999999998e22Initial program 99.2%
associate-+l+99.2%
+-commutative99.2%
fma-def99.2%
associate-*l*99.1%
*-commutative99.1%
*-commutative99.1%
distribute-rgt-out99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 89.2%
if 2.0999999999999998e22 < z < 1.09999999999999997e130Initial program 80.2%
associate-+l+80.2%
*-commutative80.2%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in t around inf 88.0%
Final simplification91.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* z y))) (t_2 (* b (* z a))))
(if (<= b -5.8e+26)
t_2
(if (<= b 0.0066)
t_1
(if (<= b 4.5e+18) (* a t) (if (<= b 1.18e+39) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * y);
double t_2 = b * (z * a);
double tmp;
if (b <= -5.8e+26) {
tmp = t_2;
} else if (b <= 0.0066) {
tmp = t_1;
} else if (b <= 4.5e+18) {
tmp = a * t;
} else if (b <= 1.18e+39) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x + (z * y)
t_2 = b * (z * a)
if (b <= (-5.8d+26)) then
tmp = t_2
else if (b <= 0.0066d0) then
tmp = t_1
else if (b <= 4.5d+18) then
tmp = a * t
else if (b <= 1.18d+39) then
tmp = t_1
else
tmp = t_2
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 t_2 = b * (z * a);
double tmp;
if (b <= -5.8e+26) {
tmp = t_2;
} else if (b <= 0.0066) {
tmp = t_1;
} else if (b <= 4.5e+18) {
tmp = a * t;
} else if (b <= 1.18e+39) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * y) t_2 = b * (z * a) tmp = 0 if b <= -5.8e+26: tmp = t_2 elif b <= 0.0066: tmp = t_1 elif b <= 4.5e+18: tmp = a * t elif b <= 1.18e+39: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * y)) t_2 = Float64(b * Float64(z * a)) tmp = 0.0 if (b <= -5.8e+26) tmp = t_2; elseif (b <= 0.0066) tmp = t_1; elseif (b <= 4.5e+18) tmp = Float64(a * t); elseif (b <= 1.18e+39) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * y); t_2 = b * (z * a); tmp = 0.0; if (b <= -5.8e+26) tmp = t_2; elseif (b <= 0.0066) tmp = t_1; elseif (b <= 4.5e+18) tmp = a * t; elseif (b <= 1.18e+39) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+26], t$95$2, If[LessEqual[b, 0.0066], t$95$1, If[LessEqual[b, 4.5e+18], N[(a * t), $MachinePrecision], If[LessEqual[b, 1.18e+39], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot y\\
t_2 := b \cdot \left(z \cdot a\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+26}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 0.0066:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+18}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;b \leq 1.18 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -5.8e26 or 1.17999999999999996e39 < b Initial program 91.2%
associate-+l+91.2%
*-commutative91.2%
associate-*l*76.2%
Simplified76.2%
*-commutative76.2%
associate-*r*83.7%
distribute-rgt-in88.6%
add-cube-cbrt88.1%
associate-*r*88.1%
cbrt-unprod74.7%
pow274.7%
+-commutative74.7%
fma-def74.7%
+-commutative74.7%
fma-def74.7%
Applied egg-rr74.7%
Taylor expanded in b around inf 54.1%
associate-*r*52.2%
*-commutative52.2%
associate-*l*56.0%
Simplified56.0%
if -5.8e26 < b < 0.0066 or 4.5e18 < b < 1.17999999999999996e39Initial program 90.8%
associate-+l+90.8%
*-commutative90.8%
associate-*l*95.9%
Simplified95.9%
Taylor expanded in a around 0 67.7%
if 0.0066 < b < 4.5e18Initial program 80.0%
associate-+l+80.0%
*-commutative80.0%
associate-*l*80.0%
Simplified80.0%
*-commutative80.0%
associate-*r*80.0%
distribute-rgt-in100.0%
add-cube-cbrt99.4%
associate-*r*99.4%
cbrt-unprod99.7%
pow299.7%
+-commutative99.7%
fma-def99.7%
+-commutative99.7%
fma-def99.7%
Applied egg-rr99.7%
Taylor expanded in t around inf 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification63.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.7e+115) (not (<= z 1.2e+130))) (* 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.7e+115) || !(z <= 1.2e+130)) {
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.7d+115)) .or. (.not. (z <= 1.2d+130))) 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.7e+115) || !(z <= 1.2e+130)) {
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.7e+115) or not (z <= 1.2e+130): 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.7e+115) || !(z <= 1.2e+130)) 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.7e+115) || ~((z <= 1.2e+130))) 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.7e+115], N[Not[LessEqual[z, 1.2e+130]], $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.7 \cdot 10^{+115} \lor \neg \left(z \leq 1.2 \cdot 10^{+130}\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.7e115 or 1.20000000000000012e130 < z Initial program 80.7%
associate-+l+80.7%
*-commutative80.7%
associate-*l*84.1%
Simplified84.1%
Taylor expanded in z around inf 92.4%
if -1.7e115 < z < 1.20000000000000012e130Initial program 96.0%
associate-+l+96.0%
+-commutative96.0%
fma-def96.0%
associate-*l*97.6%
*-commutative97.6%
*-commutative97.6%
distribute-rgt-out98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in y around 0 83.4%
Final simplification86.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -4.8e-5) (not (<= z 1.25e+31))) (+ (* z (+ y (* a b))) x) (+ x (* a (+ t (* z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -4.8e-5) || !(z <= 1.25e+31)) {
tmp = (z * (y + (a * b))) + x;
} 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 <= (-4.8d-5)) .or. (.not. (z <= 1.25d+31))) then
tmp = (z * (y + (a * b))) + x
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 <= -4.8e-5) || !(z <= 1.25e+31)) {
tmp = (z * (y + (a * b))) + x;
} else {
tmp = x + (a * (t + (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -4.8e-5) or not (z <= 1.25e+31): tmp = (z * (y + (a * b))) + x else: tmp = x + (a * (t + (z * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -4.8e-5) || !(z <= 1.25e+31)) tmp = Float64(Float64(z * Float64(y + Float64(a * b))) + x); 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 <= -4.8e-5) || ~((z <= 1.25e+31))) tmp = (z * (y + (a * b))) + x; else tmp = x + (a * (t + (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -4.8e-5], N[Not[LessEqual[z, 1.25e+31]], $MachinePrecision]], N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{-5} \lor \neg \left(z \leq 1.25 \cdot 10^{+31}\right):\\
\;\;\;\;z \cdot \left(y + a \cdot b\right) + x\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\end{array}
\end{array}
if z < -4.8000000000000001e-5 or 1.25000000000000007e31 < z Initial program 83.3%
associate-+l+83.3%
*-commutative83.3%
associate-*l*89.2%
Simplified89.2%
Taylor expanded in t around 0 79.7%
+-commutative79.7%
associate-*r*85.6%
distribute-rgt-in91.0%
+-commutative91.0%
Simplified91.0%
if -4.8000000000000001e-5 < z < 1.25000000000000007e31Initial program 98.4%
associate-+l+98.4%
+-commutative98.4%
fma-def98.4%
associate-*l*98.3%
*-commutative98.3%
*-commutative98.3%
distribute-rgt-out99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 89.4%
Final simplification90.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2e-15) (not (<= z 6.5e-10))) (* 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 <= -2e-15) || !(z <= 6.5e-10)) {
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 <= (-2d-15)) .or. (.not. (z <= 6.5d-10))) 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 <= -2e-15) || !(z <= 6.5e-10)) {
tmp = z * (y + (a * b));
} else {
tmp = x + (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2e-15) or not (z <= 6.5e-10): 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 <= -2e-15) || !(z <= 6.5e-10)) 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 <= -2e-15) || ~((z <= 6.5e-10))) 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, -2e-15], N[Not[LessEqual[z, 6.5e-10]], $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 -2 \cdot 10^{-15} \lor \neg \left(z \leq 6.5 \cdot 10^{-10}\right):\\
\;\;\;\;z \cdot \left(y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot t\\
\end{array}
\end{array}
if z < -2.0000000000000002e-15 or 6.5000000000000003e-10 < z Initial program 84.4%
associate-+l+84.4%
*-commutative84.4%
associate-*l*89.7%
Simplified89.7%
Taylor expanded in z around inf 80.6%
if -2.0000000000000002e-15 < z < 6.5000000000000003e-10Initial program 99.1%
associate-+l+99.1%
*-commutative99.1%
associate-*l*85.0%
Simplified85.0%
Taylor expanded in z around 0 78.9%
+-commutative78.9%
Simplified78.9%
Final simplification79.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -7.2e-12) (not (<= z 6.6e+35))) (+ x (* z y)) (+ x (* a t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.2e-12) || !(z <= 6.6e+35)) {
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 <= (-7.2d-12)) .or. (.not. (z <= 6.6d+35))) 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 <= -7.2e-12) || !(z <= 6.6e+35)) {
tmp = x + (z * y);
} else {
tmp = x + (a * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -7.2e-12) or not (z <= 6.6e+35): tmp = x + (z * y) else: tmp = x + (a * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -7.2e-12) || !(z <= 6.6e+35)) 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 <= -7.2e-12) || ~((z <= 6.6e+35))) tmp = x + (z * y); else tmp = x + (a * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -7.2e-12], N[Not[LessEqual[z, 6.6e+35]], $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 -7.2 \cdot 10^{-12} \lor \neg \left(z \leq 6.6 \cdot 10^{+35}\right):\\
\;\;\;\;x + z \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot t\\
\end{array}
\end{array}
if z < -7.2e-12 or 6.6000000000000003e35 < z Initial program 83.0%
associate-+l+83.0%
*-commutative83.0%
associate-*l*89.1%
Simplified89.1%
Taylor expanded in a around 0 54.6%
if -7.2e-12 < z < 6.6000000000000003e35Initial program 98.4%
associate-+l+98.4%
*-commutative98.4%
associate-*l*86.3%
Simplified86.3%
Taylor expanded in z around 0 73.5%
+-commutative73.5%
Simplified73.5%
Final simplification64.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -3.4e+116) (not (<= a 0.00185))) (* a t) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -3.4e+116) || !(a <= 0.00185)) {
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 ((a <= (-3.4d+116)) .or. (.not. (a <= 0.00185d0))) 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 ((a <= -3.4e+116) || !(a <= 0.00185)) {
tmp = a * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -3.4e+116) or not (a <= 0.00185): tmp = a * t else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -3.4e+116) || !(a <= 0.00185)) 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 ((a <= -3.4e+116) || ~((a <= 0.00185))) tmp = a * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -3.4e+116], N[Not[LessEqual[a, 0.00185]], $MachinePrecision]], N[(a * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.4 \cdot 10^{+116} \lor \neg \left(a \leq 0.00185\right):\\
\;\;\;\;a \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.40000000000000023e116 or 0.0018500000000000001 < a Initial program 83.6%
associate-+l+83.6%
*-commutative83.6%
associate-*l*77.1%
Simplified77.1%
*-commutative77.1%
associate-*r*89.1%
distribute-rgt-in96.6%
add-cube-cbrt95.9%
associate-*r*95.9%
cbrt-unprod92.0%
pow292.0%
+-commutative92.0%
fma-def92.0%
+-commutative92.0%
fma-def92.0%
Applied egg-rr92.0%
Taylor expanded in t around inf 43.3%
*-commutative43.3%
Simplified43.3%
if -3.40000000000000023e116 < a < 0.0018500000000000001Initial program 97.0%
associate-+l+97.0%
*-commutative97.0%
associate-*l*97.1%
Simplified97.1%
Taylor expanded in x around inf 33.9%
Final simplification38.3%
(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 90.7%
associate-+l+90.7%
*-commutative90.7%
associate-*l*87.7%
Simplified87.7%
Taylor expanded in x around inf 23.4%
Final simplification23.4%
(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 2023306
(FPCore (x y z t a b)
:name "Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1"
:precision binary64
:herbie-target
(if (< z -11820553527347888000.0) (+ (* z (+ (* b a) y)) (+ x (* t a))) (if (< z 4.7589743188364287e-122) (+ (* (+ (* b z) t) a) (+ (* z y) x)) (+ (* z (+ (* b a) y)) (+ x (* t a)))))
(+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))