
(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 22 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 (* z (- 1.0 y))) (* a (- 1.0 t))) (* b (- (+ y t) 2.0)))))
(if (<= t_1 INFINITY) t_1 (* y (- b z)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = 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 + (z * (1.0 - y))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * (b - z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0)) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * (b - z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x + Float64(z * Float64(1.0 - y))) + Float64(a * Float64(1.0 - t))) + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(b - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x + (z * (1.0 - y))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0)); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * (b - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x + z \cdot \left(1 - y\right)\right) + a \cdot \left(1 - t\right)\right) + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) Initial program 0.0%
Taylor expanded in y around inf 64.5%
Final simplification98.0%
(FPCore (x y z t a b) :precision binary64 (fma (+ y (+ t -2.0)) b (- x (fma (+ y -1.0) z (* a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
return fma((y + (t + -2.0)), b, (x - fma((y + -1.0), z, (a * (t + -1.0)))));
}
function code(x, y, z, t, a, b) return fma(Float64(y + Float64(t + -2.0)), b, Float64(x - fma(Float64(y + -1.0), z, Float64(a * Float64(t + -1.0))))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] * b + N[(x - N[(N[(y + -1.0), $MachinePrecision] * z + N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y + \left(t + -2\right), b, x - \mathsf{fma}\left(y + -1, z, a \cdot \left(t + -1\right)\right)\right)
\end{array}
Initial program 94.5%
+-commutative94.5%
fma-define96.1%
associate--l+96.1%
sub-neg96.1%
metadata-eval96.1%
sub-neg96.1%
associate-+l-96.1%
fma-neg96.8%
sub-neg96.8%
metadata-eval96.8%
remove-double-neg96.8%
sub-neg96.8%
metadata-eval96.8%
Simplified96.8%
Final simplification96.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- y 2.0))) (t_2 (* t (- b a))))
(if (<= t -1.66e-15)
t_2
(if (<= t -1.45e-229)
t_1
(if (<= t 1.18e-262)
(+ x z)
(if (<= t 4.6e-164)
t_1
(if (<= t 2.4e-84)
(+ x z)
(if (<= t 1.52e-34)
t_1
(if (<= t 1.65e+17) (* y (- z)) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (y - 2.0);
double t_2 = t * (b - a);
double tmp;
if (t <= -1.66e-15) {
tmp = t_2;
} else if (t <= -1.45e-229) {
tmp = t_1;
} else if (t <= 1.18e-262) {
tmp = x + z;
} else if (t <= 4.6e-164) {
tmp = t_1;
} else if (t <= 2.4e-84) {
tmp = x + z;
} else if (t <= 1.52e-34) {
tmp = t_1;
} else if (t <= 1.65e+17) {
tmp = y * -z;
} 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 = b * (y - 2.0d0)
t_2 = t * (b - a)
if (t <= (-1.66d-15)) then
tmp = t_2
else if (t <= (-1.45d-229)) then
tmp = t_1
else if (t <= 1.18d-262) then
tmp = x + z
else if (t <= 4.6d-164) then
tmp = t_1
else if (t <= 2.4d-84) then
tmp = x + z
else if (t <= 1.52d-34) then
tmp = t_1
else if (t <= 1.65d+17) then
tmp = y * -z
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 = b * (y - 2.0);
double t_2 = t * (b - a);
double tmp;
if (t <= -1.66e-15) {
tmp = t_2;
} else if (t <= -1.45e-229) {
tmp = t_1;
} else if (t <= 1.18e-262) {
tmp = x + z;
} else if (t <= 4.6e-164) {
tmp = t_1;
} else if (t <= 2.4e-84) {
tmp = x + z;
} else if (t <= 1.52e-34) {
tmp = t_1;
} else if (t <= 1.65e+17) {
tmp = y * -z;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (y - 2.0) t_2 = t * (b - a) tmp = 0 if t <= -1.66e-15: tmp = t_2 elif t <= -1.45e-229: tmp = t_1 elif t <= 1.18e-262: tmp = x + z elif t <= 4.6e-164: tmp = t_1 elif t <= 2.4e-84: tmp = x + z elif t <= 1.52e-34: tmp = t_1 elif t <= 1.65e+17: tmp = y * -z else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(y - 2.0)) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.66e-15) tmp = t_2; elseif (t <= -1.45e-229) tmp = t_1; elseif (t <= 1.18e-262) tmp = Float64(x + z); elseif (t <= 4.6e-164) tmp = t_1; elseif (t <= 2.4e-84) tmp = Float64(x + z); elseif (t <= 1.52e-34) tmp = t_1; elseif (t <= 1.65e+17) tmp = Float64(y * Float64(-z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (y - 2.0); t_2 = t * (b - a); tmp = 0.0; if (t <= -1.66e-15) tmp = t_2; elseif (t <= -1.45e-229) tmp = t_1; elseif (t <= 1.18e-262) tmp = x + z; elseif (t <= 4.6e-164) tmp = t_1; elseif (t <= 2.4e-84) tmp = x + z; elseif (t <= 1.52e-34) tmp = t_1; elseif (t <= 1.65e+17) tmp = y * -z; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.66e-15], t$95$2, If[LessEqual[t, -1.45e-229], t$95$1, If[LessEqual[t, 1.18e-262], N[(x + z), $MachinePrecision], If[LessEqual[t, 4.6e-164], t$95$1, If[LessEqual[t, 2.4e-84], N[(x + z), $MachinePrecision], If[LessEqual[t, 1.52e-34], t$95$1, If[LessEqual[t, 1.65e+17], N[(y * (-z)), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y - 2\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.66 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-262}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-84}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq 1.52 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+17}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.65999999999999996e-15 or 1.65e17 < t Initial program 91.4%
Taylor expanded in t around inf 65.5%
if -1.65999999999999996e-15 < t < -1.45e-229 or 1.17999999999999994e-262 < t < 4.59999999999999971e-164 or 2.40000000000000017e-84 < t < 1.52e-34Initial program 95.9%
Taylor expanded in t around -inf 60.6%
associate-*r*60.6%
neg-mul-160.6%
distribute-lft-out--60.6%
associate-*r*60.6%
distribute-lft-neg-in60.6%
*-commutative60.6%
neg-mul-160.6%
remove-double-neg60.6%
Simplified60.6%
Taylor expanded in x around inf 43.5%
Taylor expanded in t around 0 62.5%
Taylor expanded in x around 0 46.4%
if -1.45e-229 < t < 1.17999999999999994e-262 or 4.59999999999999971e-164 < t < 2.40000000000000017e-84Initial program 100.0%
Taylor expanded in b around 0 85.3%
Taylor expanded in a around 0 67.3%
Taylor expanded in y around 0 46.6%
cancel-sign-sub-inv46.6%
metadata-eval46.6%
*-lft-identity46.6%
Simplified46.6%
if 1.52e-34 < t < 1.65e17Initial program 99.8%
Taylor expanded in z around inf 73.6%
Taylor expanded in y around inf 63.5%
mul-1-neg63.5%
distribute-rgt-neg-in63.5%
Simplified63.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- z))) (t_2 (* a (- 1.0 t))))
(if (<= a -1.25e-33)
t_2
(if (<= a -8.5e-84)
t_1
(if (<= a -7.3e-233)
(+ x z)
(if (<= a -4.4e-274)
(* y b)
(if (<= a -2.45e-291)
(* b (- t 2.0))
(if (<= a 3.3e-304) t_1 (if (<= a 6e+35) (+ x z) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double t_2 = a * (1.0 - t);
double tmp;
if (a <= -1.25e-33) {
tmp = t_2;
} else if (a <= -8.5e-84) {
tmp = t_1;
} else if (a <= -7.3e-233) {
tmp = x + z;
} else if (a <= -4.4e-274) {
tmp = y * b;
} else if (a <= -2.45e-291) {
tmp = b * (t - 2.0);
} else if (a <= 3.3e-304) {
tmp = t_1;
} else if (a <= 6e+35) {
tmp = x + z;
} 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 = y * -z
t_2 = a * (1.0d0 - t)
if (a <= (-1.25d-33)) then
tmp = t_2
else if (a <= (-8.5d-84)) then
tmp = t_1
else if (a <= (-7.3d-233)) then
tmp = x + z
else if (a <= (-4.4d-274)) then
tmp = y * b
else if (a <= (-2.45d-291)) then
tmp = b * (t - 2.0d0)
else if (a <= 3.3d-304) then
tmp = t_1
else if (a <= 6d+35) then
tmp = x + z
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 = y * -z;
double t_2 = a * (1.0 - t);
double tmp;
if (a <= -1.25e-33) {
tmp = t_2;
} else if (a <= -8.5e-84) {
tmp = t_1;
} else if (a <= -7.3e-233) {
tmp = x + z;
} else if (a <= -4.4e-274) {
tmp = y * b;
} else if (a <= -2.45e-291) {
tmp = b * (t - 2.0);
} else if (a <= 3.3e-304) {
tmp = t_1;
} else if (a <= 6e+35) {
tmp = x + z;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * -z t_2 = a * (1.0 - t) tmp = 0 if a <= -1.25e-33: tmp = t_2 elif a <= -8.5e-84: tmp = t_1 elif a <= -7.3e-233: tmp = x + z elif a <= -4.4e-274: tmp = y * b elif a <= -2.45e-291: tmp = b * (t - 2.0) elif a <= 3.3e-304: tmp = t_1 elif a <= 6e+35: tmp = x + z else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(-z)) t_2 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (a <= -1.25e-33) tmp = t_2; elseif (a <= -8.5e-84) tmp = t_1; elseif (a <= -7.3e-233) tmp = Float64(x + z); elseif (a <= -4.4e-274) tmp = Float64(y * b); elseif (a <= -2.45e-291) tmp = Float64(b * Float64(t - 2.0)); elseif (a <= 3.3e-304) tmp = t_1; elseif (a <= 6e+35) tmp = Float64(x + z); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * -z; t_2 = a * (1.0 - t); tmp = 0.0; if (a <= -1.25e-33) tmp = t_2; elseif (a <= -8.5e-84) tmp = t_1; elseif (a <= -7.3e-233) tmp = x + z; elseif (a <= -4.4e-274) tmp = y * b; elseif (a <= -2.45e-291) tmp = b * (t - 2.0); elseif (a <= 3.3e-304) tmp = t_1; elseif (a <= 6e+35) tmp = x + z; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * (-z)), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.25e-33], t$95$2, If[LessEqual[a, -8.5e-84], t$95$1, If[LessEqual[a, -7.3e-233], N[(x + z), $MachinePrecision], If[LessEqual[a, -4.4e-274], N[(y * b), $MachinePrecision], If[LessEqual[a, -2.45e-291], N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-304], t$95$1, If[LessEqual[a, 6e+35], N[(x + z), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(-z\right)\\
t_2 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -1.25 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.3 \cdot 10^{-233}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-274}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-291}:\\
\;\;\;\;b \cdot \left(t - 2\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+35}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.25000000000000007e-33 or 5.99999999999999981e35 < a Initial program 92.1%
Taylor expanded in a around inf 57.4%
if -1.25000000000000007e-33 < a < -8.4999999999999994e-84 or -2.44999999999999997e-291 < a < 3.30000000000000013e-304Initial program 92.9%
Taylor expanded in z around inf 72.6%
Taylor expanded in y around inf 72.7%
mul-1-neg72.7%
distribute-rgt-neg-in72.7%
Simplified72.7%
if -8.4999999999999994e-84 < a < -7.3000000000000003e-233 or 3.30000000000000013e-304 < a < 5.99999999999999981e35Initial program 98.0%
Taylor expanded in b around 0 57.9%
Taylor expanded in a around 0 54.0%
Taylor expanded in y around 0 36.1%
cancel-sign-sub-inv36.1%
metadata-eval36.1%
*-lft-identity36.1%
Simplified36.1%
if -7.3000000000000003e-233 < a < -4.3999999999999999e-274Initial program 88.9%
Taylor expanded in y around inf 85.8%
Taylor expanded in b around inf 64.6%
if -4.3999999999999999e-274 < a < -2.44999999999999997e-291Initial program 100.0%
Taylor expanded in a around inf 26.3%
Taylor expanded in b around -inf 26.3%
associate-*r/26.3%
associate-+r-26.3%
associate-+r-26.3%
+-commutative26.3%
associate--l+26.3%
sub-neg26.3%
metadata-eval26.3%
Simplified26.3%
Taylor expanded in y around 0 80.8%
Final simplification50.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (- 1.0 t))))
(t_2 (* b (- (+ y t) 2.0)))
(t_3 (+ x (* z (- 1.0 y)))))
(if (<= b -5.2e+14)
t_2
(if (<= b -7e-256)
t_1
(if (<= b 4e-239)
t_3
(if (<= b 1.45e-211)
t_1
(if (<= b 6.4e+31) t_3 (if (<= b 1.04e+105) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double t_2 = b * ((y + t) - 2.0);
double t_3 = x + (z * (1.0 - y));
double tmp;
if (b <= -5.2e+14) {
tmp = t_2;
} else if (b <= -7e-256) {
tmp = t_1;
} else if (b <= 4e-239) {
tmp = t_3;
} else if (b <= 1.45e-211) {
tmp = t_1;
} else if (b <= 6.4e+31) {
tmp = t_3;
} else if (b <= 1.04e+105) {
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 = x + (a * (1.0d0 - t))
t_2 = b * ((y + t) - 2.0d0)
t_3 = x + (z * (1.0d0 - y))
if (b <= (-5.2d+14)) then
tmp = t_2
else if (b <= (-7d-256)) then
tmp = t_1
else if (b <= 4d-239) then
tmp = t_3
else if (b <= 1.45d-211) then
tmp = t_1
else if (b <= 6.4d+31) then
tmp = t_3
else if (b <= 1.04d+105) 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 * (1.0 - t));
double t_2 = b * ((y + t) - 2.0);
double t_3 = x + (z * (1.0 - y));
double tmp;
if (b <= -5.2e+14) {
tmp = t_2;
} else if (b <= -7e-256) {
tmp = t_1;
} else if (b <= 4e-239) {
tmp = t_3;
} else if (b <= 1.45e-211) {
tmp = t_1;
} else if (b <= 6.4e+31) {
tmp = t_3;
} else if (b <= 1.04e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a * (1.0 - t)) t_2 = b * ((y + t) - 2.0) t_3 = x + (z * (1.0 - y)) tmp = 0 if b <= -5.2e+14: tmp = t_2 elif b <= -7e-256: tmp = t_1 elif b <= 4e-239: tmp = t_3 elif b <= 1.45e-211: tmp = t_1 elif b <= 6.4e+31: tmp = t_3 elif b <= 1.04e+105: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a * Float64(1.0 - t))) t_2 = Float64(b * Float64(Float64(y + t) - 2.0)) t_3 = Float64(x + Float64(z * Float64(1.0 - y))) tmp = 0.0 if (b <= -5.2e+14) tmp = t_2; elseif (b <= -7e-256) tmp = t_1; elseif (b <= 4e-239) tmp = t_3; elseif (b <= 1.45e-211) tmp = t_1; elseif (b <= 6.4e+31) tmp = t_3; elseif (b <= 1.04e+105) 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 * (1.0 - t)); t_2 = b * ((y + t) - 2.0); t_3 = x + (z * (1.0 - y)); tmp = 0.0; if (b <= -5.2e+14) tmp = t_2; elseif (b <= -7e-256) tmp = t_1; elseif (b <= 4e-239) tmp = t_3; elseif (b <= 1.45e-211) tmp = t_1; elseif (b <= 6.4e+31) tmp = t_3; elseif (b <= 1.04e+105) 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[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+14], t$95$2, If[LessEqual[b, -7e-256], t$95$1, If[LessEqual[b, 4e-239], t$95$3, If[LessEqual[b, 1.45e-211], t$95$1, If[LessEqual[b, 6.4e+31], t$95$3, If[LessEqual[b, 1.04e+105], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1 - t\right)\\
t_2 := b \cdot \left(\left(y + t\right) - 2\right)\\
t_3 := x + z \cdot \left(1 - y\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+14}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-256}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-239}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+31}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 1.04 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.2e14 or 1.04e105 < b Initial program 91.2%
Taylor expanded in b around inf 78.3%
if -5.2e14 < b < -7.00000000000000028e-256 or 4.0000000000000003e-239 < b < 1.45000000000000007e-211 or 6.4000000000000001e31 < b < 1.04e105Initial program 95.2%
Taylor expanded in b around 0 87.2%
Taylor expanded in a around inf 63.3%
if -7.00000000000000028e-256 < b < 4.0000000000000003e-239 or 1.45000000000000007e-211 < b < 6.4000000000000001e31Initial program 97.5%
Taylor expanded in b around 0 89.1%
Taylor expanded in a around 0 65.3%
Final simplification69.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))) (t_2 (* b (- y 2.0))))
(if (<= b -8e+68)
t_2
(if (<= b 2.6e-211)
t_1
(if (<= b 5.4e-171)
(* y (- z))
(if (<= b 1.8e-86)
t_1
(if (<= b 9.8e+30) (+ x z) (if (<= b 3.2e+105) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = b * (y - 2.0);
double tmp;
if (b <= -8e+68) {
tmp = t_2;
} else if (b <= 2.6e-211) {
tmp = t_1;
} else if (b <= 5.4e-171) {
tmp = y * -z;
} else if (b <= 1.8e-86) {
tmp = t_1;
} else if (b <= 9.8e+30) {
tmp = x + z;
} else if (b <= 3.2e+105) {
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 = a * (1.0d0 - t)
t_2 = b * (y - 2.0d0)
if (b <= (-8d+68)) then
tmp = t_2
else if (b <= 2.6d-211) then
tmp = t_1
else if (b <= 5.4d-171) then
tmp = y * -z
else if (b <= 1.8d-86) then
tmp = t_1
else if (b <= 9.8d+30) then
tmp = x + z
else if (b <= 3.2d+105) 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 * (1.0 - t);
double t_2 = b * (y - 2.0);
double tmp;
if (b <= -8e+68) {
tmp = t_2;
} else if (b <= 2.6e-211) {
tmp = t_1;
} else if (b <= 5.4e-171) {
tmp = y * -z;
} else if (b <= 1.8e-86) {
tmp = t_1;
} else if (b <= 9.8e+30) {
tmp = x + z;
} else if (b <= 3.2e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) t_2 = b * (y - 2.0) tmp = 0 if b <= -8e+68: tmp = t_2 elif b <= 2.6e-211: tmp = t_1 elif b <= 5.4e-171: tmp = y * -z elif b <= 1.8e-86: tmp = t_1 elif b <= 9.8e+30: tmp = x + z elif b <= 3.2e+105: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) t_2 = Float64(b * Float64(y - 2.0)) tmp = 0.0 if (b <= -8e+68) tmp = t_2; elseif (b <= 2.6e-211) tmp = t_1; elseif (b <= 5.4e-171) tmp = Float64(y * Float64(-z)); elseif (b <= 1.8e-86) tmp = t_1; elseif (b <= 9.8e+30) tmp = Float64(x + z); elseif (b <= 3.2e+105) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); t_2 = b * (y - 2.0); tmp = 0.0; if (b <= -8e+68) tmp = t_2; elseif (b <= 2.6e-211) tmp = t_1; elseif (b <= 5.4e-171) tmp = y * -z; elseif (b <= 1.8e-86) tmp = t_1; elseif (b <= 9.8e+30) tmp = x + z; elseif (b <= 3.2e+105) 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[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e+68], t$95$2, If[LessEqual[b, 2.6e-211], t$95$1, If[LessEqual[b, 5.4e-171], N[(y * (-z)), $MachinePrecision], If[LessEqual[b, 1.8e-86], t$95$1, If[LessEqual[b, 9.8e+30], N[(x + z), $MachinePrecision], If[LessEqual[b, 3.2e+105], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
t_2 := b \cdot \left(y - 2\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-171}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+30}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.99999999999999962e68 or 3.2e105 < b Initial program 90.2%
Taylor expanded in t around -inf 75.5%
associate-*r*75.5%
neg-mul-175.5%
distribute-lft-out--75.5%
associate-*r*75.5%
distribute-lft-neg-in75.5%
*-commutative75.5%
neg-mul-175.5%
remove-double-neg75.5%
Simplified75.5%
Taylor expanded in x around inf 75.7%
Taylor expanded in t around 0 62.8%
Taylor expanded in x around 0 55.5%
if -7.99999999999999962e68 < b < 2.6e-211 or 5.40000000000000028e-171 < b < 1.79999999999999983e-86 or 9.79999999999999969e30 < b < 3.2e105Initial program 97.0%
Taylor expanded in a around inf 44.9%
if 2.6e-211 < b < 5.40000000000000028e-171Initial program 92.3%
Taylor expanded in z around inf 66.9%
Taylor expanded in y around inf 59.4%
mul-1-neg59.4%
distribute-rgt-neg-in59.4%
Simplified59.4%
if 1.79999999999999983e-86 < b < 9.79999999999999969e30Initial program 96.1%
Taylor expanded in b around 0 70.0%
Taylor expanded in a around 0 58.9%
Taylor expanded in y around 0 40.7%
cancel-sign-sub-inv40.7%
metadata-eval40.7%
*-lft-identity40.7%
Simplified40.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (- 1.0 t))))
(t_2 (+ x (* b (- (+ y t) 2.0))))
(t_3 (+ x (* z (- 1.0 y)))))
(if (<= b -1400000000000.0)
t_2
(if (<= b -2.6e-254)
t_1
(if (<= b 7.2e-239)
t_3
(if (<= b 1e-211) t_1 (if (<= b 1.05e+29) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double t_2 = x + (b * ((y + t) - 2.0));
double t_3 = x + (z * (1.0 - y));
double tmp;
if (b <= -1400000000000.0) {
tmp = t_2;
} else if (b <= -2.6e-254) {
tmp = t_1;
} else if (b <= 7.2e-239) {
tmp = t_3;
} else if (b <= 1e-211) {
tmp = t_1;
} else if (b <= 1.05e+29) {
tmp = t_3;
} 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 = x + (a * (1.0d0 - t))
t_2 = x + (b * ((y + t) - 2.0d0))
t_3 = x + (z * (1.0d0 - y))
if (b <= (-1400000000000.0d0)) then
tmp = t_2
else if (b <= (-2.6d-254)) then
tmp = t_1
else if (b <= 7.2d-239) then
tmp = t_3
else if (b <= 1d-211) then
tmp = t_1
else if (b <= 1.05d+29) then
tmp = t_3
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 * (1.0 - t));
double t_2 = x + (b * ((y + t) - 2.0));
double t_3 = x + (z * (1.0 - y));
double tmp;
if (b <= -1400000000000.0) {
tmp = t_2;
} else if (b <= -2.6e-254) {
tmp = t_1;
} else if (b <= 7.2e-239) {
tmp = t_3;
} else if (b <= 1e-211) {
tmp = t_1;
} else if (b <= 1.05e+29) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a * (1.0 - t)) t_2 = x + (b * ((y + t) - 2.0)) t_3 = x + (z * (1.0 - y)) tmp = 0 if b <= -1400000000000.0: tmp = t_2 elif b <= -2.6e-254: tmp = t_1 elif b <= 7.2e-239: tmp = t_3 elif b <= 1e-211: tmp = t_1 elif b <= 1.05e+29: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a * Float64(1.0 - t))) t_2 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) t_3 = Float64(x + Float64(z * Float64(1.0 - y))) tmp = 0.0 if (b <= -1400000000000.0) tmp = t_2; elseif (b <= -2.6e-254) tmp = t_1; elseif (b <= 7.2e-239) tmp = t_3; elseif (b <= 1e-211) tmp = t_1; elseif (b <= 1.05e+29) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (a * (1.0 - t)); t_2 = x + (b * ((y + t) - 2.0)); t_3 = x + (z * (1.0 - y)); tmp = 0.0; if (b <= -1400000000000.0) tmp = t_2; elseif (b <= -2.6e-254) tmp = t_1; elseif (b <= 7.2e-239) tmp = t_3; elseif (b <= 1e-211) tmp = t_1; elseif (b <= 1.05e+29) tmp = t_3; 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[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1400000000000.0], t$95$2, If[LessEqual[b, -2.6e-254], t$95$1, If[LessEqual[b, 7.2e-239], t$95$3, If[LessEqual[b, 1e-211], t$95$1, If[LessEqual[b, 1.05e+29], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1 - t\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
t_3 := x + z \cdot \left(1 - y\right)\\
\mathbf{if}\;b \leq -1400000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-239}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+29}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.4e12 or 1.0500000000000001e29 < b Initial program 90.6%
Taylor expanded in t around -inf 74.1%
associate-*r*74.1%
neg-mul-174.1%
distribute-lft-out--74.1%
associate-*r*74.1%
distribute-lft-neg-in74.1%
*-commutative74.1%
neg-mul-174.1%
remove-double-neg74.1%
Simplified74.1%
Taylor expanded in x around inf 72.0%
Taylor expanded in a around 0 76.1%
if -1.4e12 < b < -2.6e-254 or 7.2000000000000002e-239 < b < 1.00000000000000009e-211Initial program 98.2%
Taylor expanded in b around 0 95.0%
Taylor expanded in a around inf 66.1%
if -2.6e-254 < b < 7.2000000000000002e-239 or 1.00000000000000009e-211 < b < 1.0500000000000001e29Initial program 97.5%
Taylor expanded in b around 0 90.2%
Taylor expanded in a around 0 66.2%
Final simplification70.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* b (- y 2.0)))) (t_2 (* t (- b a))) (t_3 (* z (- 1.0 y))))
(if (<= t -7.5e+85)
t_2
(if (<= t 4e-142)
t_1
(if (<= t 8.8e-92)
t_3
(if (<= t 1.58e-34) t_1 (if (<= t 1.85e+21) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (b * (y - 2.0));
double t_2 = t * (b - a);
double t_3 = z * (1.0 - y);
double tmp;
if (t <= -7.5e+85) {
tmp = t_2;
} else if (t <= 4e-142) {
tmp = t_1;
} else if (t <= 8.8e-92) {
tmp = t_3;
} else if (t <= 1.58e-34) {
tmp = t_1;
} else if (t <= 1.85e+21) {
tmp = t_3;
} 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 = x + (b * (y - 2.0d0))
t_2 = t * (b - a)
t_3 = z * (1.0d0 - y)
if (t <= (-7.5d+85)) then
tmp = t_2
else if (t <= 4d-142) then
tmp = t_1
else if (t <= 8.8d-92) then
tmp = t_3
else if (t <= 1.58d-34) then
tmp = t_1
else if (t <= 1.85d+21) then
tmp = t_3
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 + (b * (y - 2.0));
double t_2 = t * (b - a);
double t_3 = z * (1.0 - y);
double tmp;
if (t <= -7.5e+85) {
tmp = t_2;
} else if (t <= 4e-142) {
tmp = t_1;
} else if (t <= 8.8e-92) {
tmp = t_3;
} else if (t <= 1.58e-34) {
tmp = t_1;
} else if (t <= 1.85e+21) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (b * (y - 2.0)) t_2 = t * (b - a) t_3 = z * (1.0 - y) tmp = 0 if t <= -7.5e+85: tmp = t_2 elif t <= 4e-142: tmp = t_1 elif t <= 8.8e-92: tmp = t_3 elif t <= 1.58e-34: tmp = t_1 elif t <= 1.85e+21: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(b * Float64(y - 2.0))) t_2 = Float64(t * Float64(b - a)) t_3 = Float64(z * Float64(1.0 - y)) tmp = 0.0 if (t <= -7.5e+85) tmp = t_2; elseif (t <= 4e-142) tmp = t_1; elseif (t <= 8.8e-92) tmp = t_3; elseif (t <= 1.58e-34) tmp = t_1; elseif (t <= 1.85e+21) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (b * (y - 2.0)); t_2 = t * (b - a); t_3 = z * (1.0 - y); tmp = 0.0; if (t <= -7.5e+85) tmp = t_2; elseif (t <= 4e-142) tmp = t_1; elseif (t <= 8.8e-92) tmp = t_3; elseif (t <= 1.58e-34) tmp = t_1; elseif (t <= 1.85e+21) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e+85], t$95$2, If[LessEqual[t, 4e-142], t$95$1, If[LessEqual[t, 8.8e-92], t$95$3, If[LessEqual[t, 1.58e-34], t$95$1, If[LessEqual[t, 1.85e+21], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + b \cdot \left(y - 2\right)\\
t_2 := t \cdot \left(b - a\right)\\
t_3 := z \cdot \left(1 - y\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-92}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.58 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+21}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -7.49999999999999942e85 or 1.85e21 < t Initial program 90.4%
Taylor expanded in t around inf 69.6%
if -7.49999999999999942e85 < t < 4.0000000000000002e-142 or 8.79999999999999949e-92 < t < 1.57999999999999997e-34Initial program 97.3%
Taylor expanded in t around -inf 59.0%
associate-*r*59.0%
neg-mul-159.0%
distribute-lft-out--59.0%
associate-*r*59.0%
distribute-lft-neg-in59.0%
*-commutative59.0%
neg-mul-159.0%
remove-double-neg59.0%
Simplified59.0%
Taylor expanded in x around inf 42.1%
Taylor expanded in t around 0 57.7%
if 4.0000000000000002e-142 < t < 8.79999999999999949e-92 or 1.57999999999999997e-34 < t < 1.85e21Initial program 99.9%
Taylor expanded in z around inf 66.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= a -1.2e-33)
t_1
(if (<= a -2.2e-83)
(* y (- z))
(if (<= a -5.2e-233)
(+ x z)
(if (<= a 2.2e-273) (* y b) (if (<= a 7e+34) (+ x z) 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.2e-33) {
tmp = t_1;
} else if (a <= -2.2e-83) {
tmp = y * -z;
} else if (a <= -5.2e-233) {
tmp = x + z;
} else if (a <= 2.2e-273) {
tmp = y * b;
} else if (a <= 7e+34) {
tmp = x + z;
} 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.2d-33)) then
tmp = t_1
else if (a <= (-2.2d-83)) then
tmp = y * -z
else if (a <= (-5.2d-233)) then
tmp = x + z
else if (a <= 2.2d-273) then
tmp = y * b
else if (a <= 7d+34) then
tmp = x + z
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.2e-33) {
tmp = t_1;
} else if (a <= -2.2e-83) {
tmp = y * -z;
} else if (a <= -5.2e-233) {
tmp = x + z;
} else if (a <= 2.2e-273) {
tmp = y * b;
} else if (a <= 7e+34) {
tmp = x + z;
} 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.2e-33: tmp = t_1 elif a <= -2.2e-83: tmp = y * -z elif a <= -5.2e-233: tmp = x + z elif a <= 2.2e-273: tmp = y * b elif a <= 7e+34: tmp = x + z 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.2e-33) tmp = t_1; elseif (a <= -2.2e-83) tmp = Float64(y * Float64(-z)); elseif (a <= -5.2e-233) tmp = Float64(x + z); elseif (a <= 2.2e-273) tmp = Float64(y * b); elseif (a <= 7e+34) tmp = Float64(x + z); 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.2e-33) tmp = t_1; elseif (a <= -2.2e-83) tmp = y * -z; elseif (a <= -5.2e-233) tmp = x + z; elseif (a <= 2.2e-273) tmp = y * b; elseif (a <= 7e+34) tmp = x + z; 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.2e-33], t$95$1, If[LessEqual[a, -2.2e-83], N[(y * (-z)), $MachinePrecision], If[LessEqual[a, -5.2e-233], N[(x + z), $MachinePrecision], If[LessEqual[a, 2.2e-273], N[(y * b), $MachinePrecision], If[LessEqual[a, 7e+34], N[(x + z), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.2 \cdot 10^{-83}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-233}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-273}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+34}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.2e-33 or 6.99999999999999996e34 < a Initial program 92.1%
Taylor expanded in a around inf 57.4%
if -1.2e-33 < a < -2.20000000000000008e-83Initial program 100.0%
Taylor expanded in z around inf 68.1%
Taylor expanded in y around inf 68.2%
mul-1-neg68.2%
distribute-rgt-neg-in68.2%
Simplified68.2%
if -2.20000000000000008e-83 < a < -5.1999999999999996e-233 or 2.1999999999999998e-273 < a < 6.99999999999999996e34Initial program 97.9%
Taylor expanded in b around 0 59.0%
Taylor expanded in a around 0 54.8%
Taylor expanded in y around 0 37.3%
cancel-sign-sub-inv37.3%
metadata-eval37.3%
*-lft-identity37.3%
Simplified37.3%
if -5.1999999999999996e-233 < a < 2.1999999999999998e-273Initial program 92.3%
Taylor expanded in y around inf 64.5%
Taylor expanded in b around inf 38.7%
Final simplification48.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (+ z (* a (- 1.0 t))))) (t_2 (+ x (* b (- (+ y t) 2.0)))))
(if (<= b -21000000000000.0)
t_2
(if (<= b 2.7e-211)
t_1
(if (<= b 1.1e-171)
(+ x (* z (- 1.0 y)))
(if (<= b 5.5e+106) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z + (a * (1.0 - t)));
double t_2 = x + (b * ((y + t) - 2.0));
double tmp;
if (b <= -21000000000000.0) {
tmp = t_2;
} else if (b <= 2.7e-211) {
tmp = t_1;
} else if (b <= 1.1e-171) {
tmp = x + (z * (1.0 - y));
} else if (b <= 5.5e+106) {
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 + (a * (1.0d0 - t)))
t_2 = x + (b * ((y + t) - 2.0d0))
if (b <= (-21000000000000.0d0)) then
tmp = t_2
else if (b <= 2.7d-211) then
tmp = t_1
else if (b <= 1.1d-171) then
tmp = x + (z * (1.0d0 - y))
else if (b <= 5.5d+106) 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 + (a * (1.0 - t)));
double t_2 = x + (b * ((y + t) - 2.0));
double tmp;
if (b <= -21000000000000.0) {
tmp = t_2;
} else if (b <= 2.7e-211) {
tmp = t_1;
} else if (b <= 1.1e-171) {
tmp = x + (z * (1.0 - y));
} else if (b <= 5.5e+106) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z + (a * (1.0 - t))) t_2 = x + (b * ((y + t) - 2.0)) tmp = 0 if b <= -21000000000000.0: tmp = t_2 elif b <= 2.7e-211: tmp = t_1 elif b <= 1.1e-171: tmp = x + (z * (1.0 - y)) elif b <= 5.5e+106: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z + Float64(a * Float64(1.0 - t)))) t_2 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (b <= -21000000000000.0) tmp = t_2; elseif (b <= 2.7e-211) tmp = t_1; elseif (b <= 1.1e-171) tmp = Float64(x + Float64(z * Float64(1.0 - y))); elseif (b <= 5.5e+106) 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 + (a * (1.0 - t))); t_2 = x + (b * ((y + t) - 2.0)); tmp = 0.0; if (b <= -21000000000000.0) tmp = t_2; elseif (b <= 2.7e-211) tmp = t_1; elseif (b <= 1.1e-171) tmp = x + (z * (1.0 - y)); elseif (b <= 5.5e+106) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -21000000000000.0], t$95$2, If[LessEqual[b, 2.7e-211], t$95$1, If[LessEqual[b, 1.1e-171], N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e+106], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -21000000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-171}:\\
\;\;\;\;x + z \cdot \left(1 - y\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.1e13 or 5.5e106 < b Initial program 91.2%
Taylor expanded in t around -inf 77.2%
associate-*r*77.2%
neg-mul-177.2%
distribute-lft-out--77.2%
associate-*r*77.2%
distribute-lft-neg-in77.2%
*-commutative77.2%
neg-mul-177.2%
remove-double-neg77.2%
Simplified77.2%
Taylor expanded in x around inf 77.4%
Taylor expanded in a around 0 86.0%
if -2.1e13 < b < 2.6999999999999999e-211 or 1.1000000000000001e-171 < b < 5.5e106Initial program 96.7%
Taylor expanded in b around 0 87.8%
Taylor expanded in y around 0 67.4%
+-commutative67.4%
sub-neg67.4%
metadata-eval67.4%
neg-mul-167.4%
unsub-neg67.4%
Simplified67.4%
if 2.6999999999999999e-211 < b < 1.1000000000000001e-171Initial program 92.3%
Taylor expanded in b around 0 92.3%
Taylor expanded in a around 0 71.3%
Final simplification74.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (- 1.0 t)))) (t_2 (* b (- (+ y t) 2.0))))
(if (<= b -1.55e+14)
t_2
(if (<= b 2.7e-211)
t_1
(if (<= b 8.6e-171) (* z (- 1.0 y)) (if (<= b 6.6e+108) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double t_2 = b * ((y + t) - 2.0);
double tmp;
if (b <= -1.55e+14) {
tmp = t_2;
} else if (b <= 2.7e-211) {
tmp = t_1;
} else if (b <= 8.6e-171) {
tmp = z * (1.0 - y);
} else if (b <= 6.6e+108) {
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 * (1.0d0 - t))
t_2 = b * ((y + t) - 2.0d0)
if (b <= (-1.55d+14)) then
tmp = t_2
else if (b <= 2.7d-211) then
tmp = t_1
else if (b <= 8.6d-171) then
tmp = z * (1.0d0 - y)
else if (b <= 6.6d+108) 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 * (1.0 - t));
double t_2 = b * ((y + t) - 2.0);
double tmp;
if (b <= -1.55e+14) {
tmp = t_2;
} else if (b <= 2.7e-211) {
tmp = t_1;
} else if (b <= 8.6e-171) {
tmp = z * (1.0 - y);
} else if (b <= 6.6e+108) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a * (1.0 - t)) t_2 = b * ((y + t) - 2.0) tmp = 0 if b <= -1.55e+14: tmp = t_2 elif b <= 2.7e-211: tmp = t_1 elif b <= 8.6e-171: tmp = z * (1.0 - y) elif b <= 6.6e+108: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a * Float64(1.0 - t))) t_2 = Float64(b * Float64(Float64(y + t) - 2.0)) tmp = 0.0 if (b <= -1.55e+14) tmp = t_2; elseif (b <= 2.7e-211) tmp = t_1; elseif (b <= 8.6e-171) tmp = Float64(z * Float64(1.0 - y)); elseif (b <= 6.6e+108) 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 * (1.0 - t)); t_2 = b * ((y + t) - 2.0); tmp = 0.0; if (b <= -1.55e+14) tmp = t_2; elseif (b <= 2.7e-211) tmp = t_1; elseif (b <= 8.6e-171) tmp = z * (1.0 - y); elseif (b <= 6.6e+108) 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[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e+14], t$95$2, If[LessEqual[b, 2.7e-211], t$95$1, If[LessEqual[b, 8.6e-171], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e+108], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1 - t\right)\\
t_2 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{+14}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-211}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-171}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.55e14 or 6.60000000000000038e108 < b Initial program 91.2%
Taylor expanded in b around inf 78.3%
if -1.55e14 < b < 2.6999999999999999e-211 or 8.6000000000000004e-171 < b < 6.60000000000000038e108Initial program 96.7%
Taylor expanded in b around 0 87.8%
Taylor expanded in a around inf 57.3%
if 2.6999999999999999e-211 < b < 8.6000000000000004e-171Initial program 92.3%
Taylor expanded in z around inf 66.9%
Final simplification65.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))))
(if (<= y -27000000000000.0)
t_1
(if (<= y -5.2e-63)
(* b (- t 2.0))
(if (<= y -1.8e-271)
(* a (- 1.0 t))
(if (<= y 2e+20) (* t (- b a)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -27000000000000.0) {
tmp = t_1;
} else if (y <= -5.2e-63) {
tmp = b * (t - 2.0);
} else if (y <= -1.8e-271) {
tmp = a * (1.0 - t);
} else if (y <= 2e+20) {
tmp = t * (b - 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 = y * (b - z)
if (y <= (-27000000000000.0d0)) then
tmp = t_1
else if (y <= (-5.2d-63)) then
tmp = b * (t - 2.0d0)
else if (y <= (-1.8d-271)) then
tmp = a * (1.0d0 - t)
else if (y <= 2d+20) then
tmp = t * (b - 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 = y * (b - z);
double tmp;
if (y <= -27000000000000.0) {
tmp = t_1;
} else if (y <= -5.2e-63) {
tmp = b * (t - 2.0);
} else if (y <= -1.8e-271) {
tmp = a * (1.0 - t);
} else if (y <= 2e+20) {
tmp = t * (b - a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) tmp = 0 if y <= -27000000000000.0: tmp = t_1 elif y <= -5.2e-63: tmp = b * (t - 2.0) elif y <= -1.8e-271: tmp = a * (1.0 - t) elif y <= 2e+20: tmp = t * (b - a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -27000000000000.0) tmp = t_1; elseif (y <= -5.2e-63) tmp = Float64(b * Float64(t - 2.0)); elseif (y <= -1.8e-271) tmp = Float64(a * Float64(1.0 - t)); elseif (y <= 2e+20) tmp = Float64(t * Float64(b - a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); tmp = 0.0; if (y <= -27000000000000.0) tmp = t_1; elseif (y <= -5.2e-63) tmp = b * (t - 2.0); elseif (y <= -1.8e-271) tmp = a * (1.0 - t); elseif (y <= 2e+20) tmp = t * (b - a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -27000000000000.0], t$95$1, If[LessEqual[y, -5.2e-63], N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.8e-271], N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+20], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -27000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{-63}:\\
\;\;\;\;b \cdot \left(t - 2\right)\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-271}:\\
\;\;\;\;a \cdot \left(1 - t\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+20}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.7e13 or 2e20 < y Initial program 90.1%
Taylor expanded in y around inf 64.9%
if -2.7e13 < y < -5.2000000000000003e-63Initial program 99.8%
Taylor expanded in a around inf 70.5%
Taylor expanded in b around -inf 39.7%
associate-*r/39.6%
associate-+r-39.6%
associate-+r-39.6%
+-commutative39.6%
associate--l+39.6%
sub-neg39.6%
metadata-eval39.6%
Simplified39.6%
Taylor expanded in y around 0 49.3%
if -5.2000000000000003e-63 < y < -1.7999999999999999e-271Initial program 100.0%
Taylor expanded in a around inf 57.0%
if -1.7999999999999999e-271 < y < 2e20Initial program 97.2%
Taylor expanded in t around inf 45.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -6.4e+16) (not (<= t 3.3e+16))) (+ (* t (- (/ x t) a)) (* b (- (+ y t) 2.0))) (+ a (+ x (+ (* b (- y 2.0)) (* z (- 1.0 y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -6.4e+16) || !(t <= 3.3e+16)) {
tmp = (t * ((x / t) - a)) + (b * ((y + t) - 2.0));
} else {
tmp = a + (x + ((b * (y - 2.0)) + (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) :: tmp
if ((t <= (-6.4d+16)) .or. (.not. (t <= 3.3d+16))) then
tmp = (t * ((x / t) - a)) + (b * ((y + t) - 2.0d0))
else
tmp = a + (x + ((b * (y - 2.0d0)) + (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 tmp;
if ((t <= -6.4e+16) || !(t <= 3.3e+16)) {
tmp = (t * ((x / t) - a)) + (b * ((y + t) - 2.0));
} else {
tmp = a + (x + ((b * (y - 2.0)) + (z * (1.0 - y))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -6.4e+16) or not (t <= 3.3e+16): tmp = (t * ((x / t) - a)) + (b * ((y + t) - 2.0)) else: tmp = a + (x + ((b * (y - 2.0)) + (z * (1.0 - y)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -6.4e+16) || !(t <= 3.3e+16)) tmp = Float64(Float64(t * Float64(Float64(x / t) - a)) + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(a + Float64(x + Float64(Float64(b * Float64(y - 2.0)) + Float64(z * Float64(1.0 - y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -6.4e+16) || ~((t <= 3.3e+16))) tmp = (t * ((x / t) - a)) + (b * ((y + t) - 2.0)); else tmp = a + (x + ((b * (y - 2.0)) + (z * (1.0 - y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -6.4e+16], N[Not[LessEqual[t, 3.3e+16]], $MachinePrecision]], N[(N[(t * N[(N[(x / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(x + N[(N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.4 \cdot 10^{+16} \lor \neg \left(t \leq 3.3 \cdot 10^{+16}\right):\\
\;\;\;\;t \cdot \left(\frac{x}{t} - a\right) + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(x + \left(b \cdot \left(y - 2\right) + z \cdot \left(1 - y\right)\right)\right)\\
\end{array}
\end{array}
if t < -6.4e16 or 3.3e16 < t Initial program 91.1%
Taylor expanded in t around -inf 92.7%
associate-*r*92.7%
neg-mul-192.7%
distribute-lft-out--92.7%
associate-*r*92.7%
distribute-lft-neg-in92.7%
*-commutative92.7%
neg-mul-192.7%
remove-double-neg92.7%
Simplified92.7%
Taylor expanded in x around inf 80.2%
if -6.4e16 < t < 3.3e16Initial program 97.7%
Taylor expanded in t around -inf 61.0%
associate-*r*61.0%
neg-mul-161.0%
distribute-lft-out--61.0%
associate-*r*61.0%
distribute-lft-neg-in61.0%
*-commutative61.0%
neg-mul-161.0%
remove-double-neg61.0%
Simplified61.0%
Taylor expanded in t around 0 95.7%
Final simplification88.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- z))))
(if (<= y -2.5e+208)
t_1
(if (<= y -6.2e+176)
(* y b)
(if (or (<= y -9.8e+112) (not (<= y 42000.0))) t_1 (+ x z))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (y <= -2.5e+208) {
tmp = t_1;
} else if (y <= -6.2e+176) {
tmp = y * b;
} else if ((y <= -9.8e+112) || !(y <= 42000.0)) {
tmp = t_1;
} else {
tmp = x + z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * -z
if (y <= (-2.5d+208)) then
tmp = t_1
else if (y <= (-6.2d+176)) then
tmp = y * b
else if ((y <= (-9.8d+112)) .or. (.not. (y <= 42000.0d0))) then
tmp = t_1
else
tmp = x + z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (y <= -2.5e+208) {
tmp = t_1;
} else if (y <= -6.2e+176) {
tmp = y * b;
} else if ((y <= -9.8e+112) || !(y <= 42000.0)) {
tmp = t_1;
} else {
tmp = x + z;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * -z tmp = 0 if y <= -2.5e+208: tmp = t_1 elif y <= -6.2e+176: tmp = y * b elif (y <= -9.8e+112) or not (y <= 42000.0): tmp = t_1 else: tmp = x + z return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(-z)) tmp = 0.0 if (y <= -2.5e+208) tmp = t_1; elseif (y <= -6.2e+176) tmp = Float64(y * b); elseif ((y <= -9.8e+112) || !(y <= 42000.0)) tmp = t_1; else tmp = Float64(x + z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * -z; tmp = 0.0; if (y <= -2.5e+208) tmp = t_1; elseif (y <= -6.2e+176) tmp = y * b; elseif ((y <= -9.8e+112) || ~((y <= 42000.0))) tmp = t_1; else tmp = x + z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * (-z)), $MachinePrecision]}, If[LessEqual[y, -2.5e+208], t$95$1, If[LessEqual[y, -6.2e+176], N[(y * b), $MachinePrecision], If[Or[LessEqual[y, -9.8e+112], N[Not[LessEqual[y, 42000.0]], $MachinePrecision]], t$95$1, N[(x + z), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(-z\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{+176}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{+112} \lor \neg \left(y \leq 42000\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + z\\
\end{array}
\end{array}
if y < -2.5000000000000002e208 or -6.1999999999999998e176 < y < -9.80000000000000008e112 or 42000 < y Initial program 88.5%
Taylor expanded in z around inf 48.5%
Taylor expanded in y around inf 47.9%
mul-1-neg47.9%
distribute-rgt-neg-in47.9%
Simplified47.9%
if -2.5000000000000002e208 < y < -6.1999999999999998e176Initial program 85.7%
Taylor expanded in y around inf 85.7%
Taylor expanded in b around inf 73.1%
if -9.80000000000000008e112 < y < 42000Initial program 98.6%
Taylor expanded in b around 0 67.8%
Taylor expanded in a around 0 34.4%
Taylor expanded in y around 0 31.9%
cancel-sign-sub-inv31.9%
metadata-eval31.9%
*-lft-identity31.9%
Simplified31.9%
Final simplification39.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -6.2e+14) (not (<= b 1.2e+119))) (+ x (* b (- (+ y t) 2.0))) (- x (+ (* a (+ t -1.0)) (* z (+ y -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6.2e+14) || !(b <= 1.2e+119)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
}
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.2d+14)) .or. (.not. (b <= 1.2d+119))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x - ((a * (t + (-1.0d0))) + (z * (y + (-1.0d0))))
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.2e+14) || !(b <= 1.2e+119)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -6.2e+14) or not (b <= 1.2e+119): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -6.2e+14) || !(b <= 1.2e+119)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x - Float64(Float64(a * Float64(t + -1.0)) + Float64(z * Float64(y + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -6.2e+14) || ~((b <= 1.2e+119))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -6.2e+14], N[Not[LessEqual[b, 1.2e+119]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.2 \cdot 10^{+14} \lor \neg \left(b \leq 1.2 \cdot 10^{+119}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(a \cdot \left(t + -1\right) + z \cdot \left(y + -1\right)\right)\\
\end{array}
\end{array}
if b < -6.2e14 or 1.2e119 < b Initial program 91.1%
Taylor expanded in t around -inf 77.0%
associate-*r*77.0%
neg-mul-177.0%
distribute-lft-out--77.0%
associate-*r*77.0%
distribute-lft-neg-in77.0%
*-commutative77.0%
neg-mul-177.0%
remove-double-neg77.0%
Simplified77.0%
Taylor expanded in x around inf 78.1%
Taylor expanded in a around 0 86.8%
if -6.2e14 < b < 1.2e119Initial program 96.3%
Taylor expanded in b around 0 88.2%
Final simplification87.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -48000000000000.0) (not (<= b 9.4e+114))) (+ x (* b (- (+ y t) 2.0))) (+ x (- (* z (- 1.0 y)) (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -48000000000000.0) || !(b <= 9.4e+114)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + ((z * (1.0 - y)) - (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-48000000000000.0d0)) .or. (.not. (b <= 9.4d+114))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x + ((z * (1.0d0 - y)) - (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -48000000000000.0) || !(b <= 9.4e+114)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + ((z * (1.0 - y)) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -48000000000000.0) or not (b <= 9.4e+114): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x + ((z * (1.0 - y)) - (t * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -48000000000000.0) || !(b <= 9.4e+114)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -48000000000000.0) || ~((b <= 9.4e+114))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x + ((z * (1.0 - y)) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -48000000000000.0], N[Not[LessEqual[b, 9.4e+114]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -48000000000000 \lor \neg \left(b \leq 9.4 \cdot 10^{+114}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - t \cdot a\right)\\
\end{array}
\end{array}
if b < -4.8e13 or 9.4000000000000001e114 < b Initial program 91.1%
Taylor expanded in t around -inf 77.0%
associate-*r*77.0%
neg-mul-177.0%
distribute-lft-out--77.0%
associate-*r*77.0%
distribute-lft-neg-in77.0%
*-commutative77.0%
neg-mul-177.0%
remove-double-neg77.0%
Simplified77.0%
Taylor expanded in x around inf 78.1%
Taylor expanded in a around 0 86.8%
if -4.8e13 < b < 9.4000000000000001e114Initial program 96.3%
Taylor expanded in b around 0 88.2%
Taylor expanded in t around inf 77.4%
*-commutative77.4%
Simplified77.4%
Final simplification80.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- a))))
(if (<= t -7.2e+98)
t_1
(if (<= t 1.32e-34) (+ x z) (if (<= t 9.2e+18) (* y (- z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * -a;
double tmp;
if (t <= -7.2e+98) {
tmp = t_1;
} else if (t <= 1.32e-34) {
tmp = x + z;
} else if (t <= 9.2e+18) {
tmp = y * -z;
} 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 * -a
if (t <= (-7.2d+98)) then
tmp = t_1
else if (t <= 1.32d-34) then
tmp = x + z
else if (t <= 9.2d+18) then
tmp = y * -z
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 * -a;
double tmp;
if (t <= -7.2e+98) {
tmp = t_1;
} else if (t <= 1.32e-34) {
tmp = x + z;
} else if (t <= 9.2e+18) {
tmp = y * -z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * -a tmp = 0 if t <= -7.2e+98: tmp = t_1 elif t <= 1.32e-34: tmp = x + z elif t <= 9.2e+18: tmp = y * -z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(-a)) tmp = 0.0 if (t <= -7.2e+98) tmp = t_1; elseif (t <= 1.32e-34) tmp = Float64(x + z); elseif (t <= 9.2e+18) tmp = Float64(y * Float64(-z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * -a; tmp = 0.0; if (t <= -7.2e+98) tmp = t_1; elseif (t <= 1.32e-34) tmp = x + z; elseif (t <= 9.2e+18) tmp = y * -z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * (-a)), $MachinePrecision]}, If[LessEqual[t, -7.2e+98], t$95$1, If[LessEqual[t, 1.32e-34], N[(x + z), $MachinePrecision], If[LessEqual[t, 9.2e+18], N[(y * (-z)), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-34}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{+18}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.19999999999999962e98 or 9.2e18 < t Initial program 90.3%
Taylor expanded in b around 0 66.7%
Taylor expanded in t around inf 48.0%
associate-*r*48.0%
mul-1-neg48.0%
Simplified48.0%
if -7.19999999999999962e98 < t < 1.32e-34Initial program 97.6%
Taylor expanded in b around 0 68.1%
Taylor expanded in a around 0 50.9%
Taylor expanded in y around 0 29.4%
cancel-sign-sub-inv29.4%
metadata-eval29.4%
*-lft-identity29.4%
Simplified29.4%
if 1.32e-34 < t < 9.2e18Initial program 99.8%
Taylor expanded in z around inf 73.6%
Taylor expanded in y around inf 63.5%
mul-1-neg63.5%
distribute-rgt-neg-in63.5%
Simplified63.5%
Final simplification39.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.2e+45) (not (<= t 3.9e+19))) (* t (- b a)) (- x (* y z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.2e+45) || !(t <= 3.9e+19)) {
tmp = t * (b - a);
} else {
tmp = x - (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.2d+45)) .or. (.not. (t <= 3.9d+19))) then
tmp = t * (b - a)
else
tmp = x - (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.2e+45) || !(t <= 3.9e+19)) {
tmp = t * (b - a);
} else {
tmp = x - (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.2e+45) or not (t <= 3.9e+19): tmp = t * (b - a) else: tmp = x - (y * z) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.2e+45) || !(t <= 3.9e+19)) tmp = Float64(t * Float64(b - a)); else tmp = Float64(x - Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.2e+45) || ~((t <= 3.9e+19))) tmp = t * (b - a); else tmp = x - (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.2e+45], N[Not[LessEqual[t, 3.9e+19]], $MachinePrecision]], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+45} \lor \neg \left(t \leq 3.9 \cdot 10^{+19}\right):\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot z\\
\end{array}
\end{array}
if t < -1.19999999999999995e45 or 3.9e19 < t Initial program 91.0%
Taylor expanded in t around inf 68.2%
if -1.19999999999999995e45 < t < 3.9e19Initial program 97.7%
Taylor expanded in b around 0 72.7%
Taylor expanded in y around inf 48.4%
Final simplification57.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.2e+19) (not (<= y 1.06e+68))) (* y b) (+ x z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.2e+19) || !(y <= 1.06e+68)) {
tmp = y * b;
} else {
tmp = x + z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-4.2d+19)) .or. (.not. (y <= 1.06d+68))) then
tmp = y * b
else
tmp = x + z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.2e+19) || !(y <= 1.06e+68)) {
tmp = y * b;
} else {
tmp = x + z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.2e+19) or not (y <= 1.06e+68): tmp = y * b else: tmp = x + z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.2e+19) || !(y <= 1.06e+68)) tmp = Float64(y * b); else tmp = Float64(x + z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4.2e+19) || ~((y <= 1.06e+68))) tmp = y * b; else tmp = x + z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.2e+19], N[Not[LessEqual[y, 1.06e+68]], $MachinePrecision]], N[(y * b), $MachinePrecision], N[(x + z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+19} \lor \neg \left(y \leq 1.06 \cdot 10^{+68}\right):\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;x + z\\
\end{array}
\end{array}
if y < -4.2e19 or 1.06e68 < y Initial program 89.2%
Taylor expanded in y around inf 67.6%
Taylor expanded in b around inf 34.6%
if -4.2e19 < y < 1.06e68Initial program 98.6%
Taylor expanded in b around 0 71.6%
Taylor expanded in a around 0 35.9%
Taylor expanded in y around 0 31.5%
cancel-sign-sub-inv31.5%
metadata-eval31.5%
*-lft-identity31.5%
Simplified31.5%
Final simplification32.9%
(FPCore (x y z t a b) :precision binary64 (if (<= x -3.4e+100) x (if (<= x 1.7e+137) (* y b) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.4e+100) {
tmp = x;
} else if (x <= 1.7e+137) {
tmp = y * b;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-3.4d+100)) then
tmp = x
else if (x <= 1.7d+137) then
tmp = y * b
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.4e+100) {
tmp = x;
} else if (x <= 1.7e+137) {
tmp = y * b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -3.4e+100: tmp = x elif x <= 1.7e+137: tmp = y * b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -3.4e+100) tmp = x; elseif (x <= 1.7e+137) tmp = Float64(y * b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -3.4e+100) tmp = x; elseif (x <= 1.7e+137) tmp = y * b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -3.4e+100], x, If[LessEqual[x, 1.7e+137], N[(y * b), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{+100}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+137}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -3.39999999999999994e100 or 1.69999999999999993e137 < x Initial program 96.4%
Taylor expanded in x around inf 39.6%
if -3.39999999999999994e100 < x < 1.69999999999999993e137Initial program 93.6%
Taylor expanded in y around inf 36.8%
Taylor expanded in b around inf 20.3%
Final simplification26.7%
(FPCore (x y z t a b) :precision binary64 (if (<= a -6.6e+197) a (if (<= a 1.4e+140) x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -6.6e+197) {
tmp = a;
} else if (a <= 1.4e+140) {
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 <= (-6.6d+197)) then
tmp = a
else if (a <= 1.4d+140) 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 <= -6.6e+197) {
tmp = a;
} else if (a <= 1.4e+140) {
tmp = x;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -6.6e+197: tmp = a elif a <= 1.4e+140: tmp = x else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -6.6e+197) tmp = a; elseif (a <= 1.4e+140) tmp = x; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -6.6e+197) tmp = a; elseif (a <= 1.4e+140) tmp = x; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -6.6e+197], a, If[LessEqual[a, 1.4e+140], x, a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.6 \cdot 10^{+197}:\\
\;\;\;\;a\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+140}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < -6.5999999999999993e197 or 1.39999999999999991e140 < a Initial program 89.6%
Taylor expanded in a around inf 71.9%
Taylor expanded in t around 0 25.0%
if -6.5999999999999993e197 < a < 1.39999999999999991e140Initial program 96.3%
Taylor expanded in x around inf 19.5%
(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.5%
Taylor expanded in a around inf 31.3%
Taylor expanded in t around 0 9.5%
herbie shell --seed 2024094
(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)))