
(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 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ (+ (* t a) (+ x (* y z))) (* (* z a) b)))) (if (<= t_1 2e+279) t_1 (+ (* z (+ y (* a b))) (+ x (* t a))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((t * a) + (x + (y * z))) + ((z * a) * b);
double tmp;
if (t_1 <= 2e+279) {
tmp = t_1;
} else {
tmp = (z * (y + (a * b))) + (x + (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = ((t * a) + (x + (y * z))) + ((z * a) * b)
if (t_1 <= 2d+279) then
tmp = t_1
else
tmp = (z * (y + (a * b))) + (x + (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((t * a) + (x + (y * z))) + ((z * a) * b);
double tmp;
if (t_1 <= 2e+279) {
tmp = t_1;
} else {
tmp = (z * (y + (a * b))) + (x + (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((t * a) + (x + (y * z))) + ((z * a) * b) tmp = 0 if t_1 <= 2e+279: tmp = t_1 else: tmp = (z * (y + (a * b))) + (x + (t * a)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(t * a) + Float64(x + Float64(y * z))) + Float64(Float64(z * a) * b)) tmp = 0.0 if (t_1 <= 2e+279) tmp = t_1; else tmp = Float64(Float64(z * Float64(y + Float64(a * b))) + Float64(x + Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((t * a) + (x + (y * z))) + ((z * a) * b); tmp = 0.0; if (t_1 <= 2e+279) tmp = t_1; else tmp = (z * (y + (a * b))) + (x + (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t * a), $MachinePrecision] + N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+279], t$95$1, N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t \cdot a + \left(x + y \cdot z\right)\right) + \left(z \cdot a\right) \cdot b\\
\mathbf{if}\;t_1 \leq 2 \cdot 10^{+279}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y + a \cdot b\right) + \left(x + t \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) < 2.00000000000000012e279Initial program 98.9%
if 2.00000000000000012e279 < (+.f64 (+.f64 (+.f64 x (*.f64 y z)) (*.f64 t a)) (*.f64 (*.f64 a z) b)) Initial program 67.0%
*-commutative67.0%
associate-*l*77.3%
Simplified77.3%
Taylor expanded in z around 0 95.5%
Final simplification98.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* z b))))
(if (<= z -8.5e+113)
t_1
(if (<= z -4.3e+29)
(* t a)
(if (<= z 2e-195)
x
(if (<= z 6.2e-87)
(* t a)
(if (<= z 4.4e-56)
x
(if (or (<= z 2.2e+202) (not (<= z 5.7e+256))) t_1 (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (z * b);
double tmp;
if (z <= -8.5e+113) {
tmp = t_1;
} else if (z <= -4.3e+29) {
tmp = t * a;
} else if (z <= 2e-195) {
tmp = x;
} else if (z <= 6.2e-87) {
tmp = t * a;
} else if (z <= 4.4e-56) {
tmp = x;
} else if ((z <= 2.2e+202) || !(z <= 5.7e+256)) {
tmp = t_1;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (z * b)
if (z <= (-8.5d+113)) then
tmp = t_1
else if (z <= (-4.3d+29)) then
tmp = t * a
else if (z <= 2d-195) then
tmp = x
else if (z <= 6.2d-87) then
tmp = t * a
else if (z <= 4.4d-56) then
tmp = x
else if ((z <= 2.2d+202) .or. (.not. (z <= 5.7d+256))) then
tmp = t_1
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (z * b);
double tmp;
if (z <= -8.5e+113) {
tmp = t_1;
} else if (z <= -4.3e+29) {
tmp = t * a;
} else if (z <= 2e-195) {
tmp = x;
} else if (z <= 6.2e-87) {
tmp = t * a;
} else if (z <= 4.4e-56) {
tmp = x;
} else if ((z <= 2.2e+202) || !(z <= 5.7e+256)) {
tmp = t_1;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (z * b) tmp = 0 if z <= -8.5e+113: tmp = t_1 elif z <= -4.3e+29: tmp = t * a elif z <= 2e-195: tmp = x elif z <= 6.2e-87: tmp = t * a elif z <= 4.4e-56: tmp = x elif (z <= 2.2e+202) or not (z <= 5.7e+256): tmp = t_1 else: tmp = y * z return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(z * b)) tmp = 0.0 if (z <= -8.5e+113) tmp = t_1; elseif (z <= -4.3e+29) tmp = Float64(t * a); elseif (z <= 2e-195) tmp = x; elseif (z <= 6.2e-87) tmp = Float64(t * a); elseif (z <= 4.4e-56) tmp = x; elseif ((z <= 2.2e+202) || !(z <= 5.7e+256)) tmp = t_1; else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (z * b); tmp = 0.0; if (z <= -8.5e+113) tmp = t_1; elseif (z <= -4.3e+29) tmp = t * a; elseif (z <= 2e-195) tmp = x; elseif (z <= 6.2e-87) tmp = t * a; elseif (z <= 4.4e-56) tmp = x; elseif ((z <= 2.2e+202) || ~((z <= 5.7e+256))) tmp = t_1; else tmp = y * z; 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[z, -8.5e+113], t$95$1, If[LessEqual[z, -4.3e+29], N[(t * a), $MachinePrecision], If[LessEqual[z, 2e-195], x, If[LessEqual[z, 6.2e-87], N[(t * a), $MachinePrecision], If[LessEqual[z, 4.4e-56], x, If[Or[LessEqual[z, 2.2e+202], N[Not[LessEqual[z, 5.7e+256]], $MachinePrecision]], t$95$1, N[(y * z), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(z \cdot b\right)\\
\mathbf{if}\;z \leq -8.5 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{+29}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-195}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-87}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{-56}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+202} \lor \neg \left(z \leq 5.7 \cdot 10^{+256}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if z < -8.5000000000000001e113 or 4.40000000000000008e-56 < z < 2.19999999999999978e202 or 5.6999999999999997e256 < z Initial program 85.6%
*-commutative85.6%
associate-*l*90.9%
Simplified90.9%
Taylor expanded in z around inf 82.8%
Taylor expanded in y around 0 55.2%
if -8.5000000000000001e113 < z < -4.3000000000000003e29 or 2.0000000000000002e-195 < z < 6.19999999999999995e-87Initial program 99.8%
*-commutative99.8%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in t around inf 49.9%
if -4.3000000000000003e29 < z < 2.0000000000000002e-195 or 6.19999999999999995e-87 < z < 4.40000000000000008e-56Initial program 100.0%
*-commutative100.0%
associate-*l*91.2%
Simplified91.2%
Taylor expanded in x around inf 49.7%
if 2.19999999999999978e202 < z < 5.6999999999999997e256Initial program 44.4%
*-commutative44.4%
associate-*l*55.6%
Simplified55.6%
Taylor expanded in y around inf 66.8%
*-commutative66.8%
Simplified66.8%
Final simplification53.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (* t a) (* y z))) (t_2 (* z (+ y (* a b)))))
(if (<= z -6.2e+114)
t_2
(if (<= z -4.3e+30)
t_1
(if (<= z -2.1e-46)
(+ x (* a (* z b)))
(if (<= z -3.5e-86)
t_1
(if (<= z -1.25e-137)
(+ x (* y z))
(if (<= z 1.35e-58) (+ x (* t a)) t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t * a) + (y * z);
double t_2 = z * (y + (a * b));
double tmp;
if (z <= -6.2e+114) {
tmp = t_2;
} else if (z <= -4.3e+30) {
tmp = t_1;
} else if (z <= -2.1e-46) {
tmp = x + (a * (z * b));
} else if (z <= -3.5e-86) {
tmp = t_1;
} else if (z <= -1.25e-137) {
tmp = x + (y * z);
} else if (z <= 1.35e-58) {
tmp = x + (t * a);
} 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 = (t * a) + (y * z)
t_2 = z * (y + (a * b))
if (z <= (-6.2d+114)) then
tmp = t_2
else if (z <= (-4.3d+30)) then
tmp = t_1
else if (z <= (-2.1d-46)) then
tmp = x + (a * (z * b))
else if (z <= (-3.5d-86)) then
tmp = t_1
else if (z <= (-1.25d-137)) then
tmp = x + (y * z)
else if (z <= 1.35d-58) then
tmp = x + (t * a)
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 = (t * a) + (y * z);
double t_2 = z * (y + (a * b));
double tmp;
if (z <= -6.2e+114) {
tmp = t_2;
} else if (z <= -4.3e+30) {
tmp = t_1;
} else if (z <= -2.1e-46) {
tmp = x + (a * (z * b));
} else if (z <= -3.5e-86) {
tmp = t_1;
} else if (z <= -1.25e-137) {
tmp = x + (y * z);
} else if (z <= 1.35e-58) {
tmp = x + (t * a);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t * a) + (y * z) t_2 = z * (y + (a * b)) tmp = 0 if z <= -6.2e+114: tmp = t_2 elif z <= -4.3e+30: tmp = t_1 elif z <= -2.1e-46: tmp = x + (a * (z * b)) elif z <= -3.5e-86: tmp = t_1 elif z <= -1.25e-137: tmp = x + (y * z) elif z <= 1.35e-58: tmp = x + (t * a) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t * a) + Float64(y * z)) t_2 = Float64(z * Float64(y + Float64(a * b))) tmp = 0.0 if (z <= -6.2e+114) tmp = t_2; elseif (z <= -4.3e+30) tmp = t_1; elseif (z <= -2.1e-46) tmp = Float64(x + Float64(a * Float64(z * b))); elseif (z <= -3.5e-86) tmp = t_1; elseif (z <= -1.25e-137) tmp = Float64(x + Float64(y * z)); elseif (z <= 1.35e-58) tmp = Float64(x + Float64(t * a)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t * a) + (y * z); t_2 = z * (y + (a * b)); tmp = 0.0; if (z <= -6.2e+114) tmp = t_2; elseif (z <= -4.3e+30) tmp = t_1; elseif (z <= -2.1e-46) tmp = x + (a * (z * b)); elseif (z <= -3.5e-86) tmp = t_1; elseif (z <= -1.25e-137) tmp = x + (y * z); elseif (z <= 1.35e-58) tmp = x + (t * a); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t * a), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.2e+114], t$95$2, If[LessEqual[z, -4.3e+30], t$95$1, If[LessEqual[z, -2.1e-46], N[(x + N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.5e-86], t$95$1, If[LessEqual[z, -1.25e-137], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e-58], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot a + y \cdot z\\
t_2 := z \cdot \left(y + a \cdot b\right)\\
\mathbf{if}\;z \leq -6.2 \cdot 10^{+114}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{-46}:\\
\;\;\;\;x + a \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-137}:\\
\;\;\;\;x + y \cdot z\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-58}:\\
\;\;\;\;x + t \cdot a\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -6.2000000000000001e114 or 1.3499999999999999e-58 < z Initial program 83.2%
*-commutative83.2%
associate-*l*88.7%
Simplified88.7%
Taylor expanded in z around inf 81.3%
if -6.2000000000000001e114 < z < -4.3e30 or -2.09999999999999987e-46 < z < -3.50000000000000021e-86Initial program 99.8%
Taylor expanded in x around 0 87.3%
+-commutative87.3%
*-commutative87.3%
fma-def87.3%
Simplified87.3%
Taylor expanded in b around 0 77.3%
if -4.3e30 < z < -2.09999999999999987e-46Initial program 100.0%
+-commutative100.0%
*-commutative100.0%
associate-*l*99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
+-commutative99.8%
fma-def99.8%
+-commutative99.8%
fma-def99.8%
Simplified99.8%
Taylor expanded in y around 0 88.9%
Taylor expanded in t around 0 86.1%
if -3.50000000000000021e-86 < z < -1.25e-137Initial program 99.9%
*-commutative99.9%
associate-*l*82.9%
Simplified82.9%
Taylor expanded in a around 0 73.7%
if -1.25e-137 < z < 1.3499999999999999e-58Initial program 100.0%
*-commutative100.0%
associate-*l*92.8%
Simplified92.8%
Taylor expanded in z around 0 89.3%
Final simplification82.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* z b))))
(if (<= a -2.8e+246)
t_1
(if (<= a -1.5e+214)
(* t a)
(if (<= a -2.5e-85)
t_1
(if (<= a -1.85e-104)
(* t a)
(if (<= a 1.95e-270)
x
(if (<= a 5e-149) (* y z) (* (* z a) b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (z * b);
double tmp;
if (a <= -2.8e+246) {
tmp = t_1;
} else if (a <= -1.5e+214) {
tmp = t * a;
} else if (a <= -2.5e-85) {
tmp = t_1;
} else if (a <= -1.85e-104) {
tmp = t * a;
} else if (a <= 1.95e-270) {
tmp = x;
} else if (a <= 5e-149) {
tmp = y * z;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = a * (z * b)
if (a <= (-2.8d+246)) then
tmp = t_1
else if (a <= (-1.5d+214)) then
tmp = t * a
else if (a <= (-2.5d-85)) then
tmp = t_1
else if (a <= (-1.85d-104)) then
tmp = t * a
else if (a <= 1.95d-270) then
tmp = x
else if (a <= 5d-149) then
tmp = y * z
else
tmp = (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 t_1 = a * (z * b);
double tmp;
if (a <= -2.8e+246) {
tmp = t_1;
} else if (a <= -1.5e+214) {
tmp = t * a;
} else if (a <= -2.5e-85) {
tmp = t_1;
} else if (a <= -1.85e-104) {
tmp = t * a;
} else if (a <= 1.95e-270) {
tmp = x;
} else if (a <= 5e-149) {
tmp = y * z;
} else {
tmp = (z * a) * b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (z * b) tmp = 0 if a <= -2.8e+246: tmp = t_1 elif a <= -1.5e+214: tmp = t * a elif a <= -2.5e-85: tmp = t_1 elif a <= -1.85e-104: tmp = t * a elif a <= 1.95e-270: tmp = x elif a <= 5e-149: tmp = y * z else: tmp = (z * a) * b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(z * b)) tmp = 0.0 if (a <= -2.8e+246) tmp = t_1; elseif (a <= -1.5e+214) tmp = Float64(t * a); elseif (a <= -2.5e-85) tmp = t_1; elseif (a <= -1.85e-104) tmp = Float64(t * a); elseif (a <= 1.95e-270) tmp = x; elseif (a <= 5e-149) tmp = Float64(y * z); else tmp = Float64(Float64(z * a) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (z * b); tmp = 0.0; if (a <= -2.8e+246) tmp = t_1; elseif (a <= -1.5e+214) tmp = t * a; elseif (a <= -2.5e-85) tmp = t_1; elseif (a <= -1.85e-104) tmp = t * a; elseif (a <= 1.95e-270) tmp = x; elseif (a <= 5e-149) tmp = y * z; else tmp = (z * a) * b; 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, -2.8e+246], t$95$1, If[LessEqual[a, -1.5e+214], N[(t * a), $MachinePrecision], If[LessEqual[a, -2.5e-85], t$95$1, If[LessEqual[a, -1.85e-104], N[(t * a), $MachinePrecision], If[LessEqual[a, 1.95e-270], x, If[LessEqual[a, 5e-149], N[(y * z), $MachinePrecision], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(z \cdot b\right)\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{+246}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{+214}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-104}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{-270}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-149}:\\
\;\;\;\;y \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot a\right) \cdot b\\
\end{array}
\end{array}
if a < -2.79999999999999988e246 or -1.5000000000000001e214 < a < -2.5000000000000001e-85Initial program 85.1%
*-commutative85.1%
associate-*l*87.8%
Simplified87.8%
Taylor expanded in z around inf 65.8%
Taylor expanded in y around 0 54.5%
if -2.79999999999999988e246 < a < -1.5000000000000001e214 or -2.5000000000000001e-85 < a < -1.85e-104Initial program 92.2%
*-commutative92.2%
associate-*l*92.5%
Simplified92.5%
Taylor expanded in t around inf 73.1%
if -1.85e-104 < a < 1.94999999999999993e-270Initial program 98.1%
*-commutative98.1%
associate-*l*98.2%
Simplified98.2%
Taylor expanded in x around inf 49.1%
if 1.94999999999999993e-270 < a < 4.99999999999999968e-149Initial program 100.0%
*-commutative100.0%
associate-*l*99.9%
Simplified99.9%
Taylor expanded in y around inf 59.5%
*-commutative59.5%
Simplified59.5%
if 4.99999999999999968e-149 < a Initial program 88.0%
Taylor expanded in x around 0 71.0%
+-commutative71.0%
*-commutative71.0%
fma-def71.0%
Simplified71.0%
Taylor expanded in z around 0 77.1%
Taylor expanded in b around inf 43.0%
associate-*r*44.1%
*-commutative44.1%
associate-*r*45.3%
Simplified45.3%
Final simplification51.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -2.6e+129)
(* y z)
(if (<= y -8.5e+63)
(* t a)
(if (<= y -230000000.0)
x
(if (<= y -1.38e-105)
(* (* z a) b)
(if (<= y -1.1e-257)
x
(if (<= y 5.6e+105) (* z (* a b)) (* y z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.6e+129) {
tmp = y * z;
} else if (y <= -8.5e+63) {
tmp = t * a;
} else if (y <= -230000000.0) {
tmp = x;
} else if (y <= -1.38e-105) {
tmp = (z * a) * b;
} else if (y <= -1.1e-257) {
tmp = x;
} else if (y <= 5.6e+105) {
tmp = z * (a * b);
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-2.6d+129)) then
tmp = y * z
else if (y <= (-8.5d+63)) then
tmp = t * a
else if (y <= (-230000000.0d0)) then
tmp = x
else if (y <= (-1.38d-105)) then
tmp = (z * a) * b
else if (y <= (-1.1d-257)) then
tmp = x
else if (y <= 5.6d+105) then
tmp = z * (a * b)
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.6e+129) {
tmp = y * z;
} else if (y <= -8.5e+63) {
tmp = t * a;
} else if (y <= -230000000.0) {
tmp = x;
} else if (y <= -1.38e-105) {
tmp = (z * a) * b;
} else if (y <= -1.1e-257) {
tmp = x;
} else if (y <= 5.6e+105) {
tmp = z * (a * b);
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.6e+129: tmp = y * z elif y <= -8.5e+63: tmp = t * a elif y <= -230000000.0: tmp = x elif y <= -1.38e-105: tmp = (z * a) * b elif y <= -1.1e-257: tmp = x elif y <= 5.6e+105: tmp = z * (a * b) else: tmp = y * z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.6e+129) tmp = Float64(y * z); elseif (y <= -8.5e+63) tmp = Float64(t * a); elseif (y <= -230000000.0) tmp = x; elseif (y <= -1.38e-105) tmp = Float64(Float64(z * a) * b); elseif (y <= -1.1e-257) tmp = x; elseif (y <= 5.6e+105) tmp = Float64(z * Float64(a * b)); else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.6e+129) tmp = y * z; elseif (y <= -8.5e+63) tmp = t * a; elseif (y <= -230000000.0) tmp = x; elseif (y <= -1.38e-105) tmp = (z * a) * b; elseif (y <= -1.1e-257) tmp = x; elseif (y <= 5.6e+105) tmp = z * (a * b); else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.6e+129], N[(y * z), $MachinePrecision], If[LessEqual[y, -8.5e+63], N[(t * a), $MachinePrecision], If[LessEqual[y, -230000000.0], x, If[LessEqual[y, -1.38e-105], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, -1.1e-257], x, If[LessEqual[y, 5.6e+105], N[(z * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(y * z), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+129}:\\
\;\;\;\;y \cdot z\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{+63}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;y \leq -230000000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -1.38 \cdot 10^{-105}:\\
\;\;\;\;\left(z \cdot a\right) \cdot b\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-257}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+105}:\\
\;\;\;\;z \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if y < -2.60000000000000012e129 or 5.6000000000000003e105 < y Initial program 90.3%
*-commutative90.3%
associate-*l*85.8%
Simplified85.8%
Taylor expanded in y around inf 63.6%
*-commutative63.6%
Simplified63.6%
if -2.60000000000000012e129 < y < -8.5000000000000004e63Initial program 75.0%
*-commutative75.0%
associate-*l*75.0%
Simplified75.0%
Taylor expanded in t around inf 75.3%
if -8.5000000000000004e63 < y < -2.3e8 or -1.3800000000000001e-105 < y < -1.09999999999999994e-257Initial program 93.6%
*-commutative93.6%
associate-*l*95.8%
Simplified95.8%
Taylor expanded in x around inf 46.7%
if -2.3e8 < y < -1.3800000000000001e-105Initial program 95.5%
Taylor expanded in x around 0 80.1%
+-commutative80.1%
*-commutative80.1%
fma-def80.1%
Simplified80.1%
Taylor expanded in z around 0 80.4%
Taylor expanded in b around inf 42.1%
associate-*r*38.0%
*-commutative38.0%
associate-*r*42.2%
Simplified42.2%
if -1.09999999999999994e-257 < y < 5.6000000000000003e105Initial program 89.8%
*-commutative89.8%
associate-*l*93.9%
Simplified93.9%
Taylor expanded in z around inf 52.1%
Taylor expanded in a around inf 42.0%
associate-*r*45.8%
*-commutative45.8%
Simplified45.8%
Final simplification52.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* t a))) (t_2 (* z (+ y (* a b)))))
(if (<= z -1.6e+76)
t_2
(if (<= z -220.0)
t_1
(if (<= z -4.1e-22)
t_2
(if (<= z -1.25e-137) (+ x (* y z)) (if (<= z 3.6e-63) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (t * a);
double t_2 = z * (y + (a * b));
double tmp;
if (z <= -1.6e+76) {
tmp = t_2;
} else if (z <= -220.0) {
tmp = t_1;
} else if (z <= -4.1e-22) {
tmp = t_2;
} else if (z <= -1.25e-137) {
tmp = x + (y * z);
} else if (z <= 3.6e-63) {
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 + (t * a)
t_2 = z * (y + (a * b))
if (z <= (-1.6d+76)) then
tmp = t_2
else if (z <= (-220.0d0)) then
tmp = t_1
else if (z <= (-4.1d-22)) then
tmp = t_2
else if (z <= (-1.25d-137)) then
tmp = x + (y * z)
else if (z <= 3.6d-63) 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 + (t * a);
double t_2 = z * (y + (a * b));
double tmp;
if (z <= -1.6e+76) {
tmp = t_2;
} else if (z <= -220.0) {
tmp = t_1;
} else if (z <= -4.1e-22) {
tmp = t_2;
} else if (z <= -1.25e-137) {
tmp = x + (y * z);
} else if (z <= 3.6e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (t * a) t_2 = z * (y + (a * b)) tmp = 0 if z <= -1.6e+76: tmp = t_2 elif z <= -220.0: tmp = t_1 elif z <= -4.1e-22: tmp = t_2 elif z <= -1.25e-137: tmp = x + (y * z) elif z <= 3.6e-63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(t * a)) t_2 = Float64(z * Float64(y + Float64(a * b))) tmp = 0.0 if (z <= -1.6e+76) tmp = t_2; elseif (z <= -220.0) tmp = t_1; elseif (z <= -4.1e-22) tmp = t_2; elseif (z <= -1.25e-137) tmp = Float64(x + Float64(y * z)); elseif (z <= 3.6e-63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (t * a); t_2 = z * (y + (a * b)); tmp = 0.0; if (z <= -1.6e+76) tmp = t_2; elseif (z <= -220.0) tmp = t_1; elseif (z <= -4.1e-22) tmp = t_2; elseif (z <= -1.25e-137) tmp = x + (y * z); elseif (z <= 3.6e-63) 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[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+76], t$95$2, If[LessEqual[z, -220.0], t$95$1, If[LessEqual[z, -4.1e-22], t$95$2, If[LessEqual[z, -1.25e-137], N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e-63], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot a\\
t_2 := z \cdot \left(y + a \cdot b\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -220:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-22}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-137}:\\
\;\;\;\;x + y \cdot z\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.59999999999999988e76 or -220 < z < -4.0999999999999999e-22 or 3.60000000000000008e-63 < z Initial program 84.9%
*-commutative84.9%
associate-*l*89.9%
Simplified89.9%
Taylor expanded in z around inf 80.2%
if -1.59999999999999988e76 < z < -220 or -1.25e-137 < z < 3.60000000000000008e-63Initial program 99.9%
*-commutative99.9%
associate-*l*94.0%
Simplified94.0%
Taylor expanded in z around 0 86.3%
if -4.0999999999999999e-22 < z < -1.25e-137Initial program 99.8%
*-commutative99.8%
associate-*l*89.5%
Simplified89.5%
Taylor expanded in a around 0 67.5%
Final simplification81.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y z))))
(if (<= z -2.2e+213)
(* (* z a) b)
(if (<= z -1.4e+60)
t_1
(if (<= z 2.3e-22)
(+ x (* t a))
(if (or (<= z 3.4e+116) (not (<= z 5.7e+256))) (* z (* a b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * z);
double tmp;
if (z <= -2.2e+213) {
tmp = (z * a) * b;
} else if (z <= -1.4e+60) {
tmp = t_1;
} else if (z <= 2.3e-22) {
tmp = x + (t * a);
} else if ((z <= 3.4e+116) || !(z <= 5.7e+256)) {
tmp = z * (a * b);
} 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 = x + (y * z)
if (z <= (-2.2d+213)) then
tmp = (z * a) * b
else if (z <= (-1.4d+60)) then
tmp = t_1
else if (z <= 2.3d-22) then
tmp = x + (t * a)
else if ((z <= 3.4d+116) .or. (.not. (z <= 5.7d+256))) then
tmp = z * (a * b)
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 = x + (y * z);
double tmp;
if (z <= -2.2e+213) {
tmp = (z * a) * b;
} else if (z <= -1.4e+60) {
tmp = t_1;
} else if (z <= 2.3e-22) {
tmp = x + (t * a);
} else if ((z <= 3.4e+116) || !(z <= 5.7e+256)) {
tmp = z * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * z) tmp = 0 if z <= -2.2e+213: tmp = (z * a) * b elif z <= -1.4e+60: tmp = t_1 elif z <= 2.3e-22: tmp = x + (t * a) elif (z <= 3.4e+116) or not (z <= 5.7e+256): tmp = z * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * z)) tmp = 0.0 if (z <= -2.2e+213) tmp = Float64(Float64(z * a) * b); elseif (z <= -1.4e+60) tmp = t_1; elseif (z <= 2.3e-22) tmp = Float64(x + Float64(t * a)); elseif ((z <= 3.4e+116) || !(z <= 5.7e+256)) tmp = Float64(z * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * z); tmp = 0.0; if (z <= -2.2e+213) tmp = (z * a) * b; elseif (z <= -1.4e+60) tmp = t_1; elseif (z <= 2.3e-22) tmp = x + (t * a); elseif ((z <= 3.4e+116) || ~((z <= 5.7e+256))) tmp = z * (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+213], N[(N[(z * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, -1.4e+60], t$95$1, If[LessEqual[z, 2.3e-22], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 3.4e+116], N[Not[LessEqual[z, 5.7e+256]], $MachinePrecision]], N[(z * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot z\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+213}:\\
\;\;\;\;\left(z \cdot a\right) \cdot b\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{+60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-22}:\\
\;\;\;\;x + t \cdot a\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+116} \lor \neg \left(z \leq 5.7 \cdot 10^{+256}\right):\\
\;\;\;\;z \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.1999999999999999e213Initial program 73.1%
Taylor expanded in x around 0 69.4%
+-commutative69.4%
*-commutative69.4%
fma-def69.4%
Simplified69.4%
Taylor expanded in z around 0 96.4%
Taylor expanded in b around inf 70.0%
associate-*r*73.5%
*-commutative73.5%
associate-*r*73.6%
Simplified73.6%
if -2.1999999999999999e213 < z < -1.4e60 or 3.40000000000000023e116 < z < 5.6999999999999997e256Initial program 82.3%
*-commutative82.3%
associate-*l*90.4%
Simplified90.4%
Taylor expanded in a around 0 60.2%
if -1.4e60 < z < 2.2999999999999998e-22Initial program 99.9%
*-commutative99.9%
associate-*l*92.9%
Simplified92.9%
Taylor expanded in z around 0 75.5%
if 2.2999999999999998e-22 < z < 3.40000000000000023e116 or 5.6999999999999997e256 < z Initial program 92.2%
*-commutative92.2%
associate-*l*96.0%
Simplified96.0%
Taylor expanded in z around inf 82.3%
Taylor expanded in a around inf 59.9%
associate-*r*61.8%
*-commutative61.8%
Simplified61.8%
Final simplification68.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3.2e+131)
(* y z)
(if (<= y -7.8e+64)
(* t a)
(if (<= y -360000000000.0)
x
(if (<= y -3.8e-69) (* t a) (if (<= y 6e-29) x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.2e+131) {
tmp = y * z;
} else if (y <= -7.8e+64) {
tmp = t * a;
} else if (y <= -360000000000.0) {
tmp = x;
} else if (y <= -3.8e-69) {
tmp = t * a;
} else if (y <= 6e-29) {
tmp = x;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-3.2d+131)) then
tmp = y * z
else if (y <= (-7.8d+64)) then
tmp = t * a
else if (y <= (-360000000000.0d0)) then
tmp = x
else if (y <= (-3.8d-69)) then
tmp = t * a
else if (y <= 6d-29) then
tmp = x
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.2e+131) {
tmp = y * z;
} else if (y <= -7.8e+64) {
tmp = t * a;
} else if (y <= -360000000000.0) {
tmp = x;
} else if (y <= -3.8e-69) {
tmp = t * a;
} else if (y <= 6e-29) {
tmp = x;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.2e+131: tmp = y * z elif y <= -7.8e+64: tmp = t * a elif y <= -360000000000.0: tmp = x elif y <= -3.8e-69: tmp = t * a elif y <= 6e-29: tmp = x else: tmp = y * z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.2e+131) tmp = Float64(y * z); elseif (y <= -7.8e+64) tmp = Float64(t * a); elseif (y <= -360000000000.0) tmp = x; elseif (y <= -3.8e-69) tmp = Float64(t * a); elseif (y <= 6e-29) tmp = x; else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.2e+131) tmp = y * z; elseif (y <= -7.8e+64) tmp = t * a; elseif (y <= -360000000000.0) tmp = x; elseif (y <= -3.8e-69) tmp = t * a; elseif (y <= 6e-29) tmp = x; else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.2e+131], N[(y * z), $MachinePrecision], If[LessEqual[y, -7.8e+64], N[(t * a), $MachinePrecision], If[LessEqual[y, -360000000000.0], x, If[LessEqual[y, -3.8e-69], N[(t * a), $MachinePrecision], If[LessEqual[y, 6e-29], x, N[(y * z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+131}:\\
\;\;\;\;y \cdot z\\
\mathbf{elif}\;y \leq -7.8 \cdot 10^{+64}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;y \leq -360000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-69}:\\
\;\;\;\;t \cdot a\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-29}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if y < -3.2000000000000002e131 or 6.0000000000000005e-29 < y Initial program 86.9%
*-commutative86.9%
associate-*l*85.2%
Simplified85.2%
Taylor expanded in y around inf 55.2%
*-commutative55.2%
Simplified55.2%
if -3.2000000000000002e131 < y < -7.7999999999999996e64 or -3.6e11 < y < -3.7999999999999998e-69Initial program 87.5%
*-commutative87.5%
associate-*l*87.9%
Simplified87.9%
Taylor expanded in t around inf 52.8%
if -7.7999999999999996e64 < y < -3.6e11 or -3.7999999999999998e-69 < y < 6.0000000000000005e-29Initial program 94.4%
*-commutative94.4%
associate-*l*96.9%
Simplified96.9%
Taylor expanded in x around inf 38.3%
Final simplification46.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (* a b))))
(if (<= z -1.2e+128)
t_1
(if (<= z 4.4e-22)
(+ x (* t a))
(if (or (<= z 3e+198) (not (<= z 2.1e+255))) t_1 (* y z))))))
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.2e+128) {
tmp = t_1;
} else if (z <= 4.4e-22) {
tmp = x + (t * a);
} else if ((z <= 3e+198) || !(z <= 2.1e+255)) {
tmp = t_1;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * (a * b)
if (z <= (-1.2d+128)) then
tmp = t_1
else if (z <= 4.4d-22) then
tmp = x + (t * a)
else if ((z <= 3d+198) .or. (.not. (z <= 2.1d+255))) then
tmp = t_1
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a * b);
double tmp;
if (z <= -1.2e+128) {
tmp = t_1;
} else if (z <= 4.4e-22) {
tmp = x + (t * a);
} else if ((z <= 3e+198) || !(z <= 2.1e+255)) {
tmp = t_1;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (a * b) tmp = 0 if z <= -1.2e+128: tmp = t_1 elif z <= 4.4e-22: tmp = x + (t * a) elif (z <= 3e+198) or not (z <= 2.1e+255): tmp = t_1 else: tmp = y * z return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(a * b)) tmp = 0.0 if (z <= -1.2e+128) tmp = t_1; elseif (z <= 4.4e-22) tmp = Float64(x + Float64(t * a)); elseif ((z <= 3e+198) || !(z <= 2.1e+255)) tmp = t_1; else tmp = Float64(y * z); 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.2e+128) tmp = t_1; elseif (z <= 4.4e-22) tmp = x + (t * a); elseif ((z <= 3e+198) || ~((z <= 2.1e+255))) tmp = t_1; else tmp = y * z; 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.2e+128], t$95$1, If[LessEqual[z, 4.4e-22], N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 3e+198], N[Not[LessEqual[z, 2.1e+255]], $MachinePrecision]], t$95$1, N[(y * z), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a \cdot b\right)\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{-22}:\\
\;\;\;\;x + t \cdot a\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+198} \lor \neg \left(z \leq 2.1 \cdot 10^{+255}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if z < -1.2000000000000001e128 or 4.4000000000000001e-22 < z < 3.00000000000000019e198 or 2.1e255 < z Initial program 85.4%
*-commutative85.4%
associate-*l*91.0%
Simplified91.0%
Taylor expanded in z around inf 84.8%
Taylor expanded in a around inf 56.3%
associate-*r*57.8%
*-commutative57.8%
Simplified57.8%
if -1.2000000000000001e128 < z < 4.4000000000000001e-22Initial program 99.2%
*-commutative99.2%
associate-*l*93.9%
Simplified93.9%
Taylor expanded in z around 0 71.2%
if 3.00000000000000019e198 < z < 2.1e255Initial program 44.4%
*-commutative44.4%
associate-*l*55.6%
Simplified55.6%
Taylor expanded in y around inf 66.8%
*-commutative66.8%
Simplified66.8%
Final simplification64.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -8200000000000.0) (not (<= a 4.2e-149))) (+ x (* a (+ t (* z b)))) (+ (+ x (* t a)) (* y z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -8200000000000.0) || !(a <= 4.2e-149)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = (x + (t * a)) + (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-8200000000000.0d0)) .or. (.not. (a <= 4.2d-149))) then
tmp = x + (a * (t + (z * b)))
else
tmp = (x + (t * a)) + (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -8200000000000.0) || !(a <= 4.2e-149)) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = (x + (t * a)) + (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -8200000000000.0) or not (a <= 4.2e-149): tmp = x + (a * (t + (z * b))) else: tmp = (x + (t * a)) + (y * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -8200000000000.0) || !(a <= 4.2e-149)) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(Float64(x + Float64(t * a)) + Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -8200000000000.0) || ~((a <= 4.2e-149))) tmp = x + (a * (t + (z * b))); else tmp = (x + (t * a)) + (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -8200000000000.0], N[Not[LessEqual[a, 4.2e-149]], $MachinePrecision]], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8200000000000 \lor \neg \left(a \leq 4.2 \cdot 10^{-149}\right):\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + t \cdot a\right) + y \cdot z\\
\end{array}
\end{array}
if a < -8.2e12 or 4.20000000000000022e-149 < a Initial program 84.2%
associate-+l+84.2%
+-commutative84.2%
*-commutative84.2%
*-commutative84.2%
associate-*l*89.6%
distribute-rgt-out90.3%
fma-def91.7%
*-commutative91.7%
+-commutative91.7%
fma-def91.7%
Simplified91.7%
Taylor expanded in y around 0 87.7%
if -8.2e12 < a < 4.20000000000000022e-149Initial program 99.0%
*-commutative99.0%
associate-*l*99.0%
Simplified99.0%
Taylor expanded in b around 0 85.2%
Final simplification86.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.5e-47) (not (<= b 0.66))) (+ x (* z (+ y (* a b)))) (+ (+ x (* t a)) (* y z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.5e-47) || !(b <= 0.66)) {
tmp = x + (z * (y + (a * b)));
} else {
tmp = (x + (t * a)) + (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-2.5d-47)) .or. (.not. (b <= 0.66d0))) then
tmp = x + (z * (y + (a * b)))
else
tmp = (x + (t * a)) + (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.5e-47) || !(b <= 0.66)) {
tmp = x + (z * (y + (a * b)));
} else {
tmp = (x + (t * a)) + (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.5e-47) or not (b <= 0.66): tmp = x + (z * (y + (a * b))) else: tmp = (x + (t * a)) + (y * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.5e-47) || !(b <= 0.66)) tmp = Float64(x + Float64(z * Float64(y + Float64(a * b)))); else tmp = Float64(Float64(x + Float64(t * a)) + Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.5e-47) || ~((b <= 0.66))) tmp = x + (z * (y + (a * b))); else tmp = (x + (t * a)) + (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.5e-47], N[Not[LessEqual[b, 0.66]], $MachinePrecision]], N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-47} \lor \neg \left(b \leq 0.66\right):\\
\;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + t \cdot a\right) + y \cdot z\\
\end{array}
\end{array}
if b < -2.50000000000000006e-47 or 0.660000000000000031 < b Initial program 92.6%
*-commutative92.6%
associate-*l*87.7%
Simplified87.7%
Taylor expanded in z around 0 94.4%
Taylor expanded in t around 0 90.4%
if -2.50000000000000006e-47 < b < 0.660000000000000031Initial program 88.5%
*-commutative88.5%
associate-*l*95.0%
Simplified95.0%
Taylor expanded in b around 0 88.5%
Final simplification89.5%
(FPCore (x y z t a b) :precision binary64 (if (<= y -3.7e+143) (* z (+ y (* a b))) (if (<= y 6.5e+138) (+ x (* a (+ t (* z b)))) (+ (* t a) (* y z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.7e+143) {
tmp = z * (y + (a * b));
} else if (y <= 6.5e+138) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = (t * a) + (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-3.7d+143)) then
tmp = z * (y + (a * b))
else if (y <= 6.5d+138) then
tmp = x + (a * (t + (z * b)))
else
tmp = (t * a) + (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.7e+143) {
tmp = z * (y + (a * b));
} else if (y <= 6.5e+138) {
tmp = x + (a * (t + (z * b)));
} else {
tmp = (t * a) + (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.7e+143: tmp = z * (y + (a * b)) elif y <= 6.5e+138: tmp = x + (a * (t + (z * b))) else: tmp = (t * a) + (y * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.7e+143) tmp = Float64(z * Float64(y + Float64(a * b))); elseif (y <= 6.5e+138) tmp = Float64(x + Float64(a * Float64(t + Float64(z * b)))); else tmp = Float64(Float64(t * a) + Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.7e+143) tmp = z * (y + (a * b)); elseif (y <= 6.5e+138) tmp = x + (a * (t + (z * b))); else tmp = (t * a) + (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.7e+143], N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+138], N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * a), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.7 \cdot 10^{+143}:\\
\;\;\;\;z \cdot \left(y + a \cdot b\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+138}:\\
\;\;\;\;x + a \cdot \left(t + z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot a + y \cdot z\\
\end{array}
\end{array}
if y < -3.7000000000000002e143Initial program 86.4%
*-commutative86.4%
associate-*l*76.3%
Simplified76.3%
Taylor expanded in z around inf 74.3%
if -3.7000000000000002e143 < y < 6.50000000000000054e138Initial program 91.2%
associate-+l+91.2%
+-commutative91.2%
*-commutative91.2%
*-commutative91.2%
associate-*l*93.5%
distribute-rgt-out94.0%
fma-def94.0%
*-commutative94.0%
+-commutative94.0%
fma-def94.0%
Simplified94.0%
Taylor expanded in y around 0 88.7%
if 6.50000000000000054e138 < y Initial program 92.0%
Taylor expanded in x around 0 84.6%
+-commutative84.6%
*-commutative84.6%
fma-def84.6%
Simplified84.6%
Taylor expanded in b around 0 82.3%
Final simplification85.7%
(FPCore (x y z t a b) :precision binary64 (+ (* z (+ y (* a b))) (+ x (* t a))))
double code(double x, double y, double z, double t, double a, double b) {
return (z * (y + (a * b))) + (x + (t * a));
}
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 = (z * (y + (a * b))) + (x + (t * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (z * (y + (a * b))) + (x + (t * a));
}
def code(x, y, z, t, a, b): return (z * (y + (a * b))) + (x + (t * a))
function code(x, y, z, t, a, b) return Float64(Float64(z * Float64(y + Float64(a * b))) + Float64(x + Float64(t * a))) end
function tmp = code(x, y, z, t, a, b) tmp = (z * (y + (a * b))) + (x + (t * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \left(y + a \cdot b\right) + \left(x + t \cdot a\right)
\end{array}
Initial program 90.6%
*-commutative90.6%
associate-*l*91.2%
Simplified91.2%
Taylor expanded in z around 0 95.8%
Final simplification95.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.05e-74) x (if (<= x 2.2e+124) (* t a) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.05e-74) {
tmp = x;
} else if (x <= 2.2e+124) {
tmp = t * a;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-1.05d-74)) then
tmp = x
else if (x <= 2.2d+124) then
tmp = t * a
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.05e-74) {
tmp = x;
} else if (x <= 2.2e+124) {
tmp = t * a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.05e-74: tmp = x elif x <= 2.2e+124: tmp = t * a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.05e-74) tmp = x; elseif (x <= 2.2e+124) tmp = Float64(t * a); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.05e-74) tmp = x; elseif (x <= 2.2e+124) tmp = t * a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.05e-74], x, If[LessEqual[x, 2.2e+124], N[(t * a), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{-74}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{+124}:\\
\;\;\;\;t \cdot a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.05e-74 or 2.2000000000000001e124 < x Initial program 90.7%
*-commutative90.7%
associate-*l*91.8%
Simplified91.8%
Taylor expanded in x around inf 46.2%
if -1.05e-74 < x < 2.2000000000000001e124Initial program 90.6%
*-commutative90.6%
associate-*l*90.7%
Simplified90.7%
Taylor expanded in t around inf 31.3%
Final simplification37.5%
(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.6%
*-commutative90.6%
associate-*l*91.2%
Simplified91.2%
Taylor expanded in x around inf 24.7%
Final simplification24.7%
(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 2023274
(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)))