
(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 25 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 (* t (- b a)))))
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 = t * (b - a);
}
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 = t * (b - a);
}
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 = t * (b - a) 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(t * Float64(b - a)); 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 = t * (b - a); 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[(t * N[(b - a), $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}:\\
\;\;\;\;t \cdot \left(b - a\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 t around inf 67.0%
Final simplification98.4%
(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 95.3%
+-commutative95.3%
fma-define98.0%
associate--l+98.0%
sub-neg98.0%
metadata-eval98.0%
sub-neg98.0%
associate-+l-98.0%
fmm-def98.4%
sub-neg98.4%
metadata-eval98.4%
remove-double-neg98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Final simplification98.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (- 1.0 t)))))
(if (<= z -1.45e+171)
(* z (- 1.0 y))
(if (<= z -5.3e+101)
t_1
(if (<= z -2.95e+56)
(* y (- b z))
(if (<= z -1.15e-169)
t_1
(if (<= z 1.75e-276)
(* b (- (+ y t) 2.0))
(if (<= z 1.85e+73) t_1 (- z (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double tmp;
if (z <= -1.45e+171) {
tmp = z * (1.0 - y);
} else if (z <= -5.3e+101) {
tmp = t_1;
} else if (z <= -2.95e+56) {
tmp = y * (b - z);
} else if (z <= -1.15e-169) {
tmp = t_1;
} else if (z <= 1.75e-276) {
tmp = b * ((y + t) - 2.0);
} else if (z <= 1.85e+73) {
tmp = t_1;
} else {
tmp = z - (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (a * (1.0d0 - t))
if (z <= (-1.45d+171)) then
tmp = z * (1.0d0 - y)
else if (z <= (-5.3d+101)) then
tmp = t_1
else if (z <= (-2.95d+56)) then
tmp = y * (b - z)
else if (z <= (-1.15d-169)) then
tmp = t_1
else if (z <= 1.75d-276) then
tmp = b * ((y + t) - 2.0d0)
else if (z <= 1.85d+73) then
tmp = t_1
else
tmp = z - (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double tmp;
if (z <= -1.45e+171) {
tmp = z * (1.0 - y);
} else if (z <= -5.3e+101) {
tmp = t_1;
} else if (z <= -2.95e+56) {
tmp = y * (b - z);
} else if (z <= -1.15e-169) {
tmp = t_1;
} else if (z <= 1.75e-276) {
tmp = b * ((y + t) - 2.0);
} else if (z <= 1.85e+73) {
tmp = t_1;
} else {
tmp = z - (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a * (1.0 - t)) tmp = 0 if z <= -1.45e+171: tmp = z * (1.0 - y) elif z <= -5.3e+101: tmp = t_1 elif z <= -2.95e+56: tmp = y * (b - z) elif z <= -1.15e-169: tmp = t_1 elif z <= 1.75e-276: tmp = b * ((y + t) - 2.0) elif z <= 1.85e+73: tmp = t_1 else: tmp = z - (y * z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a * Float64(1.0 - t))) tmp = 0.0 if (z <= -1.45e+171) tmp = Float64(z * Float64(1.0 - y)); elseif (z <= -5.3e+101) tmp = t_1; elseif (z <= -2.95e+56) tmp = Float64(y * Float64(b - z)); elseif (z <= -1.15e-169) tmp = t_1; elseif (z <= 1.75e-276) tmp = Float64(b * Float64(Float64(y + t) - 2.0)); elseif (z <= 1.85e+73) tmp = t_1; else tmp = Float64(z - Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (a * (1.0 - t)); tmp = 0.0; if (z <= -1.45e+171) tmp = z * (1.0 - y); elseif (z <= -5.3e+101) tmp = t_1; elseif (z <= -2.95e+56) tmp = y * (b - z); elseif (z <= -1.15e-169) tmp = t_1; elseif (z <= 1.75e-276) tmp = b * ((y + t) - 2.0); elseif (z <= 1.85e+73) tmp = t_1; else tmp = z - (y * z); 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]}, If[LessEqual[z, -1.45e+171], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.3e+101], t$95$1, If[LessEqual[z, -2.95e+56], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.15e-169], t$95$1, If[LessEqual[z, 1.75e-276], N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e+73], t$95$1, N[(z - N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1 - t\right)\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+171}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;z \leq -5.3 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.95 \cdot 10^{+56}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-276}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z - y \cdot z\\
\end{array}
\end{array}
if z < -1.44999999999999992e171Initial program 90.0%
Taylor expanded in z around inf 67.2%
if -1.44999999999999992e171 < z < -5.30000000000000006e101 or -2.9500000000000001e56 < z < -1.15e-169 or 1.74999999999999996e-276 < z < 1.84999999999999987e73Initial program 97.6%
Taylor expanded in z around 0 92.9%
Taylor expanded in b around 0 62.8%
if -5.30000000000000006e101 < z < -2.9500000000000001e56Initial program 80.0%
Taylor expanded in y around inf 62.5%
if -1.15e-169 < z < 1.74999999999999996e-276Initial program 94.1%
Taylor expanded in b around inf 63.1%
if 1.84999999999999987e73 < z Initial program 96.5%
Taylor expanded in z around inf 63.8%
Taylor expanded in y around 0 63.8%
mul-1-neg63.8%
unsub-neg63.8%
Applied egg-rr63.8%
Final simplification63.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ z (* y (- b z))))
(t_2 (+ x (* a (- 1.0 t))))
(t_3 (+ x (* b (- (+ y t) 2.0)))))
(if (<= a -9.5e+174)
t_2
(if (<= a -6.4e+106)
t_1
(if (<= a -3.3e-131)
t_3
(if (<= a -1.05e-163)
(+ x (* z (- 1.0 y)))
(if (<= a 1.5e-62) t_3 (if (<= a 2.35e+97) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z + (y * (b - z));
double t_2 = x + (a * (1.0 - t));
double t_3 = x + (b * ((y + t) - 2.0));
double tmp;
if (a <= -9.5e+174) {
tmp = t_2;
} else if (a <= -6.4e+106) {
tmp = t_1;
} else if (a <= -3.3e-131) {
tmp = t_3;
} else if (a <= -1.05e-163) {
tmp = x + (z * (1.0 - y));
} else if (a <= 1.5e-62) {
tmp = t_3;
} else if (a <= 2.35e+97) {
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 = z + (y * (b - z))
t_2 = x + (a * (1.0d0 - t))
t_3 = x + (b * ((y + t) - 2.0d0))
if (a <= (-9.5d+174)) then
tmp = t_2
else if (a <= (-6.4d+106)) then
tmp = t_1
else if (a <= (-3.3d-131)) then
tmp = t_3
else if (a <= (-1.05d-163)) then
tmp = x + (z * (1.0d0 - y))
else if (a <= 1.5d-62) then
tmp = t_3
else if (a <= 2.35d+97) 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 = z + (y * (b - z));
double t_2 = x + (a * (1.0 - t));
double t_3 = x + (b * ((y + t) - 2.0));
double tmp;
if (a <= -9.5e+174) {
tmp = t_2;
} else if (a <= -6.4e+106) {
tmp = t_1;
} else if (a <= -3.3e-131) {
tmp = t_3;
} else if (a <= -1.05e-163) {
tmp = x + (z * (1.0 - y));
} else if (a <= 1.5e-62) {
tmp = t_3;
} else if (a <= 2.35e+97) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z + (y * (b - z)) t_2 = x + (a * (1.0 - t)) t_3 = x + (b * ((y + t) - 2.0)) tmp = 0 if a <= -9.5e+174: tmp = t_2 elif a <= -6.4e+106: tmp = t_1 elif a <= -3.3e-131: tmp = t_3 elif a <= -1.05e-163: tmp = x + (z * (1.0 - y)) elif a <= 1.5e-62: tmp = t_3 elif a <= 2.35e+97: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z + Float64(y * Float64(b - z))) t_2 = Float64(x + Float64(a * Float64(1.0 - t))) t_3 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (a <= -9.5e+174) tmp = t_2; elseif (a <= -6.4e+106) tmp = t_1; elseif (a <= -3.3e-131) tmp = t_3; elseif (a <= -1.05e-163) tmp = Float64(x + Float64(z * Float64(1.0 - y))); elseif (a <= 1.5e-62) tmp = t_3; elseif (a <= 2.35e+97) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z + (y * (b - z)); t_2 = x + (a * (1.0 - t)); t_3 = x + (b * ((y + t) - 2.0)); tmp = 0.0; if (a <= -9.5e+174) tmp = t_2; elseif (a <= -6.4e+106) tmp = t_1; elseif (a <= -3.3e-131) tmp = t_3; elseif (a <= -1.05e-163) tmp = x + (z * (1.0 - y)); elseif (a <= 1.5e-62) tmp = t_3; elseif (a <= 2.35e+97) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z + N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e+174], t$95$2, If[LessEqual[a, -6.4e+106], t$95$1, If[LessEqual[a, -3.3e-131], t$95$3, If[LessEqual[a, -1.05e-163], N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e-62], t$95$3, If[LessEqual[a, 2.35e+97], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z + y \cdot \left(b - z\right)\\
t_2 := x + a \cdot \left(1 - t\right)\\
t_3 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+174}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -6.4 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{-131}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-163}:\\
\;\;\;\;x + z \cdot \left(1 - y\right)\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-62}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -9.4999999999999992e174 or 2.3499999999999999e97 < a Initial program 91.5%
Taylor expanded in z around 0 85.6%
Taylor expanded in b around 0 80.1%
if -9.4999999999999992e174 < a < -6.3999999999999996e106 or 1.5000000000000001e-62 < a < 2.3499999999999999e97Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in z around inf 82.4%
mul-1-neg82.4%
Simplified82.4%
Taylor expanded in y around inf 70.5%
if -6.3999999999999996e106 < a < -3.3000000000000002e-131 or -1.04999999999999999e-163 < a < 1.5000000000000001e-62Initial program 96.3%
Taylor expanded in z around 0 72.3%
Taylor expanded in a around 0 67.4%
if -3.3000000000000002e-131 < a < -1.04999999999999999e-163Initial program 87.5%
Taylor expanded in b around 0 98.1%
Taylor expanded in a around 0 86.5%
Final simplification72.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -6e+88)
(- t_1 (* y z))
(if (or (<= b 3.3e+26) (and (not (<= b 2.55e+61)) (<= b 1.1e+166)))
(- x (+ (* a (+ t -1.0)) (* z (+ y -1.0))))
(+ x t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -6e+88) {
tmp = t_1 - (y * z);
} else if ((b <= 3.3e+26) || (!(b <= 2.55e+61) && (b <= 1.1e+166))) {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
} else {
tmp = x + 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 = b * ((y + t) - 2.0d0)
if (b <= (-6d+88)) then
tmp = t_1 - (y * z)
else if ((b <= 3.3d+26) .or. (.not. (b <= 2.55d+61)) .and. (b <= 1.1d+166)) then
tmp = x - ((a * (t + (-1.0d0))) + (z * (y + (-1.0d0))))
else
tmp = x + 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 = b * ((y + t) - 2.0);
double tmp;
if (b <= -6e+88) {
tmp = t_1 - (y * z);
} else if ((b <= 3.3e+26) || (!(b <= 2.55e+61) && (b <= 1.1e+166))) {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * ((y + t) - 2.0) tmp = 0 if b <= -6e+88: tmp = t_1 - (y * z) elif (b <= 3.3e+26) or (not (b <= 2.55e+61) and (b <= 1.1e+166)): tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))) else: tmp = x + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(Float64(y + t) - 2.0)) tmp = 0.0 if (b <= -6e+88) tmp = Float64(t_1 - Float64(y * z)); elseif ((b <= 3.3e+26) || (!(b <= 2.55e+61) && (b <= 1.1e+166))) tmp = Float64(x - Float64(Float64(a * Float64(t + -1.0)) + Float64(z * Float64(y + -1.0)))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * ((y + t) - 2.0); tmp = 0.0; if (b <= -6e+88) tmp = t_1 - (y * z); elseif ((b <= 3.3e+26) || (~((b <= 2.55e+61)) && (b <= 1.1e+166))) tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6e+88], N[(t$95$1 - N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 3.3e+26], And[N[Not[LessEqual[b, 2.55e+61]], $MachinePrecision], LessEqual[b, 1.1e+166]]], N[(x - N[(N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -6 \cdot 10^{+88}:\\
\;\;\;\;t\_1 - y \cdot z\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+26} \lor \neg \left(b \leq 2.55 \cdot 10^{+61}\right) \land b \leq 1.1 \cdot 10^{+166}:\\
\;\;\;\;x - \left(a \cdot \left(t + -1\right) + z \cdot \left(y + -1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if b < -6.00000000000000011e88Initial program 92.0%
Taylor expanded in y around inf 82.4%
mul-1-neg82.4%
*-commutative82.4%
distribute-rgt-neg-in82.4%
Simplified82.4%
if -6.00000000000000011e88 < b < 3.29999999999999993e26 or 2.55000000000000005e61 < b < 1.1e166Initial program 96.6%
Taylor expanded in b around 0 85.3%
if 3.29999999999999993e26 < b < 2.55000000000000005e61 or 1.1e166 < b Initial program 93.1%
Taylor expanded in z around 0 96.6%
Taylor expanded in a around 0 89.7%
Final simplification85.3%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= b -3.5e+88)
(and (not (<= b 1.6e+27))
(or (<= b 1.35e+104) (not (<= b 1.1e+166)))))
(+ x (* b (- (+ y t) 2.0)))
(- x (+ (* z (+ y -1.0)) (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.5e+88) || (!(b <= 1.6e+27) && ((b <= 1.35e+104) || !(b <= 1.1e+166)))) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x - ((z * (y + -1.0)) + (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 <= (-3.5d+88)) .or. (.not. (b <= 1.6d+27)) .and. (b <= 1.35d+104) .or. (.not. (b <= 1.1d+166))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x - ((z * (y + (-1.0d0))) + (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 <= -3.5e+88) || (!(b <= 1.6e+27) && ((b <= 1.35e+104) || !(b <= 1.1e+166)))) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x - ((z * (y + -1.0)) + (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.5e+88) or (not (b <= 1.6e+27) and ((b <= 1.35e+104) or not (b <= 1.1e+166))): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x - ((z * (y + -1.0)) + (t * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.5e+88) || (!(b <= 1.6e+27) && ((b <= 1.35e+104) || !(b <= 1.1e+166)))) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x - Float64(Float64(z * Float64(y + -1.0)) + Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.5e+88) || (~((b <= 1.6e+27)) && ((b <= 1.35e+104) || ~((b <= 1.1e+166))))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x - ((z * (y + -1.0)) + (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.5e+88], And[N[Not[LessEqual[b, 1.6e+27]], $MachinePrecision], Or[LessEqual[b, 1.35e+104], N[Not[LessEqual[b, 1.1e+166]], $MachinePrecision]]]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+88} \lor \neg \left(b \leq 1.6 \cdot 10^{+27}\right) \land \left(b \leq 1.35 \cdot 10^{+104} \lor \neg \left(b \leq 1.1 \cdot 10^{+166}\right)\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(z \cdot \left(y + -1\right) + t \cdot a\right)\\
\end{array}
\end{array}
if b < -3.4999999999999998e88 or 1.60000000000000008e27 < b < 1.34999999999999992e104 or 1.1e166 < b Initial program 93.1%
Taylor expanded in z around 0 87.7%
Taylor expanded in a around 0 79.4%
if -3.4999999999999998e88 < b < 1.60000000000000008e27 or 1.34999999999999992e104 < b < 1.1e166Initial program 96.4%
Taylor expanded in b around 0 86.4%
Taylor expanded in t around inf 76.0%
*-commutative76.0%
Simplified76.0%
Final simplification77.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -1e+89)
(- t_1 (* t a))
(if (or (<= b 1.6e+27) (and (not (<= b 5.5e+103)) (<= b 1.1e+166)))
(- x (+ (* z (+ y -1.0)) (* t a)))
(+ x t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -1e+89) {
tmp = t_1 - (t * a);
} else if ((b <= 1.6e+27) || (!(b <= 5.5e+103) && (b <= 1.1e+166))) {
tmp = x - ((z * (y + -1.0)) + (t * a));
} else {
tmp = x + 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 = b * ((y + t) - 2.0d0)
if (b <= (-1d+89)) then
tmp = t_1 - (t * a)
else if ((b <= 1.6d+27) .or. (.not. (b <= 5.5d+103)) .and. (b <= 1.1d+166)) then
tmp = x - ((z * (y + (-1.0d0))) + (t * a))
else
tmp = x + 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 = b * ((y + t) - 2.0);
double tmp;
if (b <= -1e+89) {
tmp = t_1 - (t * a);
} else if ((b <= 1.6e+27) || (!(b <= 5.5e+103) && (b <= 1.1e+166))) {
tmp = x - ((z * (y + -1.0)) + (t * a));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * ((y + t) - 2.0) tmp = 0 if b <= -1e+89: tmp = t_1 - (t * a) elif (b <= 1.6e+27) or (not (b <= 5.5e+103) and (b <= 1.1e+166)): tmp = x - ((z * (y + -1.0)) + (t * a)) else: tmp = x + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(Float64(y + t) - 2.0)) tmp = 0.0 if (b <= -1e+89) tmp = Float64(t_1 - Float64(t * a)); elseif ((b <= 1.6e+27) || (!(b <= 5.5e+103) && (b <= 1.1e+166))) tmp = Float64(x - Float64(Float64(z * Float64(y + -1.0)) + Float64(t * a))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * ((y + t) - 2.0); tmp = 0.0; if (b <= -1e+89) tmp = t_1 - (t * a); elseif ((b <= 1.6e+27) || (~((b <= 5.5e+103)) && (b <= 1.1e+166))) tmp = x - ((z * (y + -1.0)) + (t * a)); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e+89], N[(t$95$1 - N[(t * a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.6e+27], And[N[Not[LessEqual[b, 5.5e+103]], $MachinePrecision], LessEqual[b, 1.1e+166]]], N[(x - N[(N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+89}:\\
\;\;\;\;t\_1 - t \cdot a\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{+27} \lor \neg \left(b \leq 5.5 \cdot 10^{+103}\right) \land b \leq 1.1 \cdot 10^{+166}:\\
\;\;\;\;x - \left(z \cdot \left(y + -1\right) + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if b < -9.99999999999999995e88Initial program 92.0%
Taylor expanded in t around inf 81.1%
mul-1-neg81.1%
distribute-rgt-neg-in81.1%
Simplified81.1%
if -9.99999999999999995e88 < b < 1.60000000000000008e27 or 5.50000000000000001e103 < b < 1.1e166Initial program 96.4%
Taylor expanded in b around 0 86.4%
Taylor expanded in t around inf 76.0%
*-commutative76.0%
Simplified76.0%
if 1.60000000000000008e27 < b < 5.50000000000000001e103 or 1.1e166 < b Initial program 94.6%
Taylor expanded in z around 0 91.2%
Taylor expanded in a around 0 81.5%
Final simplification77.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -3.2e+88)
(- t_1 (* y z))
(if (or (<= b 2.4e+27) (and (not (<= b 3.8e+103)) (<= b 6.8e+169)))
(- x (+ (* z (+ y -1.0)) (* t a)))
(+ x t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -3.2e+88) {
tmp = t_1 - (y * z);
} else if ((b <= 2.4e+27) || (!(b <= 3.8e+103) && (b <= 6.8e+169))) {
tmp = x - ((z * (y + -1.0)) + (t * a));
} else {
tmp = x + 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 = b * ((y + t) - 2.0d0)
if (b <= (-3.2d+88)) then
tmp = t_1 - (y * z)
else if ((b <= 2.4d+27) .or. (.not. (b <= 3.8d+103)) .and. (b <= 6.8d+169)) then
tmp = x - ((z * (y + (-1.0d0))) + (t * a))
else
tmp = x + 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 = b * ((y + t) - 2.0);
double tmp;
if (b <= -3.2e+88) {
tmp = t_1 - (y * z);
} else if ((b <= 2.4e+27) || (!(b <= 3.8e+103) && (b <= 6.8e+169))) {
tmp = x - ((z * (y + -1.0)) + (t * a));
} else {
tmp = x + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * ((y + t) - 2.0) tmp = 0 if b <= -3.2e+88: tmp = t_1 - (y * z) elif (b <= 2.4e+27) or (not (b <= 3.8e+103) and (b <= 6.8e+169)): tmp = x - ((z * (y + -1.0)) + (t * a)) else: tmp = x + t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(Float64(y + t) - 2.0)) tmp = 0.0 if (b <= -3.2e+88) tmp = Float64(t_1 - Float64(y * z)); elseif ((b <= 2.4e+27) || (!(b <= 3.8e+103) && (b <= 6.8e+169))) tmp = Float64(x - Float64(Float64(z * Float64(y + -1.0)) + Float64(t * a))); else tmp = Float64(x + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * ((y + t) - 2.0); tmp = 0.0; if (b <= -3.2e+88) tmp = t_1 - (y * z); elseif ((b <= 2.4e+27) || (~((b <= 3.8e+103)) && (b <= 6.8e+169))) tmp = x - ((z * (y + -1.0)) + (t * a)); else tmp = x + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+88], N[(t$95$1 - N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 2.4e+27], And[N[Not[LessEqual[b, 3.8e+103]], $MachinePrecision], LessEqual[b, 6.8e+169]]], N[(x - N[(N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+88}:\\
\;\;\;\;t\_1 - y \cdot z\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+27} \lor \neg \left(b \leq 3.8 \cdot 10^{+103}\right) \land b \leq 6.8 \cdot 10^{+169}:\\
\;\;\;\;x - \left(z \cdot \left(y + -1\right) + t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x + t\_1\\
\end{array}
\end{array}
if b < -3.1999999999999999e88Initial program 92.0%
Taylor expanded in y around inf 82.4%
mul-1-neg82.4%
*-commutative82.4%
distribute-rgt-neg-in82.4%
Simplified82.4%
if -3.1999999999999999e88 < b < 2.39999999999999998e27 or 3.7999999999999997e103 < b < 6.80000000000000056e169Initial program 96.4%
Taylor expanded in b around 0 86.4%
Taylor expanded in t around inf 76.0%
*-commutative76.0%
Simplified76.0%
if 2.39999999999999998e27 < b < 3.7999999999999997e103 or 6.80000000000000056e169 < b Initial program 94.6%
Taylor expanded in z around 0 91.2%
Taylor expanded in a around 0 81.5%
Final simplification78.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -1.35e+33)
t_1
(if (<= t -3.8e-27)
(* z (- 1.0 y))
(if (<= t -2.95e-151)
(* b (- y 2.0))
(if (<= t 1.75e-127)
(+ x a)
(if (<= t 1500000.0) (* y (- b z)) 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.35e+33) {
tmp = t_1;
} else if (t <= -3.8e-27) {
tmp = z * (1.0 - y);
} else if (t <= -2.95e-151) {
tmp = b * (y - 2.0);
} else if (t <= 1.75e-127) {
tmp = x + a;
} else if (t <= 1500000.0) {
tmp = y * (b - 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 * (b - a)
if (t <= (-1.35d+33)) then
tmp = t_1
else if (t <= (-3.8d-27)) then
tmp = z * (1.0d0 - y)
else if (t <= (-2.95d-151)) then
tmp = b * (y - 2.0d0)
else if (t <= 1.75d-127) then
tmp = x + a
else if (t <= 1500000.0d0) then
tmp = y * (b - 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 * (b - a);
double tmp;
if (t <= -1.35e+33) {
tmp = t_1;
} else if (t <= -3.8e-27) {
tmp = z * (1.0 - y);
} else if (t <= -2.95e-151) {
tmp = b * (y - 2.0);
} else if (t <= 1.75e-127) {
tmp = x + a;
} else if (t <= 1500000.0) {
tmp = y * (b - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -1.35e+33: tmp = t_1 elif t <= -3.8e-27: tmp = z * (1.0 - y) elif t <= -2.95e-151: tmp = b * (y - 2.0) elif t <= 1.75e-127: tmp = x + a elif t <= 1500000.0: tmp = y * (b - z) 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.35e+33) tmp = t_1; elseif (t <= -3.8e-27) tmp = Float64(z * Float64(1.0 - y)); elseif (t <= -2.95e-151) tmp = Float64(b * Float64(y - 2.0)); elseif (t <= 1.75e-127) tmp = Float64(x + a); elseif (t <= 1500000.0) tmp = Float64(y * Float64(b - z)); 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.35e+33) tmp = t_1; elseif (t <= -3.8e-27) tmp = z * (1.0 - y); elseif (t <= -2.95e-151) tmp = b * (y - 2.0); elseif (t <= 1.75e-127) tmp = x + a; elseif (t <= 1500000.0) tmp = y * (b - z); 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.35e+33], t$95$1, If[LessEqual[t, -3.8e-27], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.95e-151], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-127], N[(x + a), $MachinePrecision], If[LessEqual[t, 1500000.0], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-27}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;t \leq -2.95 \cdot 10^{-151}:\\
\;\;\;\;b \cdot \left(y - 2\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-127}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 1500000:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.34999999999999996e33 or 1.5e6 < t Initial program 91.9%
Taylor expanded in t around inf 70.5%
if -1.34999999999999996e33 < t < -3.8e-27Initial program 87.5%
Taylor expanded in z around inf 62.2%
if -3.8e-27 < t < -2.95e-151Initial program 99.9%
Taylor expanded in t around inf 52.6%
mul-1-neg52.6%
distribute-rgt-neg-in52.6%
Simplified52.6%
Taylor expanded in t around 0 52.4%
if -2.95e-151 < t < 1.74999999999999995e-127Initial program 100.0%
Taylor expanded in z around 0 74.1%
Taylor expanded in b around 0 55.2%
Taylor expanded in t around 0 55.2%
neg-mul-155.2%
Simplified55.2%
if 1.74999999999999995e-127 < t < 1.5e6Initial program 100.0%
Taylor expanded in y around inf 47.0%
Final simplification61.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- a))))
(if (<= t -1.55e+34)
t_1
(if (<= t -8e-49)
z
(if (<= t -4.4e-154)
(* y b)
(if (<= t 5e-182) x (if (<= t 7.8e-10) a 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 <= -1.55e+34) {
tmp = t_1;
} else if (t <= -8e-49) {
tmp = z;
} else if (t <= -4.4e-154) {
tmp = y * b;
} else if (t <= 5e-182) {
tmp = x;
} else if (t <= 7.8e-10) {
tmp = 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 * -a
if (t <= (-1.55d+34)) then
tmp = t_1
else if (t <= (-8d-49)) then
tmp = z
else if (t <= (-4.4d-154)) then
tmp = y * b
else if (t <= 5d-182) then
tmp = x
else if (t <= 7.8d-10) then
tmp = 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 * -a;
double tmp;
if (t <= -1.55e+34) {
tmp = t_1;
} else if (t <= -8e-49) {
tmp = z;
} else if (t <= -4.4e-154) {
tmp = y * b;
} else if (t <= 5e-182) {
tmp = x;
} else if (t <= 7.8e-10) {
tmp = a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * -a tmp = 0 if t <= -1.55e+34: tmp = t_1 elif t <= -8e-49: tmp = z elif t <= -4.4e-154: tmp = y * b elif t <= 5e-182: tmp = x elif t <= 7.8e-10: tmp = a 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 <= -1.55e+34) tmp = t_1; elseif (t <= -8e-49) tmp = z; elseif (t <= -4.4e-154) tmp = Float64(y * b); elseif (t <= 5e-182) tmp = x; elseif (t <= 7.8e-10) tmp = a; 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 <= -1.55e+34) tmp = t_1; elseif (t <= -8e-49) tmp = z; elseif (t <= -4.4e-154) tmp = y * b; elseif (t <= 5e-182) tmp = x; elseif (t <= 7.8e-10) tmp = a; 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, -1.55e+34], t$95$1, If[LessEqual[t, -8e-49], z, If[LessEqual[t, -4.4e-154], N[(y * b), $MachinePrecision], If[LessEqual[t, 5e-182], x, If[LessEqual[t, 7.8e-10], a, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-49}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-154}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-182}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-10}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.54999999999999989e34 or 7.7999999999999999e-10 < t Initial program 92.1%
Taylor expanded in t around inf 68.6%
Taylor expanded in b around 0 40.3%
associate-*r*40.3%
mul-1-neg40.3%
Simplified40.3%
if -1.54999999999999989e34 < t < -7.99999999999999949e-49Initial program 91.3%
Taylor expanded in z around inf 52.4%
Taylor expanded in y around 0 31.6%
if -7.99999999999999949e-49 < t < -4.40000000000000015e-154Initial program 99.9%
Taylor expanded in z around 0 78.3%
Taylor expanded in y around inf 44.0%
if -4.40000000000000015e-154 < t < 5.00000000000000024e-182Initial program 100.0%
Taylor expanded in x around inf 39.9%
if 5.00000000000000024e-182 < t < 7.7999999999999999e-10Initial program 100.0%
Taylor expanded in a around inf 29.9%
Taylor expanded in t around 0 29.9%
Final simplification38.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- a))))
(if (<= t -7.2e+38)
t_1
(if (<= t -2.7e-69)
(+ x z)
(if (<= t -1.75e-149)
(* y b)
(if (<= t -1.55e-199) (+ x z) (if (<= t 0.055) (+ x a) 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+38) {
tmp = t_1;
} else if (t <= -2.7e-69) {
tmp = x + z;
} else if (t <= -1.75e-149) {
tmp = y * b;
} else if (t <= -1.55e-199) {
tmp = x + z;
} else if (t <= 0.055) {
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 * -a
if (t <= (-7.2d+38)) then
tmp = t_1
else if (t <= (-2.7d-69)) then
tmp = x + z
else if (t <= (-1.75d-149)) then
tmp = y * b
else if (t <= (-1.55d-199)) then
tmp = x + z
else if (t <= 0.055d0) 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 * -a;
double tmp;
if (t <= -7.2e+38) {
tmp = t_1;
} else if (t <= -2.7e-69) {
tmp = x + z;
} else if (t <= -1.75e-149) {
tmp = y * b;
} else if (t <= -1.55e-199) {
tmp = x + z;
} else if (t <= 0.055) {
tmp = x + a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * -a tmp = 0 if t <= -7.2e+38: tmp = t_1 elif t <= -2.7e-69: tmp = x + z elif t <= -1.75e-149: tmp = y * b elif t <= -1.55e-199: tmp = x + z elif t <= 0.055: tmp = x + a 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+38) tmp = t_1; elseif (t <= -2.7e-69) tmp = Float64(x + z); elseif (t <= -1.75e-149) tmp = Float64(y * b); elseif (t <= -1.55e-199) tmp = Float64(x + z); elseif (t <= 0.055) 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 * -a; tmp = 0.0; if (t <= -7.2e+38) tmp = t_1; elseif (t <= -2.7e-69) tmp = x + z; elseif (t <= -1.75e-149) tmp = y * b; elseif (t <= -1.55e-199) tmp = x + z; elseif (t <= 0.055) 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 * (-a)), $MachinePrecision]}, If[LessEqual[t, -7.2e+38], t$95$1, If[LessEqual[t, -2.7e-69], N[(x + z), $MachinePrecision], If[LessEqual[t, -1.75e-149], N[(y * b), $MachinePrecision], If[LessEqual[t, -1.55e-199], N[(x + z), $MachinePrecision], If[LessEqual[t, 0.055], N[(x + a), $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^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-69}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-149}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-199}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq 0.055:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.19999999999999938e38 or 0.0550000000000000003 < t Initial program 92.1%
Taylor expanded in t around inf 68.6%
Taylor expanded in b around 0 40.3%
associate-*r*40.3%
mul-1-neg40.3%
Simplified40.3%
if -7.19999999999999938e38 < t < -2.6999999999999997e-69 or -1.75e-149 < t < -1.55000000000000006e-199Initial program 94.1%
Taylor expanded in y around 0 100.0%
Taylor expanded in z around inf 91.7%
mul-1-neg91.7%
Simplified91.7%
Taylor expanded in x around inf 51.9%
if -2.6999999999999997e-69 < t < -1.75e-149Initial program 99.9%
Taylor expanded in z around 0 79.1%
Taylor expanded in y around inf 42.3%
if -1.55000000000000006e-199 < t < 0.0550000000000000003Initial program 100.0%
Taylor expanded in z around 0 73.3%
Taylor expanded in b around 0 47.2%
Taylor expanded in t around 0 47.2%
neg-mul-147.2%
Simplified47.2%
Final simplification44.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* z (- 1.0 y)))) (t_2 (* t (- b a))))
(if (<= t -1.3e+34)
t_2
(if (<= t -3.4e-110)
t_1
(if (<= t -4.8e-150)
(* b (- (+ y t) 2.0))
(if (<= t 1750000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (1.0 - y));
double t_2 = t * (b - a);
double tmp;
if (t <= -1.3e+34) {
tmp = t_2;
} else if (t <= -3.4e-110) {
tmp = t_1;
} else if (t <= -4.8e-150) {
tmp = b * ((y + t) - 2.0);
} else if (t <= 1750000000000.0) {
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 * (1.0d0 - y))
t_2 = t * (b - a)
if (t <= (-1.3d+34)) then
tmp = t_2
else if (t <= (-3.4d-110)) then
tmp = t_1
else if (t <= (-4.8d-150)) then
tmp = b * ((y + t) - 2.0d0)
else if (t <= 1750000000000.0d0) 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 * (1.0 - y));
double t_2 = t * (b - a);
double tmp;
if (t <= -1.3e+34) {
tmp = t_2;
} else if (t <= -3.4e-110) {
tmp = t_1;
} else if (t <= -4.8e-150) {
tmp = b * ((y + t) - 2.0);
} else if (t <= 1750000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * (1.0 - y)) t_2 = t * (b - a) tmp = 0 if t <= -1.3e+34: tmp = t_2 elif t <= -3.4e-110: tmp = t_1 elif t <= -4.8e-150: tmp = b * ((y + t) - 2.0) elif t <= 1750000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * Float64(1.0 - y))) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.3e+34) tmp = t_2; elseif (t <= -3.4e-110) tmp = t_1; elseif (t <= -4.8e-150) tmp = Float64(b * Float64(Float64(y + t) - 2.0)); elseif (t <= 1750000000000.0) 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 * (1.0 - y)); t_2 = t * (b - a); tmp = 0.0; if (t <= -1.3e+34) tmp = t_2; elseif (t <= -3.4e-110) tmp = t_1; elseif (t <= -4.8e-150) tmp = b * ((y + t) - 2.0); elseif (t <= 1750000000000.0) 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[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+34], t$95$2, If[LessEqual[t, -3.4e-110], t$95$1, If[LessEqual[t, -4.8e-150], N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1750000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \left(1 - y\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.4 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-150}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{elif}\;t \leq 1750000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.29999999999999999e34 or 1.75e12 < t Initial program 91.9%
Taylor expanded in t around inf 70.5%
if -1.29999999999999999e34 < t < -3.4000000000000001e-110 or -4.8e-150 < t < 1.75e12Initial program 98.4%
Taylor expanded in b around 0 74.7%
Taylor expanded in a around 0 56.0%
if -3.4000000000000001e-110 < t < -4.8e-150Initial program 100.0%
Taylor expanded in b around inf 84.0%
Final simplification64.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ z (* y (- b z)))) (t_2 (* t (- b a))))
(if (<= t -3e+112)
t_2
(if (<= t -7.2e-145)
t_1
(if (<= t 1.35e-132)
(+ x (* z (- 1.0 y)))
(if (<= t 1750000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z + (y * (b - z));
double t_2 = t * (b - a);
double tmp;
if (t <= -3e+112) {
tmp = t_2;
} else if (t <= -7.2e-145) {
tmp = t_1;
} else if (t <= 1.35e-132) {
tmp = x + (z * (1.0 - y));
} else if (t <= 1750000000000.0) {
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 = z + (y * (b - z))
t_2 = t * (b - a)
if (t <= (-3d+112)) then
tmp = t_2
else if (t <= (-7.2d-145)) then
tmp = t_1
else if (t <= 1.35d-132) then
tmp = x + (z * (1.0d0 - y))
else if (t <= 1750000000000.0d0) 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 = z + (y * (b - z));
double t_2 = t * (b - a);
double tmp;
if (t <= -3e+112) {
tmp = t_2;
} else if (t <= -7.2e-145) {
tmp = t_1;
} else if (t <= 1.35e-132) {
tmp = x + (z * (1.0 - y));
} else if (t <= 1750000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z + (y * (b - z)) t_2 = t * (b - a) tmp = 0 if t <= -3e+112: tmp = t_2 elif t <= -7.2e-145: tmp = t_1 elif t <= 1.35e-132: tmp = x + (z * (1.0 - y)) elif t <= 1750000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z + Float64(y * Float64(b - z))) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -3e+112) tmp = t_2; elseif (t <= -7.2e-145) tmp = t_1; elseif (t <= 1.35e-132) tmp = Float64(x + Float64(z * Float64(1.0 - y))); elseif (t <= 1750000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z + (y * (b - z)); t_2 = t * (b - a); tmp = 0.0; if (t <= -3e+112) tmp = t_2; elseif (t <= -7.2e-145) tmp = t_1; elseif (t <= 1.35e-132) tmp = x + (z * (1.0 - y)); elseif (t <= 1750000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z + N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e+112], t$95$2, If[LessEqual[t, -7.2e-145], t$95$1, If[LessEqual[t, 1.35e-132], N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1750000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z + y \cdot \left(b - z\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -3 \cdot 10^{+112}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-132}:\\
\;\;\;\;x + z \cdot \left(1 - y\right)\\
\mathbf{elif}\;t \leq 1750000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.99999999999999979e112 or 1.75e12 < t Initial program 91.7%
Taylor expanded in t around inf 73.7%
if -2.99999999999999979e112 < t < -7.2000000000000001e-145 or 1.34999999999999995e-132 < t < 1.75e12Initial program 96.6%
Taylor expanded in y around 0 97.8%
Taylor expanded in z around inf 79.3%
mul-1-neg79.3%
Simplified79.3%
Taylor expanded in y around inf 62.2%
if -7.2000000000000001e-145 < t < 1.34999999999999995e-132Initial program 100.0%
Taylor expanded in b around 0 77.8%
Taylor expanded in a around 0 59.7%
Final simplification66.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= a -2.7e+68)
t_1
(if (<= a 6.1e-55)
(+ x z)
(if (<= a 3.9e+30) (* y (- z)) (if (<= a 1.02e+98) (+ 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 <= -2.7e+68) {
tmp = t_1;
} else if (a <= 6.1e-55) {
tmp = x + z;
} else if (a <= 3.9e+30) {
tmp = y * -z;
} else if (a <= 1.02e+98) {
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 <= (-2.7d+68)) then
tmp = t_1
else if (a <= 6.1d-55) then
tmp = x + z
else if (a <= 3.9d+30) then
tmp = y * -z
else if (a <= 1.02d+98) 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 <= -2.7e+68) {
tmp = t_1;
} else if (a <= 6.1e-55) {
tmp = x + z;
} else if (a <= 3.9e+30) {
tmp = y * -z;
} else if (a <= 1.02e+98) {
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 <= -2.7e+68: tmp = t_1 elif a <= 6.1e-55: tmp = x + z elif a <= 3.9e+30: tmp = y * -z elif a <= 1.02e+98: 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 <= -2.7e+68) tmp = t_1; elseif (a <= 6.1e-55) tmp = Float64(x + z); elseif (a <= 3.9e+30) tmp = Float64(y * Float64(-z)); elseif (a <= 1.02e+98) 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 <= -2.7e+68) tmp = t_1; elseif (a <= 6.1e-55) tmp = x + z; elseif (a <= 3.9e+30) tmp = y * -z; elseif (a <= 1.02e+98) 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, -2.7e+68], t$95$1, If[LessEqual[a, 6.1e-55], N[(x + z), $MachinePrecision], If[LessEqual[a, 3.9e+30], N[(y * (-z)), $MachinePrecision], If[LessEqual[a, 1.02e+98], 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 -2.7 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.1 \cdot 10^{-55}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+30}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{+98}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.69999999999999991e68 or 1.02000000000000007e98 < a Initial program 91.8%
Taylor expanded in a around inf 62.3%
if -2.69999999999999991e68 < a < 6.1000000000000001e-55 or 3.90000000000000011e30 < a < 1.02000000000000007e98Initial program 97.2%
Taylor expanded in y around 0 98.6%
Taylor expanded in z around inf 90.8%
mul-1-neg90.8%
Simplified90.8%
Taylor expanded in x around inf 36.7%
if 6.1000000000000001e-55 < a < 3.90000000000000011e30Initial program 100.0%
Taylor expanded in z around inf 65.6%
Taylor expanded in y around 0 65.6%
Taylor expanded in y around inf 51.8%
associate-*r*51.8%
neg-mul-151.8%
Simplified51.8%
Final simplification47.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -1.3e+33)
t_1
(if (<= t -3.5e-28)
(+ x z)
(if (<= t -1.7e-151) (* b (- y 2.0)) (if (<= t 0.055) (+ 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.3e+33) {
tmp = t_1;
} else if (t <= -3.5e-28) {
tmp = x + z;
} else if (t <= -1.7e-151) {
tmp = b * (y - 2.0);
} else if (t <= 0.055) {
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.3d+33)) then
tmp = t_1
else if (t <= (-3.5d-28)) then
tmp = x + z
else if (t <= (-1.7d-151)) then
tmp = b * (y - 2.0d0)
else if (t <= 0.055d0) 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.3e+33) {
tmp = t_1;
} else if (t <= -3.5e-28) {
tmp = x + z;
} else if (t <= -1.7e-151) {
tmp = b * (y - 2.0);
} else if (t <= 0.055) {
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.3e+33: tmp = t_1 elif t <= -3.5e-28: tmp = x + z elif t <= -1.7e-151: tmp = b * (y - 2.0) elif t <= 0.055: 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.3e+33) tmp = t_1; elseif (t <= -3.5e-28) tmp = Float64(x + z); elseif (t <= -1.7e-151) tmp = Float64(b * Float64(y - 2.0)); elseif (t <= 0.055) 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.3e+33) tmp = t_1; elseif (t <= -3.5e-28) tmp = x + z; elseif (t <= -1.7e-151) tmp = b * (y - 2.0); elseif (t <= 0.055) 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.3e+33], t$95$1, If[LessEqual[t, -3.5e-28], N[(x + z), $MachinePrecision], If[LessEqual[t, -1.7e-151], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.055], 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.3 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-28}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-151}:\\
\;\;\;\;b \cdot \left(y - 2\right)\\
\mathbf{elif}\;t \leq 0.055:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.2999999999999999e33 or 0.0550000000000000003 < t Initial program 92.1%
Taylor expanded in t around inf 68.6%
if -1.2999999999999999e33 < t < -3.5e-28Initial program 87.5%
Taylor expanded in y around 0 100.0%
Taylor expanded in z around inf 94.3%
mul-1-neg94.3%
Simplified94.3%
Taylor expanded in x around inf 52.2%
if -3.5e-28 < t < -1.7000000000000001e-151Initial program 99.9%
Taylor expanded in t around inf 52.6%
mul-1-neg52.6%
distribute-rgt-neg-in52.6%
Simplified52.6%
Taylor expanded in t around 0 52.4%
if -1.7000000000000001e-151 < t < 0.0550000000000000003Initial program 100.0%
Taylor expanded in z around 0 72.0%
Taylor expanded in b around 0 48.1%
Taylor expanded in t around 0 48.1%
neg-mul-148.1%
Simplified48.1%
Final simplification59.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))) (t_2 (* t (- b a))))
(if (<= t -3.6e+28)
t_2
(if (<= t -1.26e-146)
t_1
(if (<= t 3.4e-131) (+ x a) (if (<= t 2200000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = t * (b - a);
double tmp;
if (t <= -3.6e+28) {
tmp = t_2;
} else if (t <= -1.26e-146) {
tmp = t_1;
} else if (t <= 3.4e-131) {
tmp = x + a;
} else if (t <= 2200000000000.0) {
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 = y * (b - z)
t_2 = t * (b - a)
if (t <= (-3.6d+28)) then
tmp = t_2
else if (t <= (-1.26d-146)) then
tmp = t_1
else if (t <= 3.4d-131) then
tmp = x + a
else if (t <= 2200000000000.0d0) 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 = y * (b - z);
double t_2 = t * (b - a);
double tmp;
if (t <= -3.6e+28) {
tmp = t_2;
} else if (t <= -1.26e-146) {
tmp = t_1;
} else if (t <= 3.4e-131) {
tmp = x + a;
} else if (t <= 2200000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) t_2 = t * (b - a) tmp = 0 if t <= -3.6e+28: tmp = t_2 elif t <= -1.26e-146: tmp = t_1 elif t <= 3.4e-131: tmp = x + a elif t <= 2200000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -3.6e+28) tmp = t_2; elseif (t <= -1.26e-146) tmp = t_1; elseif (t <= 3.4e-131) tmp = Float64(x + a); elseif (t <= 2200000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); t_2 = t * (b - a); tmp = 0.0; if (t <= -3.6e+28) tmp = t_2; elseif (t <= -1.26e-146) tmp = t_1; elseif (t <= 3.4e-131) tmp = x + a; elseif (t <= 2200000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+28], t$95$2, If[LessEqual[t, -1.26e-146], t$95$1, If[LessEqual[t, 3.4e-131], N[(x + a), $MachinePrecision], If[LessEqual[t, 2200000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.26 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-131}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 2200000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -3.5999999999999999e28 or 2.2e12 < t Initial program 91.9%
Taylor expanded in t around inf 70.0%
if -3.5999999999999999e28 < t < -1.2599999999999999e-146 or 3.39999999999999995e-131 < t < 2.2e12Initial program 97.2%
Taylor expanded in y around inf 47.3%
if -1.2599999999999999e-146 < t < 3.39999999999999995e-131Initial program 100.0%
Taylor expanded in z around 0 75.0%
Taylor expanded in b around 0 53.5%
Taylor expanded in t around 0 53.5%
neg-mul-153.5%
Simplified53.5%
Final simplification59.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (+ y -1.0))))
(if (<= z -1.3e+59)
(- x (+ t_1 (* t a)))
(if (<= z 4.7e+64)
(+ (+ x (* b (- (+ y t) 2.0))) (* a (- 1.0 t)))
(- x (+ (* a (+ t -1.0)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (y + -1.0);
double tmp;
if (z <= -1.3e+59) {
tmp = x - (t_1 + (t * a));
} else if (z <= 4.7e+64) {
tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t));
} else {
tmp = x - ((a * (t + -1.0)) + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * (y + (-1.0d0))
if (z <= (-1.3d+59)) then
tmp = x - (t_1 + (t * a))
else if (z <= 4.7d+64) then
tmp = (x + (b * ((y + t) - 2.0d0))) + (a * (1.0d0 - t))
else
tmp = x - ((a * (t + (-1.0d0))) + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (y + -1.0);
double tmp;
if (z <= -1.3e+59) {
tmp = x - (t_1 + (t * a));
} else if (z <= 4.7e+64) {
tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t));
} else {
tmp = x - ((a * (t + -1.0)) + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (y + -1.0) tmp = 0 if z <= -1.3e+59: tmp = x - (t_1 + (t * a)) elif z <= 4.7e+64: tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t)) else: tmp = x - ((a * (t + -1.0)) + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(y + -1.0)) tmp = 0.0 if (z <= -1.3e+59) tmp = Float64(x - Float64(t_1 + Float64(t * a))); elseif (z <= 4.7e+64) tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + Float64(a * Float64(1.0 - t))); else tmp = Float64(x - Float64(Float64(a * Float64(t + -1.0)) + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (y + -1.0); tmp = 0.0; if (z <= -1.3e+59) tmp = x - (t_1 + (t * a)); elseif (z <= 4.7e+64) tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t)); else tmp = x - ((a * (t + -1.0)) + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.3e+59], N[(x - N[(t$95$1 + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.7e+64], N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(y + -1\right)\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{+59}:\\
\;\;\;\;x - \left(t\_1 + t \cdot a\right)\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{+64}:\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + a \cdot \left(1 - t\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(a \cdot \left(t + -1\right) + t\_1\right)\\
\end{array}
\end{array}
if z < -1.3e59Initial program 90.0%
Taylor expanded in b around 0 76.6%
Taylor expanded in t around inf 76.6%
*-commutative76.6%
Simplified76.6%
if -1.3e59 < z < 4.70000000000000029e64Initial program 96.6%
Taylor expanded in z around 0 93.9%
if 4.70000000000000029e64 < z Initial program 96.6%
Taylor expanded in b around 0 82.6%
Final simplification87.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* b (- (+ y t) 2.0)))))
(if (<= z -7.2e+57)
(+ t_1 (* z (- 1.0 y)))
(if (<= z 3.8e+64)
(+ t_1 (* a (- 1.0 t)))
(- x (+ (* a (+ t -1.0)) (* z (+ y -1.0))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (b * ((y + t) - 2.0));
double tmp;
if (z <= -7.2e+57) {
tmp = t_1 + (z * (1.0 - y));
} else if (z <= 3.8e+64) {
tmp = t_1 + (a * (1.0 - t));
} 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) :: t_1
real(8) :: tmp
t_1 = x + (b * ((y + t) - 2.0d0))
if (z <= (-7.2d+57)) then
tmp = t_1 + (z * (1.0d0 - y))
else if (z <= 3.8d+64) then
tmp = t_1 + (a * (1.0d0 - t))
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 t_1 = x + (b * ((y + t) - 2.0));
double tmp;
if (z <= -7.2e+57) {
tmp = t_1 + (z * (1.0 - y));
} else if (z <= 3.8e+64) {
tmp = t_1 + (a * (1.0 - t));
} else {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (b * ((y + t) - 2.0)) tmp = 0 if z <= -7.2e+57: tmp = t_1 + (z * (1.0 - y)) elif z <= 3.8e+64: tmp = t_1 + (a * (1.0 - t)) else: tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (z <= -7.2e+57) tmp = Float64(t_1 + Float64(z * Float64(1.0 - y))); elseif (z <= 3.8e+64) tmp = Float64(t_1 + Float64(a * Float64(1.0 - t))); 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) t_1 = x + (b * ((y + t) - 2.0)); tmp = 0.0; if (z <= -7.2e+57) tmp = t_1 + (z * (1.0 - y)); elseif (z <= 3.8e+64) tmp = t_1 + (a * (1.0 - t)); else tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e+57], N[(t$95$1 + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+64], N[(t$95$1 + N[(a * N[(1.0 - t), $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}
t_1 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{+57}:\\
\;\;\;\;t\_1 + z \cdot \left(1 - y\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+64}:\\
\;\;\;\;t\_1 + a \cdot \left(1 - t\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(a \cdot \left(t + -1\right) + z \cdot \left(y + -1\right)\right)\\
\end{array}
\end{array}
if z < -7.2000000000000005e57Initial program 90.0%
Taylor expanded in a around 0 77.4%
if -7.2000000000000005e57 < z < 3.8000000000000001e64Initial program 96.6%
Taylor expanded in z around 0 93.9%
if 3.8000000000000001e64 < z Initial program 96.6%
Taylor expanded in b around 0 82.6%
Final simplification88.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -5.2e+129)
(- x (+ (* a (+ t -1.0)) (* z (+ y -1.0))))
(if (<= a 2.3e+104)
(+ z (+ x (+ (* b (- t 2.0)) (* y (- b z)))))
(+ x (+ z (* a (- 1.0 t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -5.2e+129) {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
} else if (a <= 2.3e+104) {
tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z))));
} else {
tmp = x + (z + (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) :: tmp
if (a <= (-5.2d+129)) then
tmp = x - ((a * (t + (-1.0d0))) + (z * (y + (-1.0d0))))
else if (a <= 2.3d+104) then
tmp = z + (x + ((b * (t - 2.0d0)) + (y * (b - z))))
else
tmp = x + (z + (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 tmp;
if (a <= -5.2e+129) {
tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0)));
} else if (a <= 2.3e+104) {
tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z))));
} else {
tmp = x + (z + (a * (1.0 - t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -5.2e+129: tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))) elif a <= 2.3e+104: tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z)))) else: tmp = x + (z + (a * (1.0 - t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -5.2e+129) tmp = Float64(x - Float64(Float64(a * Float64(t + -1.0)) + Float64(z * Float64(y + -1.0)))); elseif (a <= 2.3e+104) tmp = Float64(z + Float64(x + Float64(Float64(b * Float64(t - 2.0)) + Float64(y * Float64(b - z))))); else tmp = Float64(x + Float64(z + Float64(a * Float64(1.0 - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -5.2e+129) tmp = x - ((a * (t + -1.0)) + (z * (y + -1.0))); elseif (a <= 2.3e+104) tmp = z + (x + ((b * (t - 2.0)) + (y * (b - z)))); else tmp = x + (z + (a * (1.0 - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -5.2e+129], N[(x - N[(N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e+104], N[(z + N[(x + N[(N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision] + N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{+129}:\\
\;\;\;\;x - \left(a \cdot \left(t + -1\right) + z \cdot \left(y + -1\right)\right)\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+104}:\\
\;\;\;\;z + \left(x + \left(b \cdot \left(t - 2\right) + y \cdot \left(b - z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\
\end{array}
\end{array}
if a < -5.20000000000000024e129Initial program 95.0%
Taylor expanded in b around 0 82.0%
if -5.20000000000000024e129 < a < 2.29999999999999985e104Initial program 96.5%
Taylor expanded in y around 0 97.7%
Taylor expanded in z around inf 89.7%
mul-1-neg89.7%
Simplified89.7%
if 2.29999999999999985e104 < a Initial program 90.5%
Taylor expanded in b around 0 87.8%
Taylor expanded in y around 0 90.2%
sub-neg90.2%
sub-neg90.2%
metadata-eval90.2%
distribute-neg-in90.2%
neg-mul-190.2%
remove-double-neg90.2%
distribute-rgt-neg-in90.2%
neg-sub090.2%
+-commutative90.2%
associate--r+90.2%
metadata-eval90.2%
Simplified90.2%
Final simplification88.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- a))))
(if (<= t -3.1e+32)
t_1
(if (<= t -2.25e-48)
z
(if (<= t -2.5e-142) (* y b) (if (<= t 0.055) (+ x a) 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 <= -3.1e+32) {
tmp = t_1;
} else if (t <= -2.25e-48) {
tmp = z;
} else if (t <= -2.5e-142) {
tmp = y * b;
} else if (t <= 0.055) {
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 * -a
if (t <= (-3.1d+32)) then
tmp = t_1
else if (t <= (-2.25d-48)) then
tmp = z
else if (t <= (-2.5d-142)) then
tmp = y * b
else if (t <= 0.055d0) 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 * -a;
double tmp;
if (t <= -3.1e+32) {
tmp = t_1;
} else if (t <= -2.25e-48) {
tmp = z;
} else if (t <= -2.5e-142) {
tmp = y * b;
} else if (t <= 0.055) {
tmp = x + a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * -a tmp = 0 if t <= -3.1e+32: tmp = t_1 elif t <= -2.25e-48: tmp = z elif t <= -2.5e-142: tmp = y * b elif t <= 0.055: tmp = x + a 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 <= -3.1e+32) tmp = t_1; elseif (t <= -2.25e-48) tmp = z; elseif (t <= -2.5e-142) tmp = Float64(y * b); elseif (t <= 0.055) 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 * -a; tmp = 0.0; if (t <= -3.1e+32) tmp = t_1; elseif (t <= -2.25e-48) tmp = z; elseif (t <= -2.5e-142) tmp = y * b; elseif (t <= 0.055) 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 * (-a)), $MachinePrecision]}, If[LessEqual[t, -3.1e+32], t$95$1, If[LessEqual[t, -2.25e-48], z, If[LessEqual[t, -2.5e-142], N[(y * b), $MachinePrecision], If[LessEqual[t, 0.055], N[(x + a), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-a\right)\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.25 \cdot 10^{-48}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-142}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;t \leq 0.055:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.09999999999999993e32 or 0.0550000000000000003 < t Initial program 92.1%
Taylor expanded in t around inf 68.6%
Taylor expanded in b around 0 40.3%
associate-*r*40.3%
mul-1-neg40.3%
Simplified40.3%
if -3.09999999999999993e32 < t < -2.24999999999999994e-48Initial program 91.3%
Taylor expanded in z around inf 52.4%
Taylor expanded in y around 0 31.6%
if -2.24999999999999994e-48 < t < -2.5000000000000001e-142Initial program 99.9%
Taylor expanded in z around 0 75.9%
Taylor expanded in y around inf 48.6%
if -2.5000000000000001e-142 < t < 0.0550000000000000003Initial program 100.0%
Taylor expanded in z around 0 72.6%
Taylor expanded in b around 0 47.1%
Taylor expanded in t around 0 47.1%
neg-mul-147.1%
Simplified47.1%
Final simplification42.5%
(FPCore (x y z t a b) :precision binary64 (if (<= z -5.1e+14) z (if (<= z 1.35e-102) x (if (<= z 6.2e-25) a (if (<= z 5.5e+81) x z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5.1e+14) {
tmp = z;
} else if (z <= 1.35e-102) {
tmp = x;
} else if (z <= 6.2e-25) {
tmp = a;
} else if (z <= 5.5e+81) {
tmp = x;
} else {
tmp = 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 (z <= (-5.1d+14)) then
tmp = z
else if (z <= 1.35d-102) then
tmp = x
else if (z <= 6.2d-25) then
tmp = a
else if (z <= 5.5d+81) then
tmp = x
else
tmp = 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 (z <= -5.1e+14) {
tmp = z;
} else if (z <= 1.35e-102) {
tmp = x;
} else if (z <= 6.2e-25) {
tmp = a;
} else if (z <= 5.5e+81) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -5.1e+14: tmp = z elif z <= 1.35e-102: tmp = x elif z <= 6.2e-25: tmp = a elif z <= 5.5e+81: tmp = x else: tmp = z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5.1e+14) tmp = z; elseif (z <= 1.35e-102) tmp = x; elseif (z <= 6.2e-25) tmp = a; elseif (z <= 5.5e+81) tmp = x; else tmp = z; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -5.1e+14) tmp = z; elseif (z <= 1.35e-102) tmp = x; elseif (z <= 6.2e-25) tmp = a; elseif (z <= 5.5e+81) tmp = x; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5.1e+14], z, If[LessEqual[z, 1.35e-102], x, If[LessEqual[z, 6.2e-25], a, If[LessEqual[z, 5.5e+81], x, z]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{+14}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-102}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-25}:\\
\;\;\;\;a\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+81}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -5.1e14 or 5.5000000000000003e81 < z Initial program 93.6%
Taylor expanded in z around inf 57.7%
Taylor expanded in y around 0 29.8%
if -5.1e14 < z < 1.35e-102 or 6.19999999999999989e-25 < z < 5.5000000000000003e81Initial program 96.1%
Taylor expanded in x around inf 23.7%
if 1.35e-102 < z < 6.19999999999999989e-25Initial program 100.0%
Taylor expanded in a around inf 57.8%
Taylor expanded in t around 0 34.8%
Final simplification27.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -3.15e+88) (not (<= b 2.3e+27))) (+ x (* b (- (+ y t) 2.0))) (+ x (+ z (* a (- 1.0 t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -3.15e+88) || !(b <= 2.3e+27)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + (z + (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) :: tmp
if ((b <= (-3.15d+88)) .or. (.not. (b <= 2.3d+27))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x + (z + (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 tmp;
if ((b <= -3.15e+88) || !(b <= 2.3e+27)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + (z + (a * (1.0 - t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -3.15e+88) or not (b <= 2.3e+27): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x + (z + (a * (1.0 - t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -3.15e+88) || !(b <= 2.3e+27)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x + Float64(z + Float64(a * Float64(1.0 - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -3.15e+88) || ~((b <= 2.3e+27))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x + (z + (a * (1.0 - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -3.15e+88], N[Not[LessEqual[b, 2.3e+27]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.15 \cdot 10^{+88} \lor \neg \left(b \leq 2.3 \cdot 10^{+27}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\
\end{array}
\end{array}
if b < -3.15e88 or 2.3000000000000001e27 < b Initial program 90.0%
Taylor expanded in z around 0 82.3%
Taylor expanded in a around 0 73.2%
if -3.15e88 < b < 2.3000000000000001e27Initial program 98.7%
Taylor expanded in b around 0 86.8%
Taylor expanded in y around 0 69.4%
sub-neg69.4%
sub-neg69.4%
metadata-eval69.4%
distribute-neg-in69.4%
neg-mul-169.4%
remove-double-neg69.4%
distribute-rgt-neg-in69.4%
neg-sub069.4%
+-commutative69.4%
associate--r+69.4%
metadata-eval69.4%
Simplified69.4%
Final simplification70.9%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.3e+144) (* y b) (if (<= y -1.2e-153) x (if (<= y 4200.0) z (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.3e+144) {
tmp = y * b;
} else if (y <= -1.2e-153) {
tmp = x;
} else if (y <= 4200.0) {
tmp = z;
} 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.3d+144)) then
tmp = y * b
else if (y <= (-1.2d-153)) then
tmp = x
else if (y <= 4200.0d0) then
tmp = z
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.3e+144) {
tmp = y * b;
} else if (y <= -1.2e-153) {
tmp = x;
} else if (y <= 4200.0) {
tmp = z;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.3e+144: tmp = y * b elif y <= -1.2e-153: tmp = x elif y <= 4200.0: tmp = z else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.3e+144) tmp = Float64(y * b); elseif (y <= -1.2e-153) tmp = x; elseif (y <= 4200.0) tmp = z; 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.3e+144) tmp = y * b; elseif (y <= -1.2e-153) tmp = x; elseif (y <= 4200.0) tmp = z; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.3e+144], N[(y * b), $MachinePrecision], If[LessEqual[y, -1.2e-153], x, If[LessEqual[y, 4200.0], z, N[(y * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+144}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-153}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4200:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -2.3000000000000001e144 or 4200 < y Initial program 91.1%
Taylor expanded in z around 0 71.3%
Taylor expanded in y around inf 36.5%
if -2.3000000000000001e144 < y < -1.2000000000000001e-153Initial program 100.0%
Taylor expanded in x around inf 25.7%
if -1.2000000000000001e-153 < y < 4200Initial program 95.5%
Taylor expanded in z around inf 29.3%
Taylor expanded in y around 0 28.7%
Final simplification30.5%
(FPCore (x y z t a b) :precision binary64 (if (<= a -7.5e+106) a (if (<= a 3.1e+66) x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -7.5e+106) {
tmp = a;
} else if (a <= 3.1e+66) {
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 <= (-7.5d+106)) then
tmp = a
else if (a <= 3.1d+66) 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 <= -7.5e+106) {
tmp = a;
} else if (a <= 3.1e+66) {
tmp = x;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -7.5e+106: tmp = a elif a <= 3.1e+66: tmp = x else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -7.5e+106) tmp = a; elseif (a <= 3.1e+66) tmp = x; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -7.5e+106) tmp = a; elseif (a <= 3.1e+66) tmp = x; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -7.5e+106], a, If[LessEqual[a, 3.1e+66], x, a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.5 \cdot 10^{+106}:\\
\;\;\;\;a\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+66}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < -7.50000000000000058e106 or 3.10000000000000019e66 < a Initial program 93.4%
Taylor expanded in a around inf 64.7%
Taylor expanded in t around 0 22.1%
if -7.50000000000000058e106 < a < 3.10000000000000019e66Initial program 96.4%
Taylor expanded in x around inf 20.8%
Final simplification21.3%
(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 95.3%
Taylor expanded in a around inf 29.7%
Taylor expanded in t around 0 10.6%
Final simplification10.6%
herbie shell --seed 2024130
(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)))