
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * 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 - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * 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 - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(- (- x (* (+ y -1.0) z)) (* (+ t -1.0) a))
(* (- (+ y t) 2.0) b))))
(if (<= t_1 INFINITY)
t_1
(+ (+ (* b -2.0) (fma y (- b z) (* t b))) (+ z (+ x a))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - ((y + -1.0) * z)) - ((t + -1.0) * a)) + (((y + t) - 2.0) * b);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = ((b * -2.0) + fma(y, (b - z), (t * b))) + (z + (x + a));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x - Float64(Float64(y + -1.0) * z)) - Float64(Float64(t + -1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(b * -2.0) + fma(y, Float64(b - z), Float64(t * b))) + Float64(z + Float64(x + a))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x - N[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(b * -2.0), $MachinePrecision] + N[(y * N[(b - z), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z + N[(x + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x - \left(y + -1\right) \cdot z\right) - \left(t + -1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot -2 + \mathsf{fma}\left(y, b - z, t \cdot b\right)\right) + \left(z + \left(x + a\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y 1) z)) (*.f64 (-.f64 t 1) a)) (*.f64 (-.f64 (+.f64 y t) 2) b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y 1) z)) (*.f64 (-.f64 t 1) a)) (*.f64 (-.f64 (+.f64 y t) 2) b)) Initial program 0.0%
Taylor expanded in y around 0 38.5%
Taylor expanded in t around 0 61.5%
sub-neg61.5%
+-commutative61.5%
associate-+l+61.5%
*-commutative61.5%
fma-def61.5%
+-commutative61.5%
fma-def76.9%
distribute-neg-in76.9%
neg-mul-176.9%
remove-double-neg76.9%
mul-1-neg76.9%
remove-double-neg76.9%
associate-+l+76.9%
+-commutative76.9%
+-commutative76.9%
Simplified76.9%
fma-udef76.9%
Applied egg-rr76.9%
Taylor expanded in b around inf 84.6%
*-commutative84.6%
Simplified84.6%
Final simplification99.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(- (- x (* (+ y -1.0) z)) (* (+ t -1.0) a))
(* (- (+ y t) 2.0) b))))
(if (<= t_1 INFINITY) t_1 (+ z (+ x (+ (* b (- t 2.0)) (* y (- b z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - ((y + -1.0) * z)) - ((t + -1.0) * a)) + (((y + t) - 2.0) * b);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - ((y + -1.0) * z)) - ((t + -1.0) * a)) + (((y + t) - 2.0) * b);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x - ((y + -1.0) * z)) - ((t + -1.0) * a)) + (((y + t) - 2.0) * b) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x - Float64(Float64(y + -1.0) * z)) - Float64(Float64(t + -1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z + Float64(x + Float64(Float64(b * Float64(t - 2.0)) + Float64(y * Float64(b - z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x - ((y + -1.0) * z)) - ((t + -1.0) * a)) + (((y + t) - 2.0) * b); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x - N[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z + N[(x + N[(N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision] + N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x - \left(y + -1\right) \cdot z\right) - \left(t + -1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z + \left(x + \left(b \cdot \left(t - 2\right) + y \cdot \left(b - z\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y 1) z)) (*.f64 (-.f64 t 1) a)) (*.f64 (-.f64 (+.f64 y t) 2) b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y 1) z)) (*.f64 (-.f64 t 1) a)) (*.f64 (-.f64 (+.f64 y t) 2) b)) Initial program 0.0%
Taylor expanded in y around 0 38.5%
Taylor expanded in a around 0 69.2%
Final simplification98.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (- (- (* y z) z) a)))
(t_2 (* (- (+ y t) 2.0) b))
(t_3 (+ t_2 (+ x z))))
(if (<= b -1.2e+97)
t_3
(if (<= b -6.8e+87)
t_1
(if (<= b -3.3e+31)
(- t_2 (* y z))
(if (or (<= b 3.3) (and (not (<= b 7.8e+96)) (<= b 6e+133)))
t_1
t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (((y * z) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double t_3 = t_2 + (x + z);
double tmp;
if (b <= -1.2e+97) {
tmp = t_3;
} else if (b <= -6.8e+87) {
tmp = t_1;
} else if (b <= -3.3e+31) {
tmp = t_2 - (y * z);
} else if ((b <= 3.3) || (!(b <= 7.8e+96) && (b <= 6e+133))) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = x - (((y * z) - z) - a)
t_2 = ((y + t) - 2.0d0) * b
t_3 = t_2 + (x + z)
if (b <= (-1.2d+97)) then
tmp = t_3
else if (b <= (-6.8d+87)) then
tmp = t_1
else if (b <= (-3.3d+31)) then
tmp = t_2 - (y * z)
else if ((b <= 3.3d0) .or. (.not. (b <= 7.8d+96)) .and. (b <= 6d+133)) then
tmp = t_1
else
tmp = t_3
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) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double t_3 = t_2 + (x + z);
double tmp;
if (b <= -1.2e+97) {
tmp = t_3;
} else if (b <= -6.8e+87) {
tmp = t_1;
} else if (b <= -3.3e+31) {
tmp = t_2 - (y * z);
} else if ((b <= 3.3) || (!(b <= 7.8e+96) && (b <= 6e+133))) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (((y * z) - z) - a) t_2 = ((y + t) - 2.0) * b t_3 = t_2 + (x + z) tmp = 0 if b <= -1.2e+97: tmp = t_3 elif b <= -6.8e+87: tmp = t_1 elif b <= -3.3e+31: tmp = t_2 - (y * z) elif (b <= 3.3) or (not (b <= 7.8e+96) and (b <= 6e+133)): tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(Float64(Float64(y * z) - z) - a)) t_2 = Float64(Float64(Float64(y + t) - 2.0) * b) t_3 = Float64(t_2 + Float64(x + z)) tmp = 0.0 if (b <= -1.2e+97) tmp = t_3; elseif (b <= -6.8e+87) tmp = t_1; elseif (b <= -3.3e+31) tmp = Float64(t_2 - Float64(y * z)); elseif ((b <= 3.3) || (!(b <= 7.8e+96) && (b <= 6e+133))) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (((y * z) - z) - a); t_2 = ((y + t) - 2.0) * b; t_3 = t_2 + (x + z); tmp = 0.0; if (b <= -1.2e+97) tmp = t_3; elseif (b <= -6.8e+87) tmp = t_1; elseif (b <= -3.3e+31) tmp = t_2 - (y * z); elseif ((b <= 3.3) || (~((b <= 7.8e+96)) && (b <= 6e+133))) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(N[(y * z), $MachinePrecision] - z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(x + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.2e+97], t$95$3, If[LessEqual[b, -6.8e+87], t$95$1, If[LessEqual[b, -3.3e+31], N[(t$95$2 - N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 3.3], And[N[Not[LessEqual[b, 7.8e+96]], $MachinePrecision], LessEqual[b, 6e+133]]], t$95$1, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(\left(y \cdot z - z\right) - a\right)\\
t_2 := \left(\left(y + t\right) - 2\right) \cdot b\\
t_3 := t_2 + \left(x + z\right)\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{+97}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{+87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{+31}:\\
\;\;\;\;t_2 - y \cdot z\\
\mathbf{elif}\;b \leq 3.3 \lor \neg \left(b \leq 7.8 \cdot 10^{+96}\right) \land b \leq 6 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -1.2e97 or 3.2999999999999998 < b < 7.8e96 or 6.00000000000000013e133 < b Initial program 92.6%
Taylor expanded in y around 0 96.8%
associate--r+96.8%
sub-neg96.8%
mul-1-neg96.8%
remove-double-neg96.8%
sub-neg96.8%
metadata-eval96.8%
distribute-lft-in96.8%
*-commutative96.8%
neg-mul-196.8%
unsub-neg96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in a around 0 88.4%
+-commutative88.4%
Simplified88.4%
if -1.2e97 < b < -6.8000000000000004e87 or -3.29999999999999992e31 < b < 3.2999999999999998 or 7.8e96 < b < 6.00000000000000013e133Initial program 96.0%
Taylor expanded in b around 0 90.2%
Taylor expanded in t around 0 77.3%
+-commutative77.3%
sub-neg77.3%
metadata-eval77.3%
neg-mul-177.3%
unsub-neg77.3%
distribute-rgt-in77.3%
mul-1-neg77.3%
unsub-neg77.3%
Simplified77.3%
if -6.8000000000000004e87 < b < -3.29999999999999992e31Initial program 100.0%
Taylor expanded in y around inf 82.0%
mul-1-neg82.0%
distribute-rgt-neg-in82.0%
Simplified82.0%
Final simplification81.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (- (- (* y z) z) a)))
(t_2 (* (- (+ y t) 2.0) b))
(t_3 (+ t_2 (+ x z))))
(if (<= b -7e+95)
t_3
(if (<= b -3.5e+84)
t_1
(if (<= b -4e+41)
(- t_2 (* y z))
(if (<= b 5.8)
t_1
(if (<= b 8.4e+96)
(+ (+ x z) (+ (* b (- t 2.0)) (* y b)))
(if (<= b 6e+133) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (((y * z) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double t_3 = t_2 + (x + z);
double tmp;
if (b <= -7e+95) {
tmp = t_3;
} else if (b <= -3.5e+84) {
tmp = t_1;
} else if (b <= -4e+41) {
tmp = t_2 - (y * z);
} else if (b <= 5.8) {
tmp = t_1;
} else if (b <= 8.4e+96) {
tmp = (x + z) + ((b * (t - 2.0)) + (y * b));
} else if (b <= 6e+133) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = x - (((y * z) - z) - a)
t_2 = ((y + t) - 2.0d0) * b
t_3 = t_2 + (x + z)
if (b <= (-7d+95)) then
tmp = t_3
else if (b <= (-3.5d+84)) then
tmp = t_1
else if (b <= (-4d+41)) then
tmp = t_2 - (y * z)
else if (b <= 5.8d0) then
tmp = t_1
else if (b <= 8.4d+96) then
tmp = (x + z) + ((b * (t - 2.0d0)) + (y * b))
else if (b <= 6d+133) then
tmp = t_1
else
tmp = t_3
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) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double t_3 = t_2 + (x + z);
double tmp;
if (b <= -7e+95) {
tmp = t_3;
} else if (b <= -3.5e+84) {
tmp = t_1;
} else if (b <= -4e+41) {
tmp = t_2 - (y * z);
} else if (b <= 5.8) {
tmp = t_1;
} else if (b <= 8.4e+96) {
tmp = (x + z) + ((b * (t - 2.0)) + (y * b));
} else if (b <= 6e+133) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (((y * z) - z) - a) t_2 = ((y + t) - 2.0) * b t_3 = t_2 + (x + z) tmp = 0 if b <= -7e+95: tmp = t_3 elif b <= -3.5e+84: tmp = t_1 elif b <= -4e+41: tmp = t_2 - (y * z) elif b <= 5.8: tmp = t_1 elif b <= 8.4e+96: tmp = (x + z) + ((b * (t - 2.0)) + (y * b)) elif b <= 6e+133: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(Float64(Float64(y * z) - z) - a)) t_2 = Float64(Float64(Float64(y + t) - 2.0) * b) t_3 = Float64(t_2 + Float64(x + z)) tmp = 0.0 if (b <= -7e+95) tmp = t_3; elseif (b <= -3.5e+84) tmp = t_1; elseif (b <= -4e+41) tmp = Float64(t_2 - Float64(y * z)); elseif (b <= 5.8) tmp = t_1; elseif (b <= 8.4e+96) tmp = Float64(Float64(x + z) + Float64(Float64(b * Float64(t - 2.0)) + Float64(y * b))); elseif (b <= 6e+133) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (((y * z) - z) - a); t_2 = ((y + t) - 2.0) * b; t_3 = t_2 + (x + z); tmp = 0.0; if (b <= -7e+95) tmp = t_3; elseif (b <= -3.5e+84) tmp = t_1; elseif (b <= -4e+41) tmp = t_2 - (y * z); elseif (b <= 5.8) tmp = t_1; elseif (b <= 8.4e+96) tmp = (x + z) + ((b * (t - 2.0)) + (y * b)); elseif (b <= 6e+133) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(N[(y * z), $MachinePrecision] - z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(x + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e+95], t$95$3, If[LessEqual[b, -3.5e+84], t$95$1, If[LessEqual[b, -4e+41], N[(t$95$2 - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8], t$95$1, If[LessEqual[b, 8.4e+96], N[(N[(x + z), $MachinePrecision] + N[(N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision] + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+133], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(\left(y \cdot z - z\right) - a\right)\\
t_2 := \left(\left(y + t\right) - 2\right) \cdot b\\
t_3 := t_2 + \left(x + z\right)\\
\mathbf{if}\;b \leq -7 \cdot 10^{+95}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -4 \cdot 10^{+41}:\\
\;\;\;\;t_2 - y \cdot z\\
\mathbf{elif}\;b \leq 5.8:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.4 \cdot 10^{+96}:\\
\;\;\;\;\left(x + z\right) + \left(b \cdot \left(t - 2\right) + y \cdot b\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -6.99999999999999999e95 or 6.00000000000000013e133 < b Initial program 89.8%
Taylor expanded in y around 0 97.1%
associate--r+97.1%
sub-neg97.1%
mul-1-neg97.1%
remove-double-neg97.1%
sub-neg97.1%
metadata-eval97.1%
distribute-lft-in97.1%
*-commutative97.1%
neg-mul-197.1%
unsub-neg97.1%
*-commutative97.1%
Simplified97.1%
Taylor expanded in a around 0 90.4%
+-commutative90.4%
Simplified90.4%
if -6.99999999999999999e95 < b < -3.4999999999999999e84 or -4.00000000000000002e41 < b < 5.79999999999999982 or 8.4000000000000005e96 < b < 6.00000000000000013e133Initial program 96.0%
Taylor expanded in b around 0 90.2%
Taylor expanded in t around 0 77.3%
+-commutative77.3%
sub-neg77.3%
metadata-eval77.3%
neg-mul-177.3%
unsub-neg77.3%
distribute-rgt-in77.3%
mul-1-neg77.3%
unsub-neg77.3%
Simplified77.3%
if -3.4999999999999999e84 < b < -4.00000000000000002e41Initial program 100.0%
Taylor expanded in y around inf 82.0%
mul-1-neg82.0%
distribute-rgt-neg-in82.0%
Simplified82.0%
if 5.79999999999999982 < b < 8.4000000000000005e96Initial program 99.9%
Taylor expanded in y around 0 96.1%
associate--r+96.1%
sub-neg96.1%
mul-1-neg96.1%
remove-double-neg96.1%
sub-neg96.1%
metadata-eval96.1%
distribute-lft-in96.1%
*-commutative96.1%
neg-mul-196.1%
unsub-neg96.1%
*-commutative96.1%
Simplified96.1%
Taylor expanded in a around 0 83.0%
+-commutative83.0%
Simplified83.0%
Taylor expanded in y around 0 83.1%
Final simplification81.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (- (- (* y z) z) a)))
(t_2 (* (- (+ y t) 2.0) b))
(t_3 (+ t_2 (+ x z))))
(if (<= b -2.5e+96)
t_3
(if (<= b -4.2e+87)
t_1
(if (<= b -3e+42)
(- t_2 (* y z))
(if (<= b 6.2)
(+ x (- (* z (- 1.0 y)) (* (+ t -1.0) a)))
(if (<= b 1.04e+97)
(+ (+ x z) (+ (* b (- t 2.0)) (* y b)))
(if (<= b 6e+133) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (((y * z) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double t_3 = t_2 + (x + z);
double tmp;
if (b <= -2.5e+96) {
tmp = t_3;
} else if (b <= -4.2e+87) {
tmp = t_1;
} else if (b <= -3e+42) {
tmp = t_2 - (y * z);
} else if (b <= 6.2) {
tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a));
} else if (b <= 1.04e+97) {
tmp = (x + z) + ((b * (t - 2.0)) + (y * b));
} else if (b <= 6e+133) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = x - (((y * z) - z) - a)
t_2 = ((y + t) - 2.0d0) * b
t_3 = t_2 + (x + z)
if (b <= (-2.5d+96)) then
tmp = t_3
else if (b <= (-4.2d+87)) then
tmp = t_1
else if (b <= (-3d+42)) then
tmp = t_2 - (y * z)
else if (b <= 6.2d0) then
tmp = x + ((z * (1.0d0 - y)) - ((t + (-1.0d0)) * a))
else if (b <= 1.04d+97) then
tmp = (x + z) + ((b * (t - 2.0d0)) + (y * b))
else if (b <= 6d+133) then
tmp = t_1
else
tmp = t_3
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) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double t_3 = t_2 + (x + z);
double tmp;
if (b <= -2.5e+96) {
tmp = t_3;
} else if (b <= -4.2e+87) {
tmp = t_1;
} else if (b <= -3e+42) {
tmp = t_2 - (y * z);
} else if (b <= 6.2) {
tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a));
} else if (b <= 1.04e+97) {
tmp = (x + z) + ((b * (t - 2.0)) + (y * b));
} else if (b <= 6e+133) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (((y * z) - z) - a) t_2 = ((y + t) - 2.0) * b t_3 = t_2 + (x + z) tmp = 0 if b <= -2.5e+96: tmp = t_3 elif b <= -4.2e+87: tmp = t_1 elif b <= -3e+42: tmp = t_2 - (y * z) elif b <= 6.2: tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a)) elif b <= 1.04e+97: tmp = (x + z) + ((b * (t - 2.0)) + (y * b)) elif b <= 6e+133: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(Float64(Float64(y * z) - z) - a)) t_2 = Float64(Float64(Float64(y + t) - 2.0) * b) t_3 = Float64(t_2 + Float64(x + z)) tmp = 0.0 if (b <= -2.5e+96) tmp = t_3; elseif (b <= -4.2e+87) tmp = t_1; elseif (b <= -3e+42) tmp = Float64(t_2 - Float64(y * z)); elseif (b <= 6.2) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) - Float64(Float64(t + -1.0) * a))); elseif (b <= 1.04e+97) tmp = Float64(Float64(x + z) + Float64(Float64(b * Float64(t - 2.0)) + Float64(y * b))); elseif (b <= 6e+133) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (((y * z) - z) - a); t_2 = ((y + t) - 2.0) * b; t_3 = t_2 + (x + z); tmp = 0.0; if (b <= -2.5e+96) tmp = t_3; elseif (b <= -4.2e+87) tmp = t_1; elseif (b <= -3e+42) tmp = t_2 - (y * z); elseif (b <= 6.2) tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a)); elseif (b <= 1.04e+97) tmp = (x + z) + ((b * (t - 2.0)) + (y * b)); elseif (b <= 6e+133) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(N[(y * z), $MachinePrecision] - z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(x + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+96], t$95$3, If[LessEqual[b, -4.2e+87], t$95$1, If[LessEqual[b, -3e+42], N[(t$95$2 - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.04e+97], N[(N[(x + z), $MachinePrecision] + N[(N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision] + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+133], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(\left(y \cdot z - z\right) - a\right)\\
t_2 := \left(\left(y + t\right) - 2\right) \cdot b\\
t_3 := t_2 + \left(x + z\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+96}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{+87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{+42}:\\
\;\;\;\;t_2 - y \cdot z\\
\mathbf{elif}\;b \leq 6.2:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - \left(t + -1\right) \cdot a\right)\\
\mathbf{elif}\;b \leq 1.04 \cdot 10^{+97}:\\
\;\;\;\;\left(x + z\right) + \left(b \cdot \left(t - 2\right) + y \cdot b\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.5000000000000002e96 or 6.00000000000000013e133 < b Initial program 89.8%
Taylor expanded in y around 0 97.1%
associate--r+97.1%
sub-neg97.1%
mul-1-neg97.1%
remove-double-neg97.1%
sub-neg97.1%
metadata-eval97.1%
distribute-lft-in97.1%
*-commutative97.1%
neg-mul-197.1%
unsub-neg97.1%
*-commutative97.1%
Simplified97.1%
Taylor expanded in a around 0 90.4%
+-commutative90.4%
Simplified90.4%
if -2.5000000000000002e96 < b < -4.2e87 or 1.04e97 < b < 6.00000000000000013e133Initial program 66.7%
Taylor expanded in b around 0 86.7%
Taylor expanded in t around 0 93.8%
+-commutative93.8%
sub-neg93.8%
metadata-eval93.8%
neg-mul-193.8%
unsub-neg93.8%
distribute-rgt-in93.8%
mul-1-neg93.8%
unsub-neg93.8%
Simplified93.8%
if -4.2e87 < b < -3.00000000000000029e42Initial program 100.0%
Taylor expanded in y around inf 82.0%
mul-1-neg82.0%
distribute-rgt-neg-in82.0%
Simplified82.0%
if -3.00000000000000029e42 < b < 6.20000000000000018Initial program 99.2%
Taylor expanded in b around 0 90.5%
if 6.20000000000000018 < b < 1.04e97Initial program 99.9%
Taylor expanded in y around 0 96.1%
associate--r+96.1%
sub-neg96.1%
mul-1-neg96.1%
remove-double-neg96.1%
sub-neg96.1%
metadata-eval96.1%
distribute-lft-in96.1%
*-commutative96.1%
neg-mul-196.1%
unsub-neg96.1%
*-commutative96.1%
Simplified96.1%
Taylor expanded in a around 0 83.0%
+-commutative83.0%
Simplified83.0%
Taylor expanded in y around 0 83.1%
Final simplification89.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ a (+ (* b -2.0) (+ x z))))
(t_2 (* y (- b z)))
(t_3 (+ (+ x z) (* t b))))
(if (<= y -1.5e+88)
t_2
(if (<= y -6e-239)
t_1
(if (<= y 1e-294)
t_3
(if (<= y 4.2e-205)
t_1
(if (<= y 5.2e-15) t_3 (if (<= y 9e+70) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a + ((b * -2.0) + (x + z));
double t_2 = y * (b - z);
double t_3 = (x + z) + (t * b);
double tmp;
if (y <= -1.5e+88) {
tmp = t_2;
} else if (y <= -6e-239) {
tmp = t_1;
} else if (y <= 1e-294) {
tmp = t_3;
} else if (y <= 4.2e-205) {
tmp = t_1;
} else if (y <= 5.2e-15) {
tmp = t_3;
} else if (y <= 9e+70) {
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) :: t_3
real(8) :: tmp
t_1 = a + ((b * (-2.0d0)) + (x + z))
t_2 = y * (b - z)
t_3 = (x + z) + (t * b)
if (y <= (-1.5d+88)) then
tmp = t_2
else if (y <= (-6d-239)) then
tmp = t_1
else if (y <= 1d-294) then
tmp = t_3
else if (y <= 4.2d-205) then
tmp = t_1
else if (y <= 5.2d-15) then
tmp = t_3
else if (y <= 9d+70) 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 = a + ((b * -2.0) + (x + z));
double t_2 = y * (b - z);
double t_3 = (x + z) + (t * b);
double tmp;
if (y <= -1.5e+88) {
tmp = t_2;
} else if (y <= -6e-239) {
tmp = t_1;
} else if (y <= 1e-294) {
tmp = t_3;
} else if (y <= 4.2e-205) {
tmp = t_1;
} else if (y <= 5.2e-15) {
tmp = t_3;
} else if (y <= 9e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a + ((b * -2.0) + (x + z)) t_2 = y * (b - z) t_3 = (x + z) + (t * b) tmp = 0 if y <= -1.5e+88: tmp = t_2 elif y <= -6e-239: tmp = t_1 elif y <= 1e-294: tmp = t_3 elif y <= 4.2e-205: tmp = t_1 elif y <= 5.2e-15: tmp = t_3 elif y <= 9e+70: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a + Float64(Float64(b * -2.0) + Float64(x + z))) t_2 = Float64(y * Float64(b - z)) t_3 = Float64(Float64(x + z) + Float64(t * b)) tmp = 0.0 if (y <= -1.5e+88) tmp = t_2; elseif (y <= -6e-239) tmp = t_1; elseif (y <= 1e-294) tmp = t_3; elseif (y <= 4.2e-205) tmp = t_1; elseif (y <= 5.2e-15) tmp = t_3; elseif (y <= 9e+70) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a + ((b * -2.0) + (x + z)); t_2 = y * (b - z); t_3 = (x + z) + (t * b); tmp = 0.0; if (y <= -1.5e+88) tmp = t_2; elseif (y <= -6e-239) tmp = t_1; elseif (y <= 1e-294) tmp = t_3; elseif (y <= 4.2e-205) tmp = t_1; elseif (y <= 5.2e-15) tmp = t_3; elseif (y <= 9e+70) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a + N[(N[(b * -2.0), $MachinePrecision] + N[(x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + z), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+88], t$95$2, If[LessEqual[y, -6e-239], t$95$1, If[LessEqual[y, 1e-294], t$95$3, If[LessEqual[y, 4.2e-205], t$95$1, If[LessEqual[y, 5.2e-15], t$95$3, If[LessEqual[y, 9e+70], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(b \cdot -2 + \left(x + z\right)\right)\\
t_2 := y \cdot \left(b - z\right)\\
t_3 := \left(x + z\right) + t \cdot b\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+88}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -6 \cdot 10^{-239}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 10^{-294}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-205}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-15}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.50000000000000003e88 or 8.9999999999999999e70 < y Initial program 89.2%
Taylor expanded in y around inf 81.5%
if -1.50000000000000003e88 < y < -5.9999999999999996e-239 or 1.00000000000000002e-294 < y < 4.19999999999999965e-205 or 5.20000000000000009e-15 < y < 8.9999999999999999e70Initial program 97.9%
Taylor expanded in y around 0 89.8%
associate--r+89.8%
sub-neg89.8%
mul-1-neg89.8%
remove-double-neg89.8%
sub-neg89.8%
metadata-eval89.8%
distribute-lft-in89.8%
*-commutative89.8%
neg-mul-189.8%
unsub-neg89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in t around 0 73.4%
associate-+r+73.4%
+-commutative73.4%
sub-neg73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in y around 0 65.7%
*-commutative65.7%
Simplified65.7%
if -5.9999999999999996e-239 < y < 1.00000000000000002e-294 or 4.19999999999999965e-205 < y < 5.20000000000000009e-15Initial program 98.5%
Taylor expanded in y around 0 98.5%
associate--r+98.5%
sub-neg98.5%
mul-1-neg98.5%
remove-double-neg98.5%
sub-neg98.5%
metadata-eval98.5%
distribute-lft-in98.5%
*-commutative98.5%
neg-mul-198.5%
unsub-neg98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in a around 0 77.9%
+-commutative77.9%
Simplified77.9%
Taylor expanded in t around inf 74.0%
Final simplification73.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (- (- (* y z) z) a))) (t_2 (* (- (+ y t) 2.0) b)))
(if (<= b -3.3e+100)
t_2
(if (<= b 3.3e+17)
t_1
(if (<= b 7.2e+96)
t_2
(if (<= b 2.3e+118)
t_1
(if (<= b 3e+154) (+ a (+ (+ x z) (* b (+ y -2.0)))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (((y * z) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double tmp;
if (b <= -3.3e+100) {
tmp = t_2;
} else if (b <= 3.3e+17) {
tmp = t_1;
} else if (b <= 7.2e+96) {
tmp = t_2;
} else if (b <= 2.3e+118) {
tmp = t_1;
} else if (b <= 3e+154) {
tmp = a + ((x + z) + (b * (y + -2.0)));
} 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 - (((y * z) - z) - a)
t_2 = ((y + t) - 2.0d0) * b
if (b <= (-3.3d+100)) then
tmp = t_2
else if (b <= 3.3d+17) then
tmp = t_1
else if (b <= 7.2d+96) then
tmp = t_2
else if (b <= 2.3d+118) then
tmp = t_1
else if (b <= 3d+154) then
tmp = a + ((x + z) + (b * (y + (-2.0d0))))
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 - (((y * z) - z) - a);
double t_2 = ((y + t) - 2.0) * b;
double tmp;
if (b <= -3.3e+100) {
tmp = t_2;
} else if (b <= 3.3e+17) {
tmp = t_1;
} else if (b <= 7.2e+96) {
tmp = t_2;
} else if (b <= 2.3e+118) {
tmp = t_1;
} else if (b <= 3e+154) {
tmp = a + ((x + z) + (b * (y + -2.0)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (((y * z) - z) - a) t_2 = ((y + t) - 2.0) * b tmp = 0 if b <= -3.3e+100: tmp = t_2 elif b <= 3.3e+17: tmp = t_1 elif b <= 7.2e+96: tmp = t_2 elif b <= 2.3e+118: tmp = t_1 elif b <= 3e+154: tmp = a + ((x + z) + (b * (y + -2.0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(Float64(Float64(y * z) - z) - a)) t_2 = Float64(Float64(Float64(y + t) - 2.0) * b) tmp = 0.0 if (b <= -3.3e+100) tmp = t_2; elseif (b <= 3.3e+17) tmp = t_1; elseif (b <= 7.2e+96) tmp = t_2; elseif (b <= 2.3e+118) tmp = t_1; elseif (b <= 3e+154) tmp = Float64(a + Float64(Float64(x + z) + Float64(b * Float64(y + -2.0)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (((y * z) - z) - a); t_2 = ((y + t) - 2.0) * b; tmp = 0.0; if (b <= -3.3e+100) tmp = t_2; elseif (b <= 3.3e+17) tmp = t_1; elseif (b <= 7.2e+96) tmp = t_2; elseif (b <= 2.3e+118) tmp = t_1; elseif (b <= 3e+154) tmp = a + ((x + z) + (b * (y + -2.0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(N[(y * z), $MachinePrecision] - z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -3.3e+100], t$95$2, If[LessEqual[b, 3.3e+17], t$95$1, If[LessEqual[b, 7.2e+96], t$95$2, If[LessEqual[b, 2.3e+118], t$95$1, If[LessEqual[b, 3e+154], N[(a + N[(N[(x + z), $MachinePrecision] + N[(b * N[(y + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(\left(y \cdot z - z\right) - a\right)\\
t_2 := \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -3.3 \cdot 10^{+100}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+96}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+154}:\\
\;\;\;\;a + \left(\left(x + z\right) + b \cdot \left(y + -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.3000000000000001e100 or 3.3e17 < b < 7.20000000000000026e96 or 3.00000000000000026e154 < b Initial program 91.5%
Taylor expanded in b around inf 82.8%
if -3.3000000000000001e100 < b < 3.3e17 or 7.20000000000000026e96 < b < 2.30000000000000016e118Initial program 96.3%
Taylor expanded in b around 0 85.5%
Taylor expanded in t around 0 73.8%
+-commutative73.8%
sub-neg73.8%
metadata-eval73.8%
neg-mul-173.8%
unsub-neg73.8%
distribute-rgt-in73.7%
mul-1-neg73.7%
unsub-neg73.7%
Simplified73.7%
if 2.30000000000000016e118 < b < 3.00000000000000026e154Initial program 99.8%
Taylor expanded in y around 0 99.8%
associate--r+99.8%
sub-neg99.8%
mul-1-neg99.8%
remove-double-neg99.8%
sub-neg99.8%
metadata-eval99.8%
distribute-lft-in99.8%
*-commutative99.8%
neg-mul-199.8%
unsub-neg99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in t around 0 99.8%
associate-+r+99.8%
+-commutative99.8%
sub-neg99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification77.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- (+ y t) 2.0) b)))
(if (<= y -2.6e+107)
(* y (- b z))
(if (<= y 2.65e+70)
(+ (- (+ x z) (- (* t a) a)) t_1)
(+ (+ x t_1) (* z (- 1.0 y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y + t) - 2.0) * b;
double tmp;
if (y <= -2.6e+107) {
tmp = y * (b - z);
} else if (y <= 2.65e+70) {
tmp = ((x + z) - ((t * a) - a)) + t_1;
} else {
tmp = (x + t_1) + (z * (1.0 - 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) :: t_1
real(8) :: tmp
t_1 = ((y + t) - 2.0d0) * b
if (y <= (-2.6d+107)) then
tmp = y * (b - z)
else if (y <= 2.65d+70) then
tmp = ((x + z) - ((t * a) - a)) + t_1
else
tmp = (x + t_1) + (z * (1.0d0 - y))
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 = ((y + t) - 2.0) * b;
double tmp;
if (y <= -2.6e+107) {
tmp = y * (b - z);
} else if (y <= 2.65e+70) {
tmp = ((x + z) - ((t * a) - a)) + t_1;
} else {
tmp = (x + t_1) + (z * (1.0 - y));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y + t) - 2.0) * b tmp = 0 if y <= -2.6e+107: tmp = y * (b - z) elif y <= 2.65e+70: tmp = ((x + z) - ((t * a) - a)) + t_1 else: tmp = (x + t_1) + (z * (1.0 - y)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y + t) - 2.0) * b) tmp = 0.0 if (y <= -2.6e+107) tmp = Float64(y * Float64(b - z)); elseif (y <= 2.65e+70) tmp = Float64(Float64(Float64(x + z) - Float64(Float64(t * a) - a)) + t_1); else tmp = Float64(Float64(x + t_1) + Float64(z * Float64(1.0 - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y + t) - 2.0) * b; tmp = 0.0; if (y <= -2.6e+107) tmp = y * (b - z); elseif (y <= 2.65e+70) tmp = ((x + z) - ((t * a) - a)) + t_1; else tmp = (x + t_1) + (z * (1.0 - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y, -2.6e+107], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e+70], N[(N[(N[(x + z), $MachinePrecision] - N[(N[(t * a), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(N[(x + t$95$1), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+107}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+70}:\\
\;\;\;\;\left(\left(x + z\right) - \left(t \cdot a - a\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + t_1\right) + z \cdot \left(1 - y\right)\\
\end{array}
\end{array}
if y < -2.6000000000000001e107Initial program 86.7%
Taylor expanded in y around inf 89.0%
if -2.6000000000000001e107 < y < 2.65e70Initial program 98.1%
Taylor expanded in y around 0 93.4%
associate--r+93.4%
sub-neg93.4%
mul-1-neg93.4%
remove-double-neg93.4%
sub-neg93.4%
metadata-eval93.4%
distribute-lft-in93.4%
*-commutative93.4%
neg-mul-193.4%
unsub-neg93.4%
*-commutative93.4%
Simplified93.4%
if 2.65e70 < y Initial program 91.4%
Taylor expanded in a around 0 85.4%
Final simplification91.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- (+ y t) 2.0) b)))
(if (<= y -1.75e+49)
(+ z (+ x (+ (* b (- t 2.0)) (* y (- b z)))))
(if (<= y 2.5e+70)
(+ (- (+ x z) (- (* t a) a)) t_1)
(+ (+ x t_1) (* z (- 1.0 y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y + t) - 2.0) * b;
double tmp;
if (y <= -1.75e+49) {
tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z))));
} else if (y <= 2.5e+70) {
tmp = ((x + z) - ((t * a) - a)) + t_1;
} else {
tmp = (x + t_1) + (z * (1.0 - 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) :: t_1
real(8) :: tmp
t_1 = ((y + t) - 2.0d0) * b
if (y <= (-1.75d+49)) then
tmp = z + (x + ((b * (t - 2.0d0)) + (y * (b - z))))
else if (y <= 2.5d+70) then
tmp = ((x + z) - ((t * a) - a)) + t_1
else
tmp = (x + t_1) + (z * (1.0d0 - y))
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 = ((y + t) - 2.0) * b;
double tmp;
if (y <= -1.75e+49) {
tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z))));
} else if (y <= 2.5e+70) {
tmp = ((x + z) - ((t * a) - a)) + t_1;
} else {
tmp = (x + t_1) + (z * (1.0 - y));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y + t) - 2.0) * b tmp = 0 if y <= -1.75e+49: tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z)))) elif y <= 2.5e+70: tmp = ((x + z) - ((t * a) - a)) + t_1 else: tmp = (x + t_1) + (z * (1.0 - y)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y + t) - 2.0) * b) tmp = 0.0 if (y <= -1.75e+49) tmp = Float64(z + Float64(x + Float64(Float64(b * Float64(t - 2.0)) + Float64(y * Float64(b - z))))); elseif (y <= 2.5e+70) tmp = Float64(Float64(Float64(x + z) - Float64(Float64(t * a) - a)) + t_1); else tmp = Float64(Float64(x + t_1) + Float64(z * Float64(1.0 - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y + t) - 2.0) * b; tmp = 0.0; if (y <= -1.75e+49) tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z)))); elseif (y <= 2.5e+70) tmp = ((x + z) - ((t * a) - a)) + t_1; else tmp = (x + t_1) + (z * (1.0 - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y, -1.75e+49], N[(z + N[(x + N[(N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision] + N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+70], N[(N[(N[(x + z), $MachinePrecision] - N[(N[(t * a), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(N[(x + t$95$1), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;y \leq -1.75 \cdot 10^{+49}:\\
\;\;\;\;z + \left(x + \left(b \cdot \left(t - 2\right) + y \cdot \left(b - z\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+70}:\\
\;\;\;\;\left(\left(x + z\right) - \left(t \cdot a - a\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + t_1\right) + z \cdot \left(1 - y\right)\\
\end{array}
\end{array}
if y < -1.74999999999999987e49Initial program 89.1%
Taylor expanded in y around 0 92.7%
Taylor expanded in a around 0 87.2%
if -1.74999999999999987e49 < y < 2.5000000000000001e70Initial program 98.0%
Taylor expanded in y around 0 94.8%
associate--r+94.8%
sub-neg94.8%
mul-1-neg94.8%
remove-double-neg94.8%
sub-neg94.8%
metadata-eval94.8%
distribute-lft-in94.8%
*-commutative94.8%
neg-mul-194.8%
unsub-neg94.8%
*-commutative94.8%
Simplified94.8%
if 2.5000000000000001e70 < y Initial program 91.4%
Taylor expanded in a around 0 85.4%
Final simplification91.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))) (t_2 (* y (- b z))))
(if (<= y -9e+71)
t_2
(if (<= y -2.3e-187)
(+ x a)
(if (<= y 8.8e-269)
t_1
(if (<= y 3.2e-130)
(+ x a)
(if (<= y 4.2e-120)
(+ x z)
(if (<= y 4.5e-41) t_1 (if (<= y 2.5e+70) (+ x a) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double t_2 = y * (b - z);
double tmp;
if (y <= -9e+71) {
tmp = t_2;
} else if (y <= -2.3e-187) {
tmp = x + a;
} else if (y <= 8.8e-269) {
tmp = t_1;
} else if (y <= 3.2e-130) {
tmp = x + a;
} else if (y <= 4.2e-120) {
tmp = x + z;
} else if (y <= 4.5e-41) {
tmp = t_1;
} else if (y <= 2.5e+70) {
tmp = x + 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 * (b - a)
t_2 = y * (b - z)
if (y <= (-9d+71)) then
tmp = t_2
else if (y <= (-2.3d-187)) then
tmp = x + a
else if (y <= 8.8d-269) then
tmp = t_1
else if (y <= 3.2d-130) then
tmp = x + a
else if (y <= 4.2d-120) then
tmp = x + z
else if (y <= 4.5d-41) then
tmp = t_1
else if (y <= 2.5d+70) then
tmp = x + 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 * (b - a);
double t_2 = y * (b - z);
double tmp;
if (y <= -9e+71) {
tmp = t_2;
} else if (y <= -2.3e-187) {
tmp = x + a;
} else if (y <= 8.8e-269) {
tmp = t_1;
} else if (y <= 3.2e-130) {
tmp = x + a;
} else if (y <= 4.2e-120) {
tmp = x + z;
} else if (y <= 4.5e-41) {
tmp = t_1;
} else if (y <= 2.5e+70) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) t_2 = y * (b - z) tmp = 0 if y <= -9e+71: tmp = t_2 elif y <= -2.3e-187: tmp = x + a elif y <= 8.8e-269: tmp = t_1 elif y <= 3.2e-130: tmp = x + a elif y <= 4.2e-120: tmp = x + z elif y <= 4.5e-41: tmp = t_1 elif y <= 2.5e+70: tmp = x + a else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) t_2 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -9e+71) tmp = t_2; elseif (y <= -2.3e-187) tmp = Float64(x + a); elseif (y <= 8.8e-269) tmp = t_1; elseif (y <= 3.2e-130) tmp = Float64(x + a); elseif (y <= 4.2e-120) tmp = Float64(x + z); elseif (y <= 4.5e-41) tmp = t_1; elseif (y <= 2.5e+70) tmp = Float64(x + a); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (b - a); t_2 = y * (b - z); tmp = 0.0; if (y <= -9e+71) tmp = t_2; elseif (y <= -2.3e-187) tmp = x + a; elseif (y <= 8.8e-269) tmp = t_1; elseif (y <= 3.2e-130) tmp = x + a; elseif (y <= 4.2e-120) tmp = x + z; elseif (y <= 4.5e-41) tmp = t_1; elseif (y <= 2.5e+70) tmp = x + a; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9e+71], t$95$2, If[LessEqual[y, -2.3e-187], N[(x + a), $MachinePrecision], If[LessEqual[y, 8.8e-269], t$95$1, If[LessEqual[y, 3.2e-130], N[(x + a), $MachinePrecision], If[LessEqual[y, 4.2e-120], N[(x + z), $MachinePrecision], If[LessEqual[y, 4.5e-41], t$95$1, If[LessEqual[y, 2.5e+70], N[(x + a), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
t_2 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -9 \cdot 10^{+71}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-187}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{-269}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-130}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-120}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+70}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -9.00000000000000087e71 or 2.5000000000000001e70 < y Initial program 89.7%
Taylor expanded in y around inf 80.3%
if -9.00000000000000087e71 < y < -2.29999999999999998e-187 or 8.79999999999999936e-269 < y < 3.2e-130 or 4.5e-41 < y < 2.5000000000000001e70Initial program 98.0%
Taylor expanded in b around 0 72.4%
Taylor expanded in z around 0 58.1%
sub-neg58.1%
metadata-eval58.1%
distribute-rgt-in58.1%
neg-mul-158.1%
sub-neg58.1%
Simplified58.1%
Taylor expanded in t around 0 47.8%
if -2.29999999999999998e-187 < y < 8.79999999999999936e-269 or 4.2000000000000001e-120 < y < 4.5e-41Initial program 98.0%
Taylor expanded in t around inf 54.0%
if 3.2e-130 < y < 4.2000000000000001e-120Initial program 100.0%
Taylor expanded in b around 0 100.0%
Taylor expanded in a around 0 69.0%
sub-neg69.0%
metadata-eval69.0%
distribute-rgt-in69.0%
mul-1-neg69.0%
unsub-neg69.0%
Simplified69.0%
Taylor expanded in y around 0 69.0%
+-commutative69.0%
Simplified69.0%
Final simplification61.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= b -6.6e+95)
(and (not (<= b 3.8)) (or (<= b 9.8e+96) (not (<= b 6e+133)))))
(+ (* (- (+ y t) 2.0) b) (+ x z))
(- x (- (- (* y z) z) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6.6e+95) || (!(b <= 3.8) && ((b <= 9.8e+96) || !(b <= 6e+133)))) {
tmp = (((y + t) - 2.0) * b) + (x + z);
} else {
tmp = x - (((y * z) - z) - a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-6.6d+95)) .or. (.not. (b <= 3.8d0)) .and. (b <= 9.8d+96) .or. (.not. (b <= 6d+133))) then
tmp = (((y + t) - 2.0d0) * b) + (x + z)
else
tmp = x - (((y * z) - z) - a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6.6e+95) || (!(b <= 3.8) && ((b <= 9.8e+96) || !(b <= 6e+133)))) {
tmp = (((y + t) - 2.0) * b) + (x + z);
} else {
tmp = x - (((y * z) - z) - a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -6.6e+95) or (not (b <= 3.8) and ((b <= 9.8e+96) or not (b <= 6e+133))): tmp = (((y + t) - 2.0) * b) + (x + z) else: tmp = x - (((y * z) - z) - a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -6.6e+95) || (!(b <= 3.8) && ((b <= 9.8e+96) || !(b <= 6e+133)))) tmp = Float64(Float64(Float64(Float64(y + t) - 2.0) * b) + Float64(x + z)); else tmp = Float64(x - Float64(Float64(Float64(y * z) - z) - a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -6.6e+95) || (~((b <= 3.8)) && ((b <= 9.8e+96) || ~((b <= 6e+133))))) tmp = (((y + t) - 2.0) * b) + (x + z); else tmp = x - (((y * z) - z) - a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -6.6e+95], And[N[Not[LessEqual[b, 3.8]], $MachinePrecision], Or[LessEqual[b, 9.8e+96], N[Not[LessEqual[b, 6e+133]], $MachinePrecision]]]], N[(N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision] + N[(x + z), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y * z), $MachinePrecision] - z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.6 \cdot 10^{+95} \lor \neg \left(b \leq 3.8\right) \land \left(b \leq 9.8 \cdot 10^{+96} \lor \neg \left(b \leq 6 \cdot 10^{+133}\right)\right):\\
\;\;\;\;\left(\left(y + t\right) - 2\right) \cdot b + \left(x + z\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y \cdot z - z\right) - a\right)\\
\end{array}
\end{array}
if b < -6.5999999999999997e95 or 3.7999999999999998 < b < 9.7999999999999993e96 or 6.00000000000000013e133 < b Initial program 92.6%
Taylor expanded in y around 0 96.8%
associate--r+96.8%
sub-neg96.8%
mul-1-neg96.8%
remove-double-neg96.8%
sub-neg96.8%
metadata-eval96.8%
distribute-lft-in96.8%
*-commutative96.8%
neg-mul-196.8%
unsub-neg96.8%
*-commutative96.8%
Simplified96.8%
Taylor expanded in a around 0 88.4%
+-commutative88.4%
Simplified88.4%
if -6.5999999999999997e95 < b < 3.7999999999999998 or 9.7999999999999993e96 < b < 6.00000000000000013e133Initial program 96.2%
Taylor expanded in b around 0 87.1%
Taylor expanded in t around 0 75.1%
+-commutative75.1%
sub-neg75.1%
metadata-eval75.1%
neg-mul-175.1%
unsub-neg75.1%
distribute-rgt-in75.1%
mul-1-neg75.1%
unsub-neg75.1%
Simplified75.1%
Final simplification80.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -3.6e-10) (not (<= b 9.2e-60))) (+ (+ x (* (- (+ y t) 2.0) b)) (* a (- 1.0 t))) (+ x (- (* z (- 1.0 y)) (* (+ t -1.0) a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.6e-10) || !(b <= 9.2e-60)) {
tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t));
} else {
tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * 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) :: tmp
if ((b <= (-3.6d-10)) .or. (.not. (b <= 9.2d-60))) then
tmp = (x + (((y + t) - 2.0d0) * b)) + (a * (1.0d0 - t))
else
tmp = x + ((z * (1.0d0 - y)) - ((t + (-1.0d0)) * a))
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 <= -3.6e-10) || !(b <= 9.2e-60)) {
tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t));
} else {
tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.6e-10) or not (b <= 9.2e-60): tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t)) else: tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.6e-10) || !(b <= 9.2e-60)) tmp = Float64(Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) + Float64(a * Float64(1.0 - t))); else tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) - Float64(Float64(t + -1.0) * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.6e-10) || ~((b <= 9.2e-60))) tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t)); else tmp = x + ((z * (1.0 - y)) - ((t + -1.0) * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.6e-10], N[Not[LessEqual[b, 9.2e-60]], $MachinePrecision]], N[(N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{-10} \lor \neg \left(b \leq 9.2 \cdot 10^{-60}\right):\\
\;\;\;\;\left(x + \left(\left(y + t\right) - 2\right) \cdot b\right) + a \cdot \left(1 - t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - \left(t + -1\right) \cdot a\right)\\
\end{array}
\end{array}
if b < -3.6e-10 or 9.2000000000000005e-60 < b Initial program 91.6%
Taylor expanded in z around 0 85.0%
if -3.6e-10 < b < 9.2000000000000005e-60Initial program 99.1%
Taylor expanded in b around 0 92.9%
Final simplification88.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* (- (+ y t) 2.0) b))) (t_2 (* z (- 1.0 y))))
(if (<= a -1.12e+66)
(+ x (- t_2 (* (+ t -1.0) a)))
(if (<= a 8e+105) (+ t_1 t_2) (+ t_1 (* a (- 1.0 t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double t_2 = z * (1.0 - y);
double tmp;
if (a <= -1.12e+66) {
tmp = x + (t_2 - ((t + -1.0) * a));
} else if (a <= 8e+105) {
tmp = t_1 + t_2;
} else {
tmp = t_1 + (a * (1.0 - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (((y + t) - 2.0d0) * b)
t_2 = z * (1.0d0 - y)
if (a <= (-1.12d+66)) then
tmp = x + (t_2 - ((t + (-1.0d0)) * a))
else if (a <= 8d+105) then
tmp = t_1 + t_2
else
tmp = t_1 + (a * (1.0d0 - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double t_2 = z * (1.0 - y);
double tmp;
if (a <= -1.12e+66) {
tmp = x + (t_2 - ((t + -1.0) * a));
} else if (a <= 8e+105) {
tmp = t_1 + t_2;
} else {
tmp = t_1 + (a * (1.0 - t));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((y + t) - 2.0) * b) t_2 = z * (1.0 - y) tmp = 0 if a <= -1.12e+66: tmp = x + (t_2 - ((t + -1.0) * a)) elif a <= 8e+105: tmp = t_1 + t_2 else: tmp = t_1 + (a * (1.0 - t)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) t_2 = Float64(z * Float64(1.0 - y)) tmp = 0.0 if (a <= -1.12e+66) tmp = Float64(x + Float64(t_2 - Float64(Float64(t + -1.0) * a))); elseif (a <= 8e+105) tmp = Float64(t_1 + t_2); else tmp = Float64(t_1 + Float64(a * Float64(1.0 - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((y + t) - 2.0) * b); t_2 = z * (1.0 - y); tmp = 0.0; if (a <= -1.12e+66) tmp = x + (t_2 - ((t + -1.0) * a)); elseif (a <= 8e+105) tmp = t_1 + t_2; else tmp = t_1 + (a * (1.0 - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.12e+66], N[(x + N[(t$95$2 - N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e+105], N[(t$95$1 + t$95$2), $MachinePrecision], N[(t$95$1 + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
t_2 := z \cdot \left(1 - y\right)\\
\mathbf{if}\;a \leq -1.12 \cdot 10^{+66}:\\
\;\;\;\;x + \left(t_2 - \left(t + -1\right) \cdot a\right)\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+105}:\\
\;\;\;\;t_1 + t_2\\
\mathbf{else}:\\
\;\;\;\;t_1 + a \cdot \left(1 - t\right)\\
\end{array}
\end{array}
if a < -1.12e66Initial program 92.4%
Taylor expanded in b around 0 87.2%
if -1.12e66 < a < 7.9999999999999995e105Initial program 96.3%
Taylor expanded in a around 0 92.0%
if 7.9999999999999995e105 < a Initial program 92.6%
Taylor expanded in z around 0 80.5%
Final simplification89.1%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= b -3.6e+96)
(and (not (<= b 9.2e+16)) (or (<= b 1e+97) (not (<= b 2e+152)))))
(* (- (+ y t) 2.0) b)
(- x (- (- (* y z) z) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.6e+96) || (!(b <= 9.2e+16) && ((b <= 1e+97) || !(b <= 2e+152)))) {
tmp = ((y + t) - 2.0) * b;
} else {
tmp = x - (((y * z) - z) - a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-3.6d+96)) .or. (.not. (b <= 9.2d+16)) .and. (b <= 1d+97) .or. (.not. (b <= 2d+152))) then
tmp = ((y + t) - 2.0d0) * b
else
tmp = x - (((y * z) - z) - a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.6e+96) || (!(b <= 9.2e+16) && ((b <= 1e+97) || !(b <= 2e+152)))) {
tmp = ((y + t) - 2.0) * b;
} else {
tmp = x - (((y * z) - z) - a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.6e+96) or (not (b <= 9.2e+16) and ((b <= 1e+97) or not (b <= 2e+152))): tmp = ((y + t) - 2.0) * b else: tmp = x - (((y * z) - z) - a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.6e+96) || (!(b <= 9.2e+16) && ((b <= 1e+97) || !(b <= 2e+152)))) tmp = Float64(Float64(Float64(y + t) - 2.0) * b); else tmp = Float64(x - Float64(Float64(Float64(y * z) - z) - a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.6e+96) || (~((b <= 9.2e+16)) && ((b <= 1e+97) || ~((b <= 2e+152))))) tmp = ((y + t) - 2.0) * b; else tmp = x - (((y * z) - z) - a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.6e+96], And[N[Not[LessEqual[b, 9.2e+16]], $MachinePrecision], Or[LessEqual[b, 1e+97], N[Not[LessEqual[b, 2e+152]], $MachinePrecision]]]], N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision], N[(x - N[(N[(N[(y * z), $MachinePrecision] - z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+96} \lor \neg \left(b \leq 9.2 \cdot 10^{+16}\right) \land \left(b \leq 10^{+97} \lor \neg \left(b \leq 2 \cdot 10^{+152}\right)\right):\\
\;\;\;\;\left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y \cdot z - z\right) - a\right)\\
\end{array}
\end{array}
if b < -3.60000000000000013e96 or 9.2e16 < b < 1.0000000000000001e97 or 2.0000000000000001e152 < b Initial program 91.5%
Taylor expanded in b around inf 82.8%
if -3.60000000000000013e96 < b < 9.2e16 or 1.0000000000000001e97 < b < 2.0000000000000001e152Initial program 96.5%
Taylor expanded in b around 0 85.0%
Taylor expanded in t around 0 73.8%
+-commutative73.8%
sub-neg73.8%
metadata-eval73.8%
neg-mul-173.8%
unsub-neg73.8%
distribute-rgt-in73.8%
mul-1-neg73.8%
unsub-neg73.8%
Simplified73.8%
Final simplification76.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- (+ y t) 2.0) b)))
(if (<= b -4.5e+32)
t_1
(if (<= b 3e+16)
(- x (* y z))
(if (or (<= b 1e+97) (not (<= b 2e+152))) t_1 (+ x a))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y + t) - 2.0) * b;
double tmp;
if (b <= -4.5e+32) {
tmp = t_1;
} else if (b <= 3e+16) {
tmp = x - (y * z);
} else if ((b <= 1e+97) || !(b <= 2e+152)) {
tmp = t_1;
} else {
tmp = x + 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 = ((y + t) - 2.0d0) * b
if (b <= (-4.5d+32)) then
tmp = t_1
else if (b <= 3d+16) then
tmp = x - (y * z)
else if ((b <= 1d+97) .or. (.not. (b <= 2d+152))) then
tmp = t_1
else
tmp = x + 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 = ((y + t) - 2.0) * b;
double tmp;
if (b <= -4.5e+32) {
tmp = t_1;
} else if (b <= 3e+16) {
tmp = x - (y * z);
} else if ((b <= 1e+97) || !(b <= 2e+152)) {
tmp = t_1;
} else {
tmp = x + a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y + t) - 2.0) * b tmp = 0 if b <= -4.5e+32: tmp = t_1 elif b <= 3e+16: tmp = x - (y * z) elif (b <= 1e+97) or not (b <= 2e+152): tmp = t_1 else: tmp = x + a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y + t) - 2.0) * b) tmp = 0.0 if (b <= -4.5e+32) tmp = t_1; elseif (b <= 3e+16) tmp = Float64(x - Float64(y * z)); elseif ((b <= 1e+97) || !(b <= 2e+152)) tmp = t_1; else tmp = Float64(x + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y + t) - 2.0) * b; tmp = 0.0; if (b <= -4.5e+32) tmp = t_1; elseif (b <= 3e+16) tmp = x - (y * z); elseif ((b <= 1e+97) || ~((b <= 2e+152))) tmp = t_1; else tmp = x + a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -4.5e+32], t$95$1, If[LessEqual[b, 3e+16], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1e+97], N[Not[LessEqual[b, 2e+152]], $MachinePrecision]], t$95$1, N[(x + a), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+16}:\\
\;\;\;\;x - y \cdot z\\
\mathbf{elif}\;b \leq 10^{+97} \lor \neg \left(b \leq 2 \cdot 10^{+152}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + a\\
\end{array}
\end{array}
if b < -4.5000000000000003e32 or 3e16 < b < 1.0000000000000001e97 or 2.0000000000000001e152 < b Initial program 90.8%
Taylor expanded in b around inf 76.9%
if -4.5000000000000003e32 < b < 3e16Initial program 99.3%
Taylor expanded in b around 0 88.8%
Taylor expanded in y around inf 53.2%
if 1.0000000000000001e97 < b < 2.0000000000000001e152Initial program 79.9%
Taylor expanded in b around 0 80.1%
Taylor expanded in z around 0 48.2%
sub-neg48.2%
metadata-eval48.2%
distribute-rgt-in48.2%
neg-mul-148.2%
sub-neg48.2%
Simplified48.2%
Taylor expanded in t around 0 48.7%
Final simplification62.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (+ x z) (* t b))) (t_2 (* y (- b z))))
(if (<= y -6.5e+20)
t_2
(if (<= y -1.35e-141)
t_1
(if (<= y -2.2e-192) (* a (- 1.0 t)) (if (<= y 8.6e+38) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + z) + (t * b);
double t_2 = y * (b - z);
double tmp;
if (y <= -6.5e+20) {
tmp = t_2;
} else if (y <= -1.35e-141) {
tmp = t_1;
} else if (y <= -2.2e-192) {
tmp = a * (1.0 - t);
} else if (y <= 8.6e+38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x + z) + (t * b)
t_2 = y * (b - z)
if (y <= (-6.5d+20)) then
tmp = t_2
else if (y <= (-1.35d-141)) then
tmp = t_1
else if (y <= (-2.2d-192)) then
tmp = a * (1.0d0 - t)
else if (y <= 8.6d+38) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + z) + (t * b);
double t_2 = y * (b - z);
double tmp;
if (y <= -6.5e+20) {
tmp = t_2;
} else if (y <= -1.35e-141) {
tmp = t_1;
} else if (y <= -2.2e-192) {
tmp = a * (1.0 - t);
} else if (y <= 8.6e+38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + z) + (t * b) t_2 = y * (b - z) tmp = 0 if y <= -6.5e+20: tmp = t_2 elif y <= -1.35e-141: tmp = t_1 elif y <= -2.2e-192: tmp = a * (1.0 - t) elif y <= 8.6e+38: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + z) + Float64(t * b)) t_2 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -6.5e+20) tmp = t_2; elseif (y <= -1.35e-141) tmp = t_1; elseif (y <= -2.2e-192) tmp = Float64(a * Float64(1.0 - t)); elseif (y <= 8.6e+38) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + z) + (t * b); t_2 = y * (b - z); tmp = 0.0; if (y <= -6.5e+20) tmp = t_2; elseif (y <= -1.35e-141) tmp = t_1; elseif (y <= -2.2e-192) tmp = a * (1.0 - t); elseif (y <= 8.6e+38) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + z), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+20], t$95$2, If[LessEqual[y, -1.35e-141], t$95$1, If[LessEqual[y, -2.2e-192], N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+38], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + z\right) + t \cdot b\\
t_2 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.2 \cdot 10^{-192}:\\
\;\;\;\;a \cdot \left(1 - t\right)\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -6.5e20 or 8.5999999999999994e38 < y Initial program 91.0%
Taylor expanded in y around inf 75.7%
if -6.5e20 < y < -1.3500000000000001e-141 or -2.20000000000000006e-192 < y < 8.5999999999999994e38Initial program 97.7%
Taylor expanded in y around 0 95.5%
associate--r+95.5%
sub-neg95.5%
mul-1-neg95.5%
remove-double-neg95.5%
sub-neg95.5%
metadata-eval95.5%
distribute-lft-in95.5%
*-commutative95.5%
neg-mul-195.5%
unsub-neg95.5%
*-commutative95.5%
Simplified95.5%
Taylor expanded in a around 0 73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in t around inf 60.0%
if -1.3500000000000001e-141 < y < -2.20000000000000006e-192Initial program 100.0%
Taylor expanded in a around inf 64.9%
Final simplification67.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (- a (* t a)))) (t_2 (* y (- b z))))
(if (<= y -9.6e+71)
t_2
(if (<= y -1.9e-192)
t_1
(if (<= y 6.4e-56) (+ (+ x z) (* t b)) (if (<= y 5.2e+71) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a - (t * a));
double t_2 = y * (b - z);
double tmp;
if (y <= -9.6e+71) {
tmp = t_2;
} else if (y <= -1.9e-192) {
tmp = t_1;
} else if (y <= 6.4e-56) {
tmp = (x + z) + (t * b);
} else if (y <= 5.2e+71) {
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 + (a - (t * a))
t_2 = y * (b - z)
if (y <= (-9.6d+71)) then
tmp = t_2
else if (y <= (-1.9d-192)) then
tmp = t_1
else if (y <= 6.4d-56) then
tmp = (x + z) + (t * b)
else if (y <= 5.2d+71) 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 + (a - (t * a));
double t_2 = y * (b - z);
double tmp;
if (y <= -9.6e+71) {
tmp = t_2;
} else if (y <= -1.9e-192) {
tmp = t_1;
} else if (y <= 6.4e-56) {
tmp = (x + z) + (t * b);
} else if (y <= 5.2e+71) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a - (t * a)) t_2 = y * (b - z) tmp = 0 if y <= -9.6e+71: tmp = t_2 elif y <= -1.9e-192: tmp = t_1 elif y <= 6.4e-56: tmp = (x + z) + (t * b) elif y <= 5.2e+71: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a - Float64(t * a))) t_2 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -9.6e+71) tmp = t_2; elseif (y <= -1.9e-192) tmp = t_1; elseif (y <= 6.4e-56) tmp = Float64(Float64(x + z) + Float64(t * b)); elseif (y <= 5.2e+71) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (a - (t * a)); t_2 = y * (b - z); tmp = 0.0; if (y <= -9.6e+71) tmp = t_2; elseif (y <= -1.9e-192) tmp = t_1; elseif (y <= 6.4e-56) tmp = (x + z) + (t * b); elseif (y <= 5.2e+71) 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[(a - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.6e+71], t$95$2, If[LessEqual[y, -1.9e-192], t$95$1, If[LessEqual[y, 6.4e-56], N[(N[(x + z), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+71], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(a - t \cdot a\right)\\
t_2 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -9.6 \cdot 10^{+71}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{-56}:\\
\;\;\;\;\left(x + z\right) + t \cdot b\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+71}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -9.59999999999999923e71 or 5.19999999999999983e71 < y Initial program 89.7%
Taylor expanded in y around inf 80.3%
if -9.59999999999999923e71 < y < -1.9000000000000001e-192 or 6.39999999999999971e-56 < y < 5.19999999999999983e71Initial program 97.4%
Taylor expanded in b around 0 73.5%
Taylor expanded in z around 0 55.9%
sub-neg55.9%
metadata-eval55.9%
distribute-rgt-in55.9%
neg-mul-155.9%
sub-neg55.9%
Simplified55.9%
if -1.9000000000000001e-192 < y < 6.39999999999999971e-56Initial program 98.7%
Taylor expanded in y around 0 98.7%
associate--r+98.7%
sub-neg98.7%
mul-1-neg98.7%
remove-double-neg98.7%
sub-neg98.7%
metadata-eval98.7%
distribute-lft-in98.8%
*-commutative98.8%
neg-mul-198.8%
unsub-neg98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in a around 0 79.2%
+-commutative79.2%
Simplified79.2%
Taylor expanded in t around inf 67.8%
Final simplification69.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -1.18e+33)
t_1
(if (<= t -2.4e-296)
(+ x a)
(if (<= t 1.85e-206) (+ x z) (if (<= t 5.2e+33) (+ x a) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -1.18e+33) {
tmp = t_1;
} else if (t <= -2.4e-296) {
tmp = x + a;
} else if (t <= 1.85e-206) {
tmp = x + z;
} else if (t <= 5.2e+33) {
tmp = x + a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b - a)
if (t <= (-1.18d+33)) then
tmp = t_1
else if (t <= (-2.4d-296)) then
tmp = x + a
else if (t <= 1.85d-206) then
tmp = x + z
else if (t <= 5.2d+33) then
tmp = x + a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -1.18e+33) {
tmp = t_1;
} else if (t <= -2.4e-296) {
tmp = x + a;
} else if (t <= 1.85e-206) {
tmp = x + z;
} else if (t <= 5.2e+33) {
tmp = x + a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -1.18e+33: tmp = t_1 elif t <= -2.4e-296: tmp = x + a elif t <= 1.85e-206: tmp = x + z elif t <= 5.2e+33: tmp = x + a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.18e+33) tmp = t_1; elseif (t <= -2.4e-296) tmp = Float64(x + a); elseif (t <= 1.85e-206) tmp = Float64(x + z); elseif (t <= 5.2e+33) tmp = Float64(x + a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (b - a); tmp = 0.0; if (t <= -1.18e+33) tmp = t_1; elseif (t <= -2.4e-296) tmp = x + a; elseif (t <= 1.85e-206) tmp = x + z; elseif (t <= 5.2e+33) tmp = x + a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.18e+33], t$95$1, If[LessEqual[t, -2.4e-296], N[(x + a), $MachinePrecision], If[LessEqual[t, 1.85e-206], N[(x + z), $MachinePrecision], If[LessEqual[t, 5.2e+33], N[(x + a), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.18 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-296}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-206}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+33}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.17999999999999993e33 or 5.1999999999999995e33 < t Initial program 90.2%
Taylor expanded in t around inf 58.1%
if -1.17999999999999993e33 < t < -2.39999999999999996e-296 or 1.84999999999999999e-206 < t < 5.1999999999999995e33Initial program 98.2%
Taylor expanded in b around 0 68.4%
Taylor expanded in z around 0 40.7%
sub-neg40.7%
metadata-eval40.7%
distribute-rgt-in40.7%
neg-mul-140.7%
sub-neg40.7%
Simplified40.7%
Taylor expanded in t around 0 39.7%
if -2.39999999999999996e-296 < t < 1.84999999999999999e-206Initial program 99.9%
Taylor expanded in b around 0 77.4%
Taylor expanded in a around 0 70.4%
sub-neg70.4%
metadata-eval70.4%
distribute-rgt-in70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
Taylor expanded in y around 0 47.6%
+-commutative47.6%
Simplified47.6%
Final simplification48.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -4.6e+92)
(* y b)
(if (<= y -3.5e-57)
(+ x a)
(if (<= y 1.2e-56) (+ x z) (if (<= y 8e+76) (+ x a) (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.6e+92) {
tmp = y * b;
} else if (y <= -3.5e-57) {
tmp = x + a;
} else if (y <= 1.2e-56) {
tmp = x + z;
} else if (y <= 8e+76) {
tmp = x + a;
} else {
tmp = y * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-4.6d+92)) then
tmp = y * b
else if (y <= (-3.5d-57)) then
tmp = x + a
else if (y <= 1.2d-56) then
tmp = x + z
else if (y <= 8d+76) then
tmp = x + a
else
tmp = y * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -4.6e+92) {
tmp = y * b;
} else if (y <= -3.5e-57) {
tmp = x + a;
} else if (y <= 1.2e-56) {
tmp = x + z;
} else if (y <= 8e+76) {
tmp = x + a;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -4.6e+92: tmp = y * b elif y <= -3.5e-57: tmp = x + a elif y <= 1.2e-56: tmp = x + z elif y <= 8e+76: tmp = x + a else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -4.6e+92) tmp = Float64(y * b); elseif (y <= -3.5e-57) tmp = Float64(x + a); elseif (y <= 1.2e-56) tmp = Float64(x + z); elseif (y <= 8e+76) tmp = Float64(x + a); else tmp = Float64(y * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -4.6e+92) tmp = y * b; elseif (y <= -3.5e-57) tmp = x + a; elseif (y <= 1.2e-56) tmp = x + z; elseif (y <= 8e+76) tmp = x + a; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -4.6e+92], N[(y * b), $MachinePrecision], If[LessEqual[y, -3.5e-57], N[(x + a), $MachinePrecision], If[LessEqual[y, 1.2e-56], N[(x + z), $MachinePrecision], If[LessEqual[y, 8e+76], N[(x + a), $MachinePrecision], N[(y * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.6 \cdot 10^{+92}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-57}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-56}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+76}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -4.59999999999999997e92 or 8.0000000000000004e76 < y Initial program 89.1%
Taylor expanded in y around 0 57.2%
associate--r+57.2%
sub-neg57.2%
mul-1-neg57.2%
remove-double-neg57.2%
sub-neg57.2%
metadata-eval57.2%
distribute-lft-in57.2%
*-commutative57.2%
neg-mul-157.2%
unsub-neg57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in y around inf 39.0%
*-commutative39.0%
Simplified39.0%
if -4.59999999999999997e92 < y < -3.49999999999999991e-57 or 1.2e-56 < y < 8.0000000000000004e76Initial program 98.2%
Taylor expanded in b around 0 69.8%
Taylor expanded in z around 0 51.3%
sub-neg51.3%
metadata-eval51.3%
distribute-rgt-in51.3%
neg-mul-151.3%
sub-neg51.3%
Simplified51.3%
Taylor expanded in t around 0 44.7%
if -3.49999999999999991e-57 < y < 1.2e-56Initial program 98.1%
Taylor expanded in b around 0 67.1%
Taylor expanded in a around 0 40.8%
sub-neg40.8%
metadata-eval40.8%
distribute-rgt-in40.8%
mul-1-neg40.8%
unsub-neg40.8%
Simplified40.8%
Taylor expanded in y around 0 40.8%
+-commutative40.8%
Simplified40.8%
Final simplification41.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= a -1.3e+56)
t_1
(if (<= a 1.1e-155) (+ x z) (if (<= a 5.2e+105) (* y b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (a <= -1.3e+56) {
tmp = t_1;
} else if (a <= 1.1e-155) {
tmp = x + z;
} else if (a <= 5.2e+105) {
tmp = y * 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 = a * (1.0d0 - t)
if (a <= (-1.3d+56)) then
tmp = t_1
else if (a <= 1.1d-155) then
tmp = x + z
else if (a <= 5.2d+105) then
tmp = y * 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 = a * (1.0 - t);
double tmp;
if (a <= -1.3e+56) {
tmp = t_1;
} else if (a <= 1.1e-155) {
tmp = x + z;
} else if (a <= 5.2e+105) {
tmp = y * b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if a <= -1.3e+56: tmp = t_1 elif a <= 1.1e-155: tmp = x + z elif a <= 5.2e+105: tmp = y * b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (a <= -1.3e+56) tmp = t_1; elseif (a <= 1.1e-155) tmp = Float64(x + z); elseif (a <= 5.2e+105) tmp = Float64(y * b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (a <= -1.3e+56) tmp = t_1; elseif (a <= 1.1e-155) tmp = x + z; elseif (a <= 5.2e+105) tmp = y * b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.3e+56], t$95$1, If[LessEqual[a, 1.1e-155], N[(x + z), $MachinePrecision], If[LessEqual[a, 5.2e+105], N[(y * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -1.3 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-155}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+105}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.30000000000000005e56 or 5.2000000000000004e105 < a Initial program 92.7%
Taylor expanded in a around inf 52.1%
if -1.30000000000000005e56 < a < 1.1e-155Initial program 96.1%
Taylor expanded in b around 0 63.5%
Taylor expanded in a around 0 60.4%
sub-neg60.4%
metadata-eval60.4%
distribute-rgt-in60.4%
mul-1-neg60.4%
unsub-neg60.4%
Simplified60.4%
Taylor expanded in y around 0 40.7%
+-commutative40.7%
Simplified40.7%
if 1.1e-155 < a < 5.2000000000000004e105Initial program 96.3%
Taylor expanded in y around 0 75.9%
associate--r+75.9%
sub-neg75.9%
mul-1-neg75.9%
remove-double-neg75.9%
sub-neg75.9%
metadata-eval75.9%
distribute-lft-in75.8%
*-commutative75.8%
neg-mul-175.8%
unsub-neg75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in y around inf 35.6%
*-commutative35.6%
Simplified35.6%
Final simplification43.8%
(FPCore (x y z t a b) :precision binary64 (if (<= a -2.05e+169) a (if (<= a 1.05e-155) x (if (<= a 1.35e+202) (* y b) a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -2.05e+169) {
tmp = a;
} else if (a <= 1.05e-155) {
tmp = x;
} else if (a <= 1.35e+202) {
tmp = y * b;
} else {
tmp = 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) :: tmp
if (a <= (-2.05d+169)) then
tmp = a
else if (a <= 1.05d-155) then
tmp = x
else if (a <= 1.35d+202) then
tmp = y * b
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -2.05e+169) {
tmp = a;
} else if (a <= 1.05e-155) {
tmp = x;
} else if (a <= 1.35e+202) {
tmp = y * b;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -2.05e+169: tmp = a elif a <= 1.05e-155: tmp = x elif a <= 1.35e+202: tmp = y * b else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -2.05e+169) tmp = a; elseif (a <= 1.05e-155) tmp = x; elseif (a <= 1.35e+202) tmp = Float64(y * b); else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -2.05e+169) tmp = a; elseif (a <= 1.05e-155) tmp = x; elseif (a <= 1.35e+202) tmp = y * b; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -2.05e+169], a, If[LessEqual[a, 1.05e-155], x, If[LessEqual[a, 1.35e+202], N[(y * b), $MachinePrecision], a]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.05 \cdot 10^{+169}:\\
\;\;\;\;a\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-155}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+202}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < -2.0500000000000002e169 or 1.34999999999999998e202 < a Initial program 92.6%
Taylor expanded in a around inf 70.9%
Taylor expanded in t around 0 46.9%
if -2.0500000000000002e169 < a < 1.0500000000000001e-155Initial program 94.9%
Taylor expanded in x around inf 24.3%
if 1.0500000000000001e-155 < a < 1.34999999999999998e202Initial program 96.0%
Taylor expanded in y around 0 77.9%
associate--r+77.9%
sub-neg77.9%
mul-1-neg77.9%
remove-double-neg77.9%
sub-neg77.9%
metadata-eval77.9%
distribute-lft-in77.9%
*-commutative77.9%
neg-mul-177.9%
unsub-neg77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in y around inf 32.6%
*-commutative32.6%
Simplified32.6%
Final simplification30.4%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.2e+95) (* y b) (if (<= y 8.2e+76) (+ x a) (* y b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.2e+95) {
tmp = y * b;
} else if (y <= 8.2e+76) {
tmp = x + a;
} else {
tmp = y * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-2.2d+95)) then
tmp = y * b
else if (y <= 8.2d+76) then
tmp = x + a
else
tmp = y * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.2e+95) {
tmp = y * b;
} else if (y <= 8.2e+76) {
tmp = x + a;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.2e+95: tmp = y * b elif y <= 8.2e+76: tmp = x + a else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.2e+95) tmp = Float64(y * b); elseif (y <= 8.2e+76) tmp = Float64(x + a); else tmp = Float64(y * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.2e+95) tmp = y * b; elseif (y <= 8.2e+76) tmp = x + a; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.2e+95], N[(y * b), $MachinePrecision], If[LessEqual[y, 8.2e+76], N[(x + a), $MachinePrecision], N[(y * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+95}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+76}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -2.1999999999999999e95 or 8.1999999999999997e76 < y Initial program 89.1%
Taylor expanded in y around 0 57.2%
associate--r+57.2%
sub-neg57.2%
mul-1-neg57.2%
remove-double-neg57.2%
sub-neg57.2%
metadata-eval57.2%
distribute-lft-in57.2%
*-commutative57.2%
neg-mul-157.2%
unsub-neg57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in y around inf 39.0%
*-commutative39.0%
Simplified39.0%
if -2.1999999999999999e95 < y < 8.1999999999999997e76Initial program 98.1%
Taylor expanded in b around 0 68.0%
Taylor expanded in z around 0 50.4%
sub-neg50.4%
metadata-eval50.4%
distribute-rgt-in50.4%
neg-mul-150.4%
sub-neg50.4%
Simplified50.4%
Taylor expanded in t around 0 37.1%
Final simplification37.7%
(FPCore (x y z t a b) :precision binary64 (if (<= a -2e+169) a (if (<= a 5e+94) x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -2e+169) {
tmp = a;
} else if (a <= 5e+94) {
tmp = x;
} else {
tmp = 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) :: tmp
if (a <= (-2d+169)) then
tmp = a
else if (a <= 5d+94) then
tmp = x
else
tmp = a
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 <= -2e+169) {
tmp = a;
} else if (a <= 5e+94) {
tmp = x;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -2e+169: tmp = a elif a <= 5e+94: tmp = x else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -2e+169) tmp = a; elseif (a <= 5e+94) tmp = x; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -2e+169) tmp = a; elseif (a <= 5e+94) tmp = x; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -2e+169], a, If[LessEqual[a, 5e+94], x, a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{+169}:\\
\;\;\;\;a\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+94}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < -1.99999999999999987e169 or 5.0000000000000001e94 < a Initial program 92.3%
Taylor expanded in a around inf 57.5%
Taylor expanded in t around 0 35.3%
if -1.99999999999999987e169 < a < 5.0000000000000001e94Initial program 95.8%
Taylor expanded in x around inf 21.5%
Final simplification25.0%
(FPCore (x y z t a b) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b) {
return 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 = a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a;
}
def code(x, y, z, t, a, b): return a
function code(x, y, z, t, a, b) return a end
function tmp = code(x, y, z, t, a, b) tmp = a; end
code[x_, y_, z_, t_, a_, b_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 94.9%
Taylor expanded in a around inf 24.1%
Taylor expanded in t around 0 12.0%
Final simplification12.0%
herbie shell --seed 2023290
(FPCore (x y z t a b)
:name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
:precision binary64
(+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))