
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (if (<= z -1e+110) (+ x (* z (+ y (* a b)))) (+ (+ x (* a (+ t (* z b)))) (* z y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1e+110) {
tmp = x + (z * (y + (a * b)));
} else {
tmp = (x + (a * (t + (z * b)))) + (z * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1d+110)) then
tmp = x + (z * (y + (a * b)))
else
tmp = (x + (a * (t + (z * b)))) + (z * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1e+110) {
tmp = x + (z * (y + (a * b)));
} else {
tmp = (x + (a * (t + (z * b)))) + (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1e+110: tmp = x + (z * (y + (a * b))) else: tmp = (x + (a * (t + (z * b)))) + (z * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1e+110) tmp = Float64(x + Float64(z * Float64(y + Float64(a * b)))); else tmp = Float64(Float64(x + Float64(a * Float64(t + Float64(z * b)))) + Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1e+110) tmp = x + (z * (y + (a * b))); else tmp = (x + (a * (t + (z * b)))) + (z * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1e+110], N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+110}:\\
\;\;\;\;x + z \cdot \left(y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + a \cdot \left(t + z \cdot b\right)\right) + z \cdot y\\
\end{array}
\end{array}
if z < -1e110Initial program 71.3%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6480.6%
Simplified80.6%
Taylor expanded in t around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6492.8%
Simplified92.8%
if -1e110 < z Initial program 95.0%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6499.5%
Simplified99.5%
Final simplification98.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (* a b))))
(if (<= a -5.4e+184)
t_1
(if (<= a -1.06e-103)
(* a t)
(if (<= a -4.6e-211)
x
(if (<= a 5e+72) (* z y) (if (<= a 1.6e+149) (* a t) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a * b);
double tmp;
if (a <= -5.4e+184) {
tmp = t_1;
} else if (a <= -1.06e-103) {
tmp = a * t;
} else if (a <= -4.6e-211) {
tmp = x;
} else if (a <= 5e+72) {
tmp = z * y;
} else if (a <= 1.6e+149) {
tmp = 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 * (a * b)
if (a <= (-5.4d+184)) then
tmp = t_1
else if (a <= (-1.06d-103)) then
tmp = a * t
else if (a <= (-4.6d-211)) then
tmp = x
else if (a <= 5d+72) then
tmp = z * y
else if (a <= 1.6d+149) then
tmp = 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 * (a * b);
double tmp;
if (a <= -5.4e+184) {
tmp = t_1;
} else if (a <= -1.06e-103) {
tmp = a * t;
} else if (a <= -4.6e-211) {
tmp = x;
} else if (a <= 5e+72) {
tmp = z * y;
} else if (a <= 1.6e+149) {
tmp = a * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (a * b) tmp = 0 if a <= -5.4e+184: tmp = t_1 elif a <= -1.06e-103: tmp = a * t elif a <= -4.6e-211: tmp = x elif a <= 5e+72: tmp = z * y elif a <= 1.6e+149: tmp = a * t else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(a * b)) tmp = 0.0 if (a <= -5.4e+184) tmp = t_1; elseif (a <= -1.06e-103) tmp = Float64(a * t); elseif (a <= -4.6e-211) tmp = x; elseif (a <= 5e+72) tmp = Float64(z * y); elseif (a <= 1.6e+149) tmp = Float64(a * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (a * b); tmp = 0.0; if (a <= -5.4e+184) tmp = t_1; elseif (a <= -1.06e-103) tmp = a * t; elseif (a <= -4.6e-211) tmp = x; elseif (a <= 5e+72) tmp = z * y; elseif (a <= 1.6e+149) tmp = a * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.4e+184], t$95$1, If[LessEqual[a, -1.06e-103], N[(a * t), $MachinePrecision], If[LessEqual[a, -4.6e-211], x, If[LessEqual[a, 5e+72], N[(z * y), $MachinePrecision], If[LessEqual[a, 1.6e+149], N[(a * t), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a \cdot b\right)\\
\mathbf{if}\;a \leq -5.4 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.06 \cdot 10^{-103}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-211}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+72}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+149}:\\
\;\;\;\;a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.3999999999999998e184 or 1.6000000000000001e149 < a Initial program 77.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6493.4%
Simplified93.4%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6456.9%
Simplified56.9%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6461.4%
Applied egg-rr61.4%
if -5.3999999999999998e184 < a < -1.06000000000000004e-103 or 4.99999999999999992e72 < a < 1.6000000000000001e149Initial program 92.0%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6498.8%
Simplified98.8%
Taylor expanded in t around inf
*-lowering-*.f6442.1%
Simplified42.1%
if -1.06000000000000004e-103 < a < -4.59999999999999976e-211Initial program 100.0%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in x around inf
Simplified91.0%
if -4.59999999999999976e-211 < a < 4.99999999999999992e72Initial program 98.3%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6496.0%
Simplified96.0%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6448.4%
Simplified48.4%
Final simplification51.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -4.2e+108)
(* a t)
(if (<= t -7.5e-48)
x
(if (<= t 2.2e-244) (* a (* z b)) (if (<= t 6e+15) (* z y) (* a t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -4.2e+108) {
tmp = a * t;
} else if (t <= -7.5e-48) {
tmp = x;
} else if (t <= 2.2e-244) {
tmp = a * (z * b);
} else if (t <= 6e+15) {
tmp = z * y;
} 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 (t <= (-4.2d+108)) then
tmp = a * t
else if (t <= (-7.5d-48)) then
tmp = x
else if (t <= 2.2d-244) then
tmp = a * (z * b)
else if (t <= 6d+15) then
tmp = z * y
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 (t <= -4.2e+108) {
tmp = a * t;
} else if (t <= -7.5e-48) {
tmp = x;
} else if (t <= 2.2e-244) {
tmp = a * (z * b);
} else if (t <= 6e+15) {
tmp = z * y;
} else {
tmp = a * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -4.2e+108: tmp = a * t elif t <= -7.5e-48: tmp = x elif t <= 2.2e-244: tmp = a * (z * b) elif t <= 6e+15: tmp = z * y else: tmp = a * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -4.2e+108) tmp = Float64(a * t); elseif (t <= -7.5e-48) tmp = x; elseif (t <= 2.2e-244) tmp = Float64(a * Float64(z * b)); elseif (t <= 6e+15) tmp = Float64(z * y); else tmp = Float64(a * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -4.2e+108) tmp = a * t; elseif (t <= -7.5e-48) tmp = x; elseif (t <= 2.2e-244) tmp = a * (z * b); elseif (t <= 6e+15) tmp = z * y; else tmp = a * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -4.2e+108], N[(a * t), $MachinePrecision], If[LessEqual[t, -7.5e-48], x, If[LessEqual[t, 2.2e-244], N[(a * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+15], N[(z * y), $MachinePrecision], N[(a * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+108}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-48}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-244}:\\
\;\;\;\;a \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+15}:\\
\;\;\;\;z \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
\end{array}
if t < -4.20000000000000019e108 or 6e15 < t Initial program 91.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.2%
Simplified95.2%
Taylor expanded in t around inf
*-lowering-*.f6458.7%
Simplified58.7%
if -4.20000000000000019e108 < t < -7.50000000000000042e-48Initial program 89.1%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6499.9%
Simplified99.9%
Taylor expanded in x around inf
Simplified45.7%
if -7.50000000000000042e-48 < t < 2.19999999999999985e-244Initial program 91.7%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6498.3%
Simplified98.3%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6440.2%
Simplified40.2%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.3%
Applied egg-rr43.3%
if 2.19999999999999985e-244 < t < 6e15Initial program 91.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.1%
Simplified95.1%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6444.1%
Simplified44.1%
Final simplification50.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -6.2e+109)
(* a t)
(if (<= t -1.85e-48)
x
(if (<= t 2.25e-237) (* b (* z a)) (if (<= t 5.4e+15) (* z y) (* a t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -6.2e+109) {
tmp = a * t;
} else if (t <= -1.85e-48) {
tmp = x;
} else if (t <= 2.25e-237) {
tmp = b * (z * a);
} else if (t <= 5.4e+15) {
tmp = z * y;
} 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 (t <= (-6.2d+109)) then
tmp = a * t
else if (t <= (-1.85d-48)) then
tmp = x
else if (t <= 2.25d-237) then
tmp = b * (z * a)
else if (t <= 5.4d+15) then
tmp = z * y
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 (t <= -6.2e+109) {
tmp = a * t;
} else if (t <= -1.85e-48) {
tmp = x;
} else if (t <= 2.25e-237) {
tmp = b * (z * a);
} else if (t <= 5.4e+15) {
tmp = z * y;
} else {
tmp = a * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -6.2e+109: tmp = a * t elif t <= -1.85e-48: tmp = x elif t <= 2.25e-237: tmp = b * (z * a) elif t <= 5.4e+15: tmp = z * y else: tmp = a * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -6.2e+109) tmp = Float64(a * t); elseif (t <= -1.85e-48) tmp = x; elseif (t <= 2.25e-237) tmp = Float64(b * Float64(z * a)); elseif (t <= 5.4e+15) tmp = Float64(z * y); else tmp = Float64(a * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -6.2e+109) tmp = a * t; elseif (t <= -1.85e-48) tmp = x; elseif (t <= 2.25e-237) tmp = b * (z * a); elseif (t <= 5.4e+15) tmp = z * y; else tmp = a * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6.2e+109], N[(a * t), $MachinePrecision], If[LessEqual[t, -1.85e-48], x, If[LessEqual[t, 2.25e-237], N[(b * N[(z * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e+15], N[(z * y), $MachinePrecision], N[(a * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.2 \cdot 10^{+109}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;t \leq -1.85 \cdot 10^{-48}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-237}:\\
\;\;\;\;b \cdot \left(z \cdot a\right)\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{+15}:\\
\;\;\;\;z \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
\end{array}
if t < -6.19999999999999985e109 or 5.4e15 < t Initial program 91.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.2%
Simplified95.2%
Taylor expanded in t around inf
*-lowering-*.f6458.7%
Simplified58.7%
if -6.19999999999999985e109 < t < -1.8499999999999999e-48Initial program 89.1%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6499.9%
Simplified99.9%
Taylor expanded in x around inf
Simplified45.7%
if -1.8499999999999999e-48 < t < 2.25000000000000005e-237Initial program 91.7%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6498.3%
Simplified98.3%
Taylor expanded in b around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6440.2%
Simplified40.2%
if 2.25000000000000005e-237 < t < 5.4e15Initial program 91.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.1%
Simplified95.1%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6444.1%
Simplified44.1%
Final simplification49.3%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ x (* z (+ y (* a b)))))) (if (<= z -2.35e-80) t_1 (if (<= z 1.7e-132) (+ x (* a t)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y + (a * b)));
double tmp;
if (z <= -2.35e-80) {
tmp = t_1;
} else if (z <= 1.7e-132) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (z * (y + (a * b)))
if (z <= (-2.35d-80)) then
tmp = t_1
else if (z <= 1.7d-132) then
tmp = x + (a * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y + (a * b)));
double tmp;
if (z <= -2.35e-80) {
tmp = t_1;
} else if (z <= 1.7e-132) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * (y + (a * b))) tmp = 0 if z <= -2.35e-80: tmp = t_1 elif z <= 1.7e-132: tmp = x + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * Float64(y + Float64(a * b)))) tmp = 0.0 if (z <= -2.35e-80) tmp = t_1; elseif (z <= 1.7e-132) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * (y + (a * b))); tmp = 0.0; if (z <= -2.35e-80) tmp = t_1; elseif (z <= 1.7e-132) tmp = x + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.35e-80], t$95$1, If[LessEqual[z, 1.7e-132], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \left(y + a \cdot b\right)\\
\mathbf{if}\;z \leq -2.35 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-132}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.34999999999999986e-80 or 1.69999999999999991e-132 < z Initial program 87.9%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6494.8%
Simplified94.8%
Taylor expanded in t around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6488.1%
Simplified88.1%
if -2.34999999999999986e-80 < z < 1.69999999999999991e-132Initial program 98.0%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f6488.0%
Simplified88.0%
(FPCore (x y z t a b) :precision binary64 (if (<= t -4.4e+108) (* a t) (if (<= t -3.5e-47) x (if (<= t 6.9e+15) (* z y) (* a t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -4.4e+108) {
tmp = a * t;
} else if (t <= -3.5e-47) {
tmp = x;
} else if (t <= 6.9e+15) {
tmp = z * y;
} 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 (t <= (-4.4d+108)) then
tmp = a * t
else if (t <= (-3.5d-47)) then
tmp = x
else if (t <= 6.9d+15) then
tmp = z * y
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 (t <= -4.4e+108) {
tmp = a * t;
} else if (t <= -3.5e-47) {
tmp = x;
} else if (t <= 6.9e+15) {
tmp = z * y;
} else {
tmp = a * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -4.4e+108: tmp = a * t elif t <= -3.5e-47: tmp = x elif t <= 6.9e+15: tmp = z * y else: tmp = a * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -4.4e+108) tmp = Float64(a * t); elseif (t <= -3.5e-47) tmp = x; elseif (t <= 6.9e+15) tmp = Float64(z * y); else tmp = Float64(a * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -4.4e+108) tmp = a * t; elseif (t <= -3.5e-47) tmp = x; elseif (t <= 6.9e+15) tmp = z * y; else tmp = a * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -4.4e+108], N[(a * t), $MachinePrecision], If[LessEqual[t, -3.5e-47], x, If[LessEqual[t, 6.9e+15], N[(z * y), $MachinePrecision], N[(a * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{+108}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-47}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 6.9 \cdot 10^{+15}:\\
\;\;\;\;z \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
\end{array}
if t < -4.4000000000000003e108 or 6.9e15 < t Initial program 91.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.2%
Simplified95.2%
Taylor expanded in t around inf
*-lowering-*.f6458.7%
Simplified58.7%
if -4.4000000000000003e108 < t < -3.4999999999999998e-47Initial program 89.1%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6499.9%
Simplified99.9%
Taylor expanded in x around inf
Simplified45.7%
if -3.4999999999999998e-47 < t < 6.9e15Initial program 91.5%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6496.8%
Simplified96.8%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6438.3%
Simplified38.3%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* z (+ y (* a b))))) (if (<= z -1.55e-7) t_1 (if (<= z 6.5e-23) (+ x (* a t)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (y + (a * b));
double tmp;
if (z <= -1.55e-7) {
tmp = t_1;
} else if (z <= 6.5e-23) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * (y + (a * b))
if (z <= (-1.55d-7)) then
tmp = t_1
else if (z <= 6.5d-23) then
tmp = x + (a * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (y + (a * b));
double tmp;
if (z <= -1.55e-7) {
tmp = t_1;
} else if (z <= 6.5e-23) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (y + (a * b)) tmp = 0 if z <= -1.55e-7: tmp = t_1 elif z <= 6.5e-23: tmp = x + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(y + Float64(a * b))) tmp = 0.0 if (z <= -1.55e-7) tmp = t_1; elseif (z <= 6.5e-23) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (y + (a * b)); tmp = 0.0; if (z <= -1.55e-7) tmp = t_1; elseif (z <= 6.5e-23) tmp = x + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(y + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.55e-7], t$95$1, If[LessEqual[z, 6.5e-23], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(y + a \cdot b\right)\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-23}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.55e-7 or 6.5e-23 < z Initial program 84.2%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6493.2%
Simplified93.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6477.9%
Simplified77.9%
if -1.55e-7 < z < 6.5e-23Initial program 98.6%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f6479.4%
Simplified79.4%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* a (+ t (* z b))))) (if (<= a -3.4e+66) t_1 (if (<= a 2.6e+68) (+ x (* z y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (t + (z * b));
double tmp;
if (a <= -3.4e+66) {
tmp = t_1;
} else if (a <= 2.6e+68) {
tmp = x + (z * y);
} 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 = a * (t + (z * b))
if (a <= (-3.4d+66)) then
tmp = t_1
else if (a <= 2.6d+68) then
tmp = x + (z * y)
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 = a * (t + (z * b));
double tmp;
if (a <= -3.4e+66) {
tmp = t_1;
} else if (a <= 2.6e+68) {
tmp = x + (z * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (t + (z * b)) tmp = 0 if a <= -3.4e+66: tmp = t_1 elif a <= 2.6e+68: tmp = x + (z * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(t + Float64(z * b))) tmp = 0.0 if (a <= -3.4e+66) tmp = t_1; elseif (a <= 2.6e+68) tmp = Float64(x + Float64(z * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (t + (z * b)); tmp = 0.0; if (a <= -3.4e+66) tmp = t_1; elseif (a <= 2.6e+68) tmp = x + (z * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(t + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e+66], t$95$1, If[LessEqual[a, 2.6e+68], N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t + z \cdot b\right)\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+68}:\\
\;\;\;\;x + z \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.4000000000000003e66 or 2.5999999999999998e68 < a Initial program 82.4%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.3%
Simplified95.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6481.4%
Simplified81.4%
if -3.4000000000000003e66 < a < 2.5999999999999998e68Initial program 97.5%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6497.4%
Simplified97.4%
Taylor expanded in x around inf
Simplified75.5%
Final simplification78.0%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ x (* z y)))) (if (<= z -6.5e-60) t_1 (if (<= z 8e-31) (+ x (* a t)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * y);
double tmp;
if (z <= -6.5e-60) {
tmp = t_1;
} else if (z <= 8e-31) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (z * y)
if (z <= (-6.5d-60)) then
tmp = t_1
else if (z <= 8d-31) then
tmp = x + (a * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * y);
double tmp;
if (z <= -6.5e-60) {
tmp = t_1;
} else if (z <= 8e-31) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * y) tmp = 0 if z <= -6.5e-60: tmp = t_1 elif z <= 8e-31: tmp = x + (a * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * y)) tmp = 0.0 if (z <= -6.5e-60) tmp = t_1; elseif (z <= 8e-31) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * y); tmp = 0.0; if (z <= -6.5e-60) tmp = t_1; elseif (z <= 8e-31) tmp = x + (a * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e-60], t$95$1, If[LessEqual[z, 8e-31], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot y\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-31}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.49999999999999995e-60 or 8.000000000000001e-31 < z Initial program 85.8%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6493.9%
Simplified93.9%
Taylor expanded in x around inf
Simplified59.4%
if -6.49999999999999995e-60 < z < 8.000000000000001e-31Initial program 98.5%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f6481.9%
Simplified81.9%
Final simplification69.1%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.22e+133) (* z y) (if (<= z 5.4e-19) (+ x (* a t)) (* z y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.22e+133) {
tmp = z * y;
} else if (z <= 5.4e-19) {
tmp = x + (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 <= (-1.22d+133)) then
tmp = z * y
else if (z <= 5.4d-19) then
tmp = x + (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 <= -1.22e+133) {
tmp = z * y;
} else if (z <= 5.4e-19) {
tmp = x + (a * t);
} else {
tmp = z * y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.22e+133: tmp = z * y elif z <= 5.4e-19: tmp = x + (a * t) else: tmp = z * y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.22e+133) tmp = Float64(z * y); elseif (z <= 5.4e-19) tmp = Float64(x + 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 <= -1.22e+133) tmp = z * y; elseif (z <= 5.4e-19) tmp = x + (a * t); else tmp = z * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.22e+133], N[(z * y), $MachinePrecision], If[LessEqual[z, 5.4e-19], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], N[(z * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.22 \cdot 10^{+133}:\\
\;\;\;\;z \cdot y\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-19}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;z \cdot y\\
\end{array}
\end{array}
if z < -1.2199999999999999e133 or 5.4000000000000002e-19 < z Initial program 81.8%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6491.9%
Simplified91.9%
Taylor expanded in y around inf
*-commutativeN/A
*-lowering-*.f6448.3%
Simplified48.3%
if -1.2199999999999999e133 < z < 5.4000000000000002e-19Initial program 97.0%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6499.3%
Simplified99.3%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-lowering-*.f6470.9%
Simplified70.9%
(FPCore (x y z t a b) :precision binary64 (if (<= t -4.2e+108) (* a t) (if (<= t 1.4e+23) x (* a t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -4.2e+108) {
tmp = a * t;
} else if (t <= 1.4e+23) {
tmp = x;
} 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 (t <= (-4.2d+108)) then
tmp = a * t
else if (t <= 1.4d+23) then
tmp = x
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 (t <= -4.2e+108) {
tmp = a * t;
} else if (t <= 1.4e+23) {
tmp = x;
} else {
tmp = a * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -4.2e+108: tmp = a * t elif t <= 1.4e+23: tmp = x else: tmp = a * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -4.2e+108) tmp = Float64(a * t); elseif (t <= 1.4e+23) tmp = x; else tmp = Float64(a * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -4.2e+108) tmp = a * t; elseif (t <= 1.4e+23) tmp = x; else tmp = a * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -4.2e+108], N[(a * t), $MachinePrecision], If[LessEqual[t, 1.4e+23], x, N[(a * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+108}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
\end{array}
if t < -4.20000000000000019e108 or 1.4e23 < t Initial program 91.3%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6495.2%
Simplified95.2%
Taylor expanded in t around inf
*-lowering-*.f6459.3%
Simplified59.3%
if -4.20000000000000019e108 < t < 1.4e23Initial program 91.2%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6497.4%
Simplified97.4%
Taylor expanded in x around inf
Simplified32.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 91.2%
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*l*N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6496.5%
Simplified96.5%
Taylor expanded in x around inf
Simplified25.9%
(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 2024138
(FPCore (x y z t a b)
:name "Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1"
:precision binary64
:alt
(! :herbie-platform default (if (< z -11820553527347888000) (+ (* z (+ (* b a) y)) (+ x (* t a))) (if (< z 47589743188364287/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (* (+ (* b z) t) a) (+ (* z y) x)) (+ (* z (+ (* b a) y)) (+ x (* t a))))))
(+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))