
(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 18 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))) (* (- (+ y t) 2.0) b))))
(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))) + (((y + t) - 2.0) * b);
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))) + (((y + t) - 2.0) * b);
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))) + (((y + t) - 2.0) * b) 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(Float64(Float64(y + t) - 2.0) * b)) 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))) + (((y + t) - 2.0) * b); 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[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $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) + \left(\left(y + t\right) - 2\right) \cdot b\\
\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 71.7%
Final simplification98.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (- 1.0 t))))
(t_2 (* y (- b z)))
(t_3 (+ x (+ z (* b -2.0)))))
(if (<= y -4.5e+80)
t_2
(if (<= y -2.8e-20)
t_1
(if (<= y -3.65e-100)
t_3
(if (<= y -8.5e-121)
(* t (- b a))
(if (<= y -8.2e-140)
t_3
(if (<= y 6e-152)
t_1
(if (<= y 1.95e-70) t_3 (if (<= y 3.5e+24) 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 = y * (b - z);
double t_3 = x + (z + (b * -2.0));
double tmp;
if (y <= -4.5e+80) {
tmp = t_2;
} else if (y <= -2.8e-20) {
tmp = t_1;
} else if (y <= -3.65e-100) {
tmp = t_3;
} else if (y <= -8.5e-121) {
tmp = t * (b - a);
} else if (y <= -8.2e-140) {
tmp = t_3;
} else if (y <= 6e-152) {
tmp = t_1;
} else if (y <= 1.95e-70) {
tmp = t_3;
} else if (y <= 3.5e+24) {
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 = y * (b - z)
t_3 = x + (z + (b * (-2.0d0)))
if (y <= (-4.5d+80)) then
tmp = t_2
else if (y <= (-2.8d-20)) then
tmp = t_1
else if (y <= (-3.65d-100)) then
tmp = t_3
else if (y <= (-8.5d-121)) then
tmp = t * (b - a)
else if (y <= (-8.2d-140)) then
tmp = t_3
else if (y <= 6d-152) then
tmp = t_1
else if (y <= 1.95d-70) then
tmp = t_3
else if (y <= 3.5d+24) 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 = y * (b - z);
double t_3 = x + (z + (b * -2.0));
double tmp;
if (y <= -4.5e+80) {
tmp = t_2;
} else if (y <= -2.8e-20) {
tmp = t_1;
} else if (y <= -3.65e-100) {
tmp = t_3;
} else if (y <= -8.5e-121) {
tmp = t * (b - a);
} else if (y <= -8.2e-140) {
tmp = t_3;
} else if (y <= 6e-152) {
tmp = t_1;
} else if (y <= 1.95e-70) {
tmp = t_3;
} else if (y <= 3.5e+24) {
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 = y * (b - z) t_3 = x + (z + (b * -2.0)) tmp = 0 if y <= -4.5e+80: tmp = t_2 elif y <= -2.8e-20: tmp = t_1 elif y <= -3.65e-100: tmp = t_3 elif y <= -8.5e-121: tmp = t * (b - a) elif y <= -8.2e-140: tmp = t_3 elif y <= 6e-152: tmp = t_1 elif y <= 1.95e-70: tmp = t_3 elif y <= 3.5e+24: 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(y * Float64(b - z)) t_3 = Float64(x + Float64(z + Float64(b * -2.0))) tmp = 0.0 if (y <= -4.5e+80) tmp = t_2; elseif (y <= -2.8e-20) tmp = t_1; elseif (y <= -3.65e-100) tmp = t_3; elseif (y <= -8.5e-121) tmp = Float64(t * Float64(b - a)); elseif (y <= -8.2e-140) tmp = t_3; elseif (y <= 6e-152) tmp = t_1; elseif (y <= 1.95e-70) tmp = t_3; elseif (y <= 3.5e+24) 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 = y * (b - z); t_3 = x + (z + (b * -2.0)); tmp = 0.0; if (y <= -4.5e+80) tmp = t_2; elseif (y <= -2.8e-20) tmp = t_1; elseif (y <= -3.65e-100) tmp = t_3; elseif (y <= -8.5e-121) tmp = t * (b - a); elseif (y <= -8.2e-140) tmp = t_3; elseif (y <= 6e-152) tmp = t_1; elseif (y <= 1.95e-70) tmp = t_3; elseif (y <= 3.5e+24) 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[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(z + N[(b * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e+80], t$95$2, If[LessEqual[y, -2.8e-20], t$95$1, If[LessEqual[y, -3.65e-100], t$95$3, If[LessEqual[y, -8.5e-121], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.2e-140], t$95$3, If[LessEqual[y, 6e-152], t$95$1, If[LessEqual[y, 1.95e-70], t$95$3, If[LessEqual[y, 3.5e+24], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1 - t\right)\\
t_2 := y \cdot \left(b - z\right)\\
t_3 := x + \left(z + b \cdot -2\right)\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{+80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.65 \cdot 10^{-100}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-121}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-140}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-70}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.50000000000000007e80 or 3.5000000000000002e24 < y Initial program 89.2%
Taylor expanded in y around inf 77.2%
if -4.50000000000000007e80 < y < -2.8000000000000003e-20 or -8.2000000000000003e-140 < y < 6e-152 or 1.9500000000000001e-70 < y < 3.5000000000000002e24Initial program 97.8%
Taylor expanded in b around 0 78.0%
Taylor expanded in a around inf 65.2%
if -2.8000000000000003e-20 < y < -3.6499999999999998e-100 or -8.50000000000000025e-121 < y < -8.2000000000000003e-140 or 6e-152 < y < 1.9500000000000001e-70Initial program 100.0%
Taylor expanded in a around 0 84.6%
Taylor expanded in y around 0 84.6%
associate--l+84.6%
sub-neg84.6%
metadata-eval84.6%
neg-mul-184.6%
Simplified84.6%
Taylor expanded in t around 0 73.5%
if -3.6499999999999998e-100 < y < -8.50000000000000025e-121Initial program 100.0%
Taylor expanded in t around inf 90.6%
Final simplification72.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))) (t_2 (* y (- b z))))
(if (<= y -1.25e+123)
t_2
(if (<= y -7e+72)
t_1
(if (<= y -6.8e+50)
t_2
(if (<= y -6.5e-54)
(+ x a)
(if (<= y -3.4e-122)
t_1
(if (<= y -2.9e-150) z (if (<= y 32000.0) (+ x a) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double t_2 = y * (b - z);
double tmp;
if (y <= -1.25e+123) {
tmp = t_2;
} else if (y <= -7e+72) {
tmp = t_1;
} else if (y <= -6.8e+50) {
tmp = t_2;
} else if (y <= -6.5e-54) {
tmp = x + a;
} else if (y <= -3.4e-122) {
tmp = t_1;
} else if (y <= -2.9e-150) {
tmp = z;
} else if (y <= 32000.0) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (b - a)
t_2 = y * (b - z)
if (y <= (-1.25d+123)) then
tmp = t_2
else if (y <= (-7d+72)) then
tmp = t_1
else if (y <= (-6.8d+50)) then
tmp = t_2
else if (y <= (-6.5d-54)) then
tmp = x + a
else if (y <= (-3.4d-122)) then
tmp = t_1
else if (y <= (-2.9d-150)) then
tmp = z
else if (y <= 32000.0d0) then
tmp = x + a
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double t_2 = y * (b - z);
double tmp;
if (y <= -1.25e+123) {
tmp = t_2;
} else if (y <= -7e+72) {
tmp = t_1;
} else if (y <= -6.8e+50) {
tmp = t_2;
} else if (y <= -6.5e-54) {
tmp = x + a;
} else if (y <= -3.4e-122) {
tmp = t_1;
} else if (y <= -2.9e-150) {
tmp = z;
} else if (y <= 32000.0) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) t_2 = y * (b - z) tmp = 0 if y <= -1.25e+123: tmp = t_2 elif y <= -7e+72: tmp = t_1 elif y <= -6.8e+50: tmp = t_2 elif y <= -6.5e-54: tmp = x + a elif y <= -3.4e-122: tmp = t_1 elif y <= -2.9e-150: tmp = z elif y <= 32000.0: tmp = x + a else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) t_2 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -1.25e+123) tmp = t_2; elseif (y <= -7e+72) tmp = t_1; elseif (y <= -6.8e+50) tmp = t_2; elseif (y <= -6.5e-54) tmp = Float64(x + a); elseif (y <= -3.4e-122) tmp = t_1; elseif (y <= -2.9e-150) tmp = z; elseif (y <= 32000.0) tmp = Float64(x + a); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (b - a); t_2 = y * (b - z); tmp = 0.0; if (y <= -1.25e+123) tmp = t_2; elseif (y <= -7e+72) tmp = t_1; elseif (y <= -6.8e+50) tmp = t_2; elseif (y <= -6.5e-54) tmp = x + a; elseif (y <= -3.4e-122) tmp = t_1; elseif (y <= -2.9e-150) tmp = z; elseif (y <= 32000.0) tmp = x + a; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+123], t$95$2, If[LessEqual[y, -7e+72], t$95$1, If[LessEqual[y, -6.8e+50], t$95$2, If[LessEqual[y, -6.5e-54], N[(x + a), $MachinePrecision], If[LessEqual[y, -3.4e-122], t$95$1, If[LessEqual[y, -2.9e-150], z, If[LessEqual[y, 32000.0], N[(x + a), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
t_2 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -7 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{+50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-54}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-150}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 32000:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.24999999999999994e123 or -7.0000000000000002e72 < y < -6.7999999999999997e50 or 32000 < y Initial program 90.7%
Taylor expanded in y around inf 78.6%
if -1.24999999999999994e123 < y < -7.0000000000000002e72 or -6.49999999999999991e-54 < y < -3.3999999999999998e-122Initial program 95.0%
Taylor expanded in t around inf 63.4%
if -6.7999999999999997e50 < y < -6.49999999999999991e-54 or -2.8999999999999998e-150 < y < 32000Initial program 98.0%
Taylor expanded in b around 0 75.8%
Taylor expanded in a around inf 62.1%
Taylor expanded in t around 0 43.6%
cancel-sign-sub-inv43.6%
metadata-eval43.6%
*-lft-identity43.6%
+-commutative43.6%
Simplified43.6%
if -3.3999999999999998e-122 < y < -2.8999999999999998e-150Initial program 100.0%
Taylor expanded in a around 0 90.4%
Taylor expanded in y around 0 90.4%
associate--l+90.4%
sub-neg90.4%
metadata-eval90.4%
neg-mul-190.4%
Simplified90.4%
Taylor expanded in z around inf 61.1%
Final simplification62.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))) (t_2 (+ x (+ z (* b -2.0)))))
(if (<= y -5.8e+146)
t_1
(if (<= y -6.4e+72)
(* (- (+ y t) 2.0) b)
(if (<= y -5.7e+50)
t_1
(if (<= y -8e-100)
t_2
(if (<= y -3.6e-120)
(* t (- b a))
(if (<= y 60000.0) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = x + (z + (b * -2.0));
double tmp;
if (y <= -5.8e+146) {
tmp = t_1;
} else if (y <= -6.4e+72) {
tmp = ((y + t) - 2.0) * b;
} else if (y <= -5.7e+50) {
tmp = t_1;
} else if (y <= -8e-100) {
tmp = t_2;
} else if (y <= -3.6e-120) {
tmp = t * (b - a);
} else if (y <= 60000.0) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = y * (b - z)
t_2 = x + (z + (b * (-2.0d0)))
if (y <= (-5.8d+146)) then
tmp = t_1
else if (y <= (-6.4d+72)) then
tmp = ((y + t) - 2.0d0) * b
else if (y <= (-5.7d+50)) then
tmp = t_1
else if (y <= (-8d-100)) then
tmp = t_2
else if (y <= (-3.6d-120)) then
tmp = t * (b - a)
else if (y <= 60000.0d0) then
tmp = t_2
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 t_2 = x + (z + (b * -2.0));
double tmp;
if (y <= -5.8e+146) {
tmp = t_1;
} else if (y <= -6.4e+72) {
tmp = ((y + t) - 2.0) * b;
} else if (y <= -5.7e+50) {
tmp = t_1;
} else if (y <= -8e-100) {
tmp = t_2;
} else if (y <= -3.6e-120) {
tmp = t * (b - a);
} else if (y <= 60000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) t_2 = x + (z + (b * -2.0)) tmp = 0 if y <= -5.8e+146: tmp = t_1 elif y <= -6.4e+72: tmp = ((y + t) - 2.0) * b elif y <= -5.7e+50: tmp = t_1 elif y <= -8e-100: tmp = t_2 elif y <= -3.6e-120: tmp = t * (b - a) elif y <= 60000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) t_2 = Float64(x + Float64(z + Float64(b * -2.0))) tmp = 0.0 if (y <= -5.8e+146) tmp = t_1; elseif (y <= -6.4e+72) tmp = Float64(Float64(Float64(y + t) - 2.0) * b); elseif (y <= -5.7e+50) tmp = t_1; elseif (y <= -8e-100) tmp = t_2; elseif (y <= -3.6e-120) tmp = Float64(t * Float64(b - a)); elseif (y <= 60000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); t_2 = x + (z + (b * -2.0)); tmp = 0.0; if (y <= -5.8e+146) tmp = t_1; elseif (y <= -6.4e+72) tmp = ((y + t) - 2.0) * b; elseif (y <= -5.7e+50) tmp = t_1; elseif (y <= -8e-100) tmp = t_2; elseif (y <= -3.6e-120) tmp = t * (b - a); elseif (y <= 60000.0) tmp = t_2; 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]}, Block[{t$95$2 = N[(x + N[(z + N[(b * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+146], t$95$1, If[LessEqual[y, -6.4e+72], N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, -5.7e+50], t$95$1, If[LessEqual[y, -8e-100], t$95$2, If[LessEqual[y, -3.6e-120], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 60000.0], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
t_2 := x + \left(z + b \cdot -2\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.4 \cdot 10^{+72}:\\
\;\;\;\;\left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{elif}\;y \leq -5.7 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8 \cdot 10^{-100}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-120}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;y \leq 60000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.7999999999999997e146 or -6.4000000000000003e72 < y < -5.7000000000000002e50 or 6e4 < y Initial program 90.2%
Taylor expanded in y around inf 79.6%
if -5.7999999999999997e146 < y < -6.4000000000000003e72Initial program 88.9%
Taylor expanded in b around inf 67.1%
if -5.7000000000000002e50 < y < -8.0000000000000002e-100 or -3.6000000000000003e-120 < y < 6e4Initial program 98.4%
Taylor expanded in a around 0 71.8%
Taylor expanded in y around 0 70.7%
associate--l+70.7%
sub-neg70.7%
metadata-eval70.7%
neg-mul-170.7%
Simplified70.7%
Taylor expanded in t around 0 58.3%
if -8.0000000000000002e-100 < y < -3.6000000000000003e-120Initial program 100.0%
Taylor expanded in t around inf 90.6%
Final simplification68.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- (* y z))))
(if (<= t -1.25e+126)
(* t b)
(if (<= t -96000000.0)
(+ x a)
(if (<= t -5.8e-83)
t_1
(if (<= t -2.6e-238)
(+ x a)
(if (<= t 3.5e-288)
t_1
(if (<= t 2.3e+43) (+ x a) (* t (- a))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -(y * z);
double tmp;
if (t <= -1.25e+126) {
tmp = t * b;
} else if (t <= -96000000.0) {
tmp = x + a;
} else if (t <= -5.8e-83) {
tmp = t_1;
} else if (t <= -2.6e-238) {
tmp = x + a;
} else if (t <= 3.5e-288) {
tmp = t_1;
} else if (t <= 2.3e+43) {
tmp = x + a;
} else {
tmp = t * -a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = -(y * z)
if (t <= (-1.25d+126)) then
tmp = t * b
else if (t <= (-96000000.0d0)) then
tmp = x + a
else if (t <= (-5.8d-83)) then
tmp = t_1
else if (t <= (-2.6d-238)) then
tmp = x + a
else if (t <= 3.5d-288) then
tmp = t_1
else if (t <= 2.3d+43) then
tmp = x + a
else
tmp = t * -a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -(y * z);
double tmp;
if (t <= -1.25e+126) {
tmp = t * b;
} else if (t <= -96000000.0) {
tmp = x + a;
} else if (t <= -5.8e-83) {
tmp = t_1;
} else if (t <= -2.6e-238) {
tmp = x + a;
} else if (t <= 3.5e-288) {
tmp = t_1;
} else if (t <= 2.3e+43) {
tmp = x + a;
} else {
tmp = t * -a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = -(y * z) tmp = 0 if t <= -1.25e+126: tmp = t * b elif t <= -96000000.0: tmp = x + a elif t <= -5.8e-83: tmp = t_1 elif t <= -2.6e-238: tmp = x + a elif t <= 3.5e-288: tmp = t_1 elif t <= 2.3e+43: tmp = x + a else: tmp = t * -a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(-Float64(y * z)) tmp = 0.0 if (t <= -1.25e+126) tmp = Float64(t * b); elseif (t <= -96000000.0) tmp = Float64(x + a); elseif (t <= -5.8e-83) tmp = t_1; elseif (t <= -2.6e-238) tmp = Float64(x + a); elseif (t <= 3.5e-288) tmp = t_1; elseif (t <= 2.3e+43) tmp = Float64(x + a); else tmp = Float64(t * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = -(y * z); tmp = 0.0; if (t <= -1.25e+126) tmp = t * b; elseif (t <= -96000000.0) tmp = x + a; elseif (t <= -5.8e-83) tmp = t_1; elseif (t <= -2.6e-238) tmp = x + a; elseif (t <= 3.5e-288) tmp = t_1; elseif (t <= 2.3e+43) tmp = x + a; else tmp = t * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = (-N[(y * z), $MachinePrecision])}, If[LessEqual[t, -1.25e+126], N[(t * b), $MachinePrecision], If[LessEqual[t, -96000000.0], N[(x + a), $MachinePrecision], If[LessEqual[t, -5.8e-83], t$95$1, If[LessEqual[t, -2.6e-238], N[(x + a), $MachinePrecision], If[LessEqual[t, 3.5e-288], t$95$1, If[LessEqual[t, 2.3e+43], N[(x + a), $MachinePrecision], N[(t * (-a)), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -y \cdot z\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+126}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;t \leq -96000000:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{-83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-238}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+43}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-a\right)\\
\end{array}
\end{array}
if t < -1.24999999999999994e126Initial program 84.6%
Taylor expanded in a around 0 77.2%
Taylor expanded in t around inf 51.0%
if -1.24999999999999994e126 < t < -9.6e7 or -5.7999999999999998e-83 < t < -2.6000000000000001e-238 or 3.5000000000000003e-288 < t < 2.3000000000000002e43Initial program 96.9%
Taylor expanded in b around 0 73.0%
Taylor expanded in a around inf 46.8%
Taylor expanded in t around 0 42.8%
cancel-sign-sub-inv42.8%
metadata-eval42.8%
*-lft-identity42.8%
+-commutative42.8%
Simplified42.8%
if -9.6e7 < t < -5.7999999999999998e-83 or -2.6000000000000001e-238 < t < 3.5000000000000003e-288Initial program 100.0%
Taylor expanded in b around 0 74.8%
Taylor expanded in y around inf 48.4%
mul-1-neg48.4%
distribute-rgt-neg-in48.4%
Simplified48.4%
if 2.3000000000000002e43 < t Initial program 90.6%
Taylor expanded in t around inf 78.5%
Taylor expanded in b around 0 51.6%
mul-1-neg51.6%
distribute-rgt-neg-in51.6%
Simplified51.6%
Final simplification46.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* (- (+ y t) 2.0) b))))
(if (<= b -4.8e+20)
t_1
(if (<= b 5e-43)
(+ x (+ a (* z (- 1.0 y))))
(if (<= b 5.1e+95)
(+ x (* a (- 1.0 t)))
(if (<= b 3.8e+119)
(+ x (+ a (* b (+ y -2.0))))
(if (<= b 1.52e+143) (+ x (+ z (* b (+ t -2.0)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -4.8e+20) {
tmp = t_1;
} else if (b <= 5e-43) {
tmp = x + (a + (z * (1.0 - y)));
} else if (b <= 5.1e+95) {
tmp = x + (a * (1.0 - t));
} else if (b <= 3.8e+119) {
tmp = x + (a + (b * (y + -2.0)));
} else if (b <= 1.52e+143) {
tmp = x + (z + (b * (t + -2.0)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y + t) - 2.0d0) * b)
if (b <= (-4.8d+20)) then
tmp = t_1
else if (b <= 5d-43) then
tmp = x + (a + (z * (1.0d0 - y)))
else if (b <= 5.1d+95) then
tmp = x + (a * (1.0d0 - t))
else if (b <= 3.8d+119) then
tmp = x + (a + (b * (y + (-2.0d0))))
else if (b <= 1.52d+143) then
tmp = x + (z + (b * (t + (-2.0d0))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -4.8e+20) {
tmp = t_1;
} else if (b <= 5e-43) {
tmp = x + (a + (z * (1.0 - y)));
} else if (b <= 5.1e+95) {
tmp = x + (a * (1.0 - t));
} else if (b <= 3.8e+119) {
tmp = x + (a + (b * (y + -2.0)));
} else if (b <= 1.52e+143) {
tmp = x + (z + (b * (t + -2.0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((y + t) - 2.0) * b) tmp = 0 if b <= -4.8e+20: tmp = t_1 elif b <= 5e-43: tmp = x + (a + (z * (1.0 - y))) elif b <= 5.1e+95: tmp = x + (a * (1.0 - t)) elif b <= 3.8e+119: tmp = x + (a + (b * (y + -2.0))) elif b <= 1.52e+143: tmp = x + (z + (b * (t + -2.0))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (b <= -4.8e+20) tmp = t_1; elseif (b <= 5e-43) tmp = Float64(x + Float64(a + Float64(z * Float64(1.0 - y)))); elseif (b <= 5.1e+95) tmp = Float64(x + Float64(a * Float64(1.0 - t))); elseif (b <= 3.8e+119) tmp = Float64(x + Float64(a + Float64(b * Float64(y + -2.0)))); elseif (b <= 1.52e+143) tmp = Float64(x + Float64(z + Float64(b * Float64(t + -2.0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((y + t) - 2.0) * b); tmp = 0.0; if (b <= -4.8e+20) tmp = t_1; elseif (b <= 5e-43) tmp = x + (a + (z * (1.0 - y))); elseif (b <= 5.1e+95) tmp = x + (a * (1.0 - t)); elseif (b <= 3.8e+119) tmp = x + (a + (b * (y + -2.0))); elseif (b <= 1.52e+143) tmp = x + (z + (b * (t + -2.0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.8e+20], t$95$1, If[LessEqual[b, 5e-43], N[(x + N[(a + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.1e+95], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+119], N[(x + N[(a + N[(b * N[(y + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.52e+143], N[(x + N[(z + N[(b * N[(t + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-43}:\\
\;\;\;\;x + \left(a + z \cdot \left(1 - y\right)\right)\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{+95}:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+119}:\\
\;\;\;\;x + \left(a + b \cdot \left(y + -2\right)\right)\\
\mathbf{elif}\;b \leq 1.52 \cdot 10^{+143}:\\
\;\;\;\;x + \left(z + b \cdot \left(t + -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.8e20 or 1.51999999999999996e143 < b Initial program 86.6%
Taylor expanded in a around 0 82.0%
Taylor expanded in z around 0 82.2%
if -4.8e20 < b < 5.00000000000000019e-43Initial program 100.0%
Taylor expanded in b around 0 96.1%
Taylor expanded in t around 0 82.1%
+-commutative82.1%
sub-neg82.1%
metadata-eval82.1%
neg-mul-182.1%
unsub-neg82.1%
Simplified82.1%
if 5.00000000000000019e-43 < b < 5.10000000000000003e95Initial program 100.0%
Taylor expanded in b around 0 77.8%
Taylor expanded in a around inf 55.9%
if 5.10000000000000003e95 < b < 3.7999999999999999e119Initial program 100.0%
Taylor expanded in z around 0 88.4%
Taylor expanded in t around 0 64.8%
associate--l+64.8%
sub-neg64.8%
metadata-eval64.8%
neg-mul-164.8%
Simplified64.8%
if 3.7999999999999999e119 < b < 1.51999999999999996e143Initial program 85.7%
Taylor expanded in a around 0 58.2%
Taylor expanded in y around 0 73.3%
associate--l+73.3%
sub-neg73.3%
metadata-eval73.3%
neg-mul-173.3%
Simplified73.3%
Final simplification79.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- 1.0 y))) (t_2 (* (- (+ y t) 2.0) b)))
(if (<= b -1.18e+17)
t_2
(if (<= b -6.5e-251)
t_1
(if (<= b 2.55e-303)
(+ x a)
(if (<= b 2.2e-195) t_1 (if (<= b 1.9e-31) (+ x a) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double t_2 = ((y + t) - 2.0) * b;
double tmp;
if (b <= -1.18e+17) {
tmp = t_2;
} else if (b <= -6.5e-251) {
tmp = t_1;
} else if (b <= 2.55e-303) {
tmp = x + a;
} else if (b <= 2.2e-195) {
tmp = t_1;
} else if (b <= 1.9e-31) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (1.0d0 - y)
t_2 = ((y + t) - 2.0d0) * b
if (b <= (-1.18d+17)) then
tmp = t_2
else if (b <= (-6.5d-251)) then
tmp = t_1
else if (b <= 2.55d-303) then
tmp = x + a
else if (b <= 2.2d-195) then
tmp = t_1
else if (b <= 1.9d-31) then
tmp = x + a
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double t_2 = ((y + t) - 2.0) * b;
double tmp;
if (b <= -1.18e+17) {
tmp = t_2;
} else if (b <= -6.5e-251) {
tmp = t_1;
} else if (b <= 2.55e-303) {
tmp = x + a;
} else if (b <= 2.2e-195) {
tmp = t_1;
} else if (b <= 1.9e-31) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (1.0 - y) t_2 = ((y + t) - 2.0) * b tmp = 0 if b <= -1.18e+17: tmp = t_2 elif b <= -6.5e-251: tmp = t_1 elif b <= 2.55e-303: tmp = x + a elif b <= 2.2e-195: tmp = t_1 elif b <= 1.9e-31: tmp = x + a else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(1.0 - y)) t_2 = Float64(Float64(Float64(y + t) - 2.0) * b) tmp = 0.0 if (b <= -1.18e+17) tmp = t_2; elseif (b <= -6.5e-251) tmp = t_1; elseif (b <= 2.55e-303) tmp = Float64(x + a); elseif (b <= 2.2e-195) tmp = t_1; elseif (b <= 1.9e-31) tmp = Float64(x + a); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (1.0 - y); t_2 = ((y + t) - 2.0) * b; tmp = 0.0; if (b <= -1.18e+17) tmp = t_2; elseif (b <= -6.5e-251) tmp = t_1; elseif (b <= 2.55e-303) tmp = x + a; elseif (b <= 2.2e-195) tmp = t_1; elseif (b <= 1.9e-31) tmp = x + a; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.18e+17], t$95$2, If[LessEqual[b, -6.5e-251], t$95$1, If[LessEqual[b, 2.55e-303], N[(x + a), $MachinePrecision], If[LessEqual[b, 2.2e-195], t$95$1, If[LessEqual[b, 1.9e-31], N[(x + a), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(1 - y\right)\\
t_2 := \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -1.18 \cdot 10^{+17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{-303}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-195}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-31}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.18e17 or 1.9e-31 < b Initial program 89.2%
Taylor expanded in b around inf 64.4%
if -1.18e17 < b < -6.5000000000000002e-251 or 2.55e-303 < b < 2.20000000000000005e-195Initial program 100.0%
Taylor expanded in z around inf 57.1%
if -6.5000000000000002e-251 < b < 2.55e-303 or 2.20000000000000005e-195 < b < 1.9e-31Initial program 100.0%
Taylor expanded in b around 0 97.9%
Taylor expanded in a around inf 71.1%
Taylor expanded in t around 0 57.5%
cancel-sign-sub-inv57.5%
metadata-eval57.5%
*-lft-identity57.5%
+-commutative57.5%
Simplified57.5%
Final simplification60.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -8e+98)
t_1
(if (<= t -2.8e-238)
(+ x a)
(if (<= t 1.82e-283) (- (* y z)) (if (<= t 1.3e+42) (+ 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 <= -8e+98) {
tmp = t_1;
} else if (t <= -2.8e-238) {
tmp = x + a;
} else if (t <= 1.82e-283) {
tmp = -(y * z);
} else if (t <= 1.3e+42) {
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 <= (-8d+98)) then
tmp = t_1
else if (t <= (-2.8d-238)) then
tmp = x + a
else if (t <= 1.82d-283) then
tmp = -(y * z)
else if (t <= 1.3d+42) 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 <= -8e+98) {
tmp = t_1;
} else if (t <= -2.8e-238) {
tmp = x + a;
} else if (t <= 1.82e-283) {
tmp = -(y * z);
} else if (t <= 1.3e+42) {
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 <= -8e+98: tmp = t_1 elif t <= -2.8e-238: tmp = x + a elif t <= 1.82e-283: tmp = -(y * z) elif t <= 1.3e+42: 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 <= -8e+98) tmp = t_1; elseif (t <= -2.8e-238) tmp = Float64(x + a); elseif (t <= 1.82e-283) tmp = Float64(-Float64(y * z)); elseif (t <= 1.3e+42) 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 <= -8e+98) tmp = t_1; elseif (t <= -2.8e-238) tmp = x + a; elseif (t <= 1.82e-283) tmp = -(y * z); elseif (t <= 1.3e+42) 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, -8e+98], t$95$1, If[LessEqual[t, -2.8e-238], N[(x + a), $MachinePrecision], If[LessEqual[t, 1.82e-283], (-N[(y * z), $MachinePrecision]), If[LessEqual[t, 1.3e+42], 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 -8 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-238}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 1.82 \cdot 10^{-283}:\\
\;\;\;\;-y \cdot z\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+42}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.99999999999999998e98 or 1.29999999999999995e42 < t Initial program 89.7%
Taylor expanded in t around inf 73.8%
if -7.99999999999999998e98 < t < -2.80000000000000004e-238 or 1.81999999999999994e-283 < t < 1.29999999999999995e42Initial program 97.1%
Taylor expanded in b around 0 72.5%
Taylor expanded in a around inf 42.6%
Taylor expanded in t around 0 40.9%
cancel-sign-sub-inv40.9%
metadata-eval40.9%
*-lft-identity40.9%
+-commutative40.9%
Simplified40.9%
if -2.80000000000000004e-238 < t < 1.81999999999999994e-283Initial program 100.0%
Taylor expanded in b around 0 79.7%
Taylor expanded in y around inf 48.3%
mul-1-neg48.3%
distribute-rgt-neg-in48.3%
Simplified48.3%
Final simplification53.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -8.6e+20) (not (<= b 1.15e+70))) (+ (+ x (* (- (+ y t) 2.0) b)) (* a (- 1.0 t))) (- x (+ (* (+ y -1.0) z) (* (+ t -1.0) a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -8.6e+20) || !(b <= 1.15e+70)) {
tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t));
} else {
tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-8.6d+20)) .or. (.not. (b <= 1.15d+70))) then
tmp = (x + (((y + t) - 2.0d0) * b)) + (a * (1.0d0 - t))
else
tmp = x - (((y + (-1.0d0)) * z) + ((t + (-1.0d0)) * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -8.6e+20) || !(b <= 1.15e+70)) {
tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t));
} else {
tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -8.6e+20) or not (b <= 1.15e+70): tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t)) else: tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -8.6e+20) || !(b <= 1.15e+70)) tmp = Float64(Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) + Float64(a * Float64(1.0 - t))); else tmp = Float64(x - Float64(Float64(Float64(y + -1.0) * z) + Float64(Float64(t + -1.0) * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -8.6e+20) || ~((b <= 1.15e+70))) tmp = (x + (((y + t) - 2.0) * b)) + (a * (1.0 - t)); else tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -8.6e+20], N[Not[LessEqual[b, 1.15e+70]], $MachinePrecision]], N[(N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.6 \cdot 10^{+20} \lor \neg \left(b \leq 1.15 \cdot 10^{+70}\right):\\
\;\;\;\;\left(x + \left(\left(y + t\right) - 2\right) \cdot b\right) + a \cdot \left(1 - t\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y + -1\right) \cdot z + \left(t + -1\right) \cdot a\right)\\
\end{array}
\end{array}
if b < -8.6e20 or 1.14999999999999997e70 < b Initial program 87.9%
Taylor expanded in z around 0 86.3%
if -8.6e20 < b < 1.14999999999999997e70Initial program 100.0%
Taylor expanded in b around 0 93.8%
Final simplification90.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- 1.0 y))))
(if (<= z -3.3e+93)
t_1
(if (<= z -6.8e-75)
(+ x (* a (- 1.0 t)))
(if (<= z 1.65e+190) (+ x (* (- (+ y t) 2.0) b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double tmp;
if (z <= -3.3e+93) {
tmp = t_1;
} else if (z <= -6.8e-75) {
tmp = x + (a * (1.0 - t));
} else if (z <= 1.65e+190) {
tmp = x + (((y + t) - 2.0) * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = z * (1.0d0 - y)
if (z <= (-3.3d+93)) then
tmp = t_1
else if (z <= (-6.8d-75)) then
tmp = x + (a * (1.0d0 - t))
else if (z <= 1.65d+190) then
tmp = x + (((y + t) - 2.0d0) * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double tmp;
if (z <= -3.3e+93) {
tmp = t_1;
} else if (z <= -6.8e-75) {
tmp = x + (a * (1.0 - t));
} else if (z <= 1.65e+190) {
tmp = x + (((y + t) - 2.0) * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (1.0 - y) tmp = 0 if z <= -3.3e+93: tmp = t_1 elif z <= -6.8e-75: tmp = x + (a * (1.0 - t)) elif z <= 1.65e+190: tmp = x + (((y + t) - 2.0) * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(1.0 - y)) tmp = 0.0 if (z <= -3.3e+93) tmp = t_1; elseif (z <= -6.8e-75) tmp = Float64(x + Float64(a * Float64(1.0 - t))); elseif (z <= 1.65e+190) tmp = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (1.0 - y); tmp = 0.0; if (z <= -3.3e+93) tmp = t_1; elseif (z <= -6.8e-75) tmp = x + (a * (1.0 - t)); elseif (z <= 1.65e+190) tmp = x + (((y + t) - 2.0) * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+93], t$95$1, If[LessEqual[z, -6.8e-75], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e+190], N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(1 - y\right)\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-75}:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+190}:\\
\;\;\;\;x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.30000000000000009e93 or 1.65e190 < z Initial program 89.3%
Taylor expanded in z around inf 71.4%
if -3.30000000000000009e93 < z < -6.8000000000000003e-75Initial program 96.8%
Taylor expanded in b around 0 84.3%
Taylor expanded in a around inf 65.3%
if -6.8000000000000003e-75 < z < 1.65e190Initial program 96.7%
Taylor expanded in a around 0 77.3%
Taylor expanded in z around 0 66.8%
Final simplification68.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.5e+45) (not (<= b 1.35e+121))) (+ x (* (- (+ y t) 2.0) b)) (- x (+ (* (+ y -1.0) z) (* (+ t -1.0) a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.5e+45) || !(b <= 1.35e+121)) {
tmp = x + (((y + t) - 2.0) * b);
} else {
tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.5d+45)) .or. (.not. (b <= 1.35d+121))) then
tmp = x + (((y + t) - 2.0d0) * b)
else
tmp = x - (((y + (-1.0d0)) * z) + ((t + (-1.0d0)) * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.5e+45) || !(b <= 1.35e+121)) {
tmp = x + (((y + t) - 2.0) * b);
} else {
tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.5e+45) or not (b <= 1.35e+121): tmp = x + (((y + t) - 2.0) * b) else: tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.5e+45) || !(b <= 1.35e+121)) tmp = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)); else tmp = Float64(x - Float64(Float64(Float64(y + -1.0) * z) + Float64(Float64(t + -1.0) * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.5e+45) || ~((b <= 1.35e+121))) tmp = x + (((y + t) - 2.0) * b); else tmp = x - (((y + -1.0) * z) + ((t + -1.0) * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.5e+45], N[Not[LessEqual[b, 1.35e+121]], $MachinePrecision]], N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.5 \cdot 10^{+45} \lor \neg \left(b \leq 1.35 \cdot 10^{+121}\right):\\
\;\;\;\;x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y + -1\right) \cdot z + \left(t + -1\right) \cdot a\right)\\
\end{array}
\end{array}
if b < -1.50000000000000005e45 or 1.3500000000000001e121 < b Initial program 85.1%
Taylor expanded in a around 0 82.4%
Taylor expanded in z around 0 84.4%
if -1.50000000000000005e45 < b < 1.3500000000000001e121Initial program 100.0%
Taylor expanded in b around 0 90.7%
Final simplification88.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.9e+18) (not (<= b 1e-30))) (+ x (* (- (+ y t) 2.0) b)) (+ x (+ a (* z (- 1.0 y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.9e+18) || !(b <= 1e-30)) {
tmp = x + (((y + t) - 2.0) * b);
} else {
tmp = x + (a + (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 ((b <= (-1.9d+18)) .or. (.not. (b <= 1d-30))) then
tmp = x + (((y + t) - 2.0d0) * b)
else
tmp = x + (a + (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 ((b <= -1.9e+18) || !(b <= 1e-30)) {
tmp = x + (((y + t) - 2.0) * b);
} else {
tmp = x + (a + (z * (1.0 - y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.9e+18) or not (b <= 1e-30): tmp = x + (((y + t) - 2.0) * b) else: tmp = x + (a + (z * (1.0 - y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.9e+18) || !(b <= 1e-30)) tmp = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)); else tmp = Float64(x + Float64(a + Float64(z * Float64(1.0 - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.9e+18) || ~((b <= 1e-30))) tmp = x + (((y + t) - 2.0) * b); else tmp = x + (a + (z * (1.0 - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.9e+18], N[Not[LessEqual[b, 1e-30]], $MachinePrecision]], N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(x + N[(a + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.9 \cdot 10^{+18} \lor \neg \left(b \leq 10^{-30}\right):\\
\;\;\;\;x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;x + \left(a + z \cdot \left(1 - y\right)\right)\\
\end{array}
\end{array}
if b < -1.9e18 or 1e-30 < b Initial program 89.2%
Taylor expanded in a around 0 78.3%
Taylor expanded in z around 0 73.9%
if -1.9e18 < b < 1e-30Initial program 100.0%
Taylor expanded in b around 0 96.2%
Taylor expanded in t around 0 81.2%
+-commutative81.2%
sub-neg81.2%
metadata-eval81.2%
neg-mul-181.2%
unsub-neg81.2%
Simplified81.2%
Final simplification77.5%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1.05e+124) (* t b) (if (<= t 2.6e+43) (+ x a) (* t (- a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.05e+124) {
tmp = t * b;
} else if (t <= 2.6e+43) {
tmp = x + a;
} else {
tmp = 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 (t <= (-1.05d+124)) then
tmp = t * b
else if (t <= 2.6d+43) then
tmp = x + a
else
tmp = 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 (t <= -1.05e+124) {
tmp = t * b;
} else if (t <= 2.6e+43) {
tmp = x + a;
} else {
tmp = t * -a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.05e+124: tmp = t * b elif t <= 2.6e+43: tmp = x + a else: tmp = t * -a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.05e+124) tmp = Float64(t * b); elseif (t <= 2.6e+43) tmp = Float64(x + a); else tmp = Float64(t * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.05e+124) tmp = t * b; elseif (t <= 2.6e+43) tmp = x + a; else tmp = t * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.05e+124], N[(t * b), $MachinePrecision], If[LessEqual[t, 2.6e+43], N[(x + a), $MachinePrecision], N[(t * (-a)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+124}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+43}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-a\right)\\
\end{array}
\end{array}
if t < -1.05000000000000006e124Initial program 84.6%
Taylor expanded in a around 0 77.2%
Taylor expanded in t around inf 51.0%
if -1.05000000000000006e124 < t < 2.60000000000000021e43Initial program 97.6%
Taylor expanded in b around 0 73.4%
Taylor expanded in a around inf 40.0%
Taylor expanded in t around 0 36.9%
cancel-sign-sub-inv36.9%
metadata-eval36.9%
*-lft-identity36.9%
+-commutative36.9%
Simplified36.9%
if 2.60000000000000021e43 < t Initial program 90.6%
Taylor expanded in t around inf 78.5%
Taylor expanded in b around 0 51.6%
mul-1-neg51.6%
distribute-rgt-neg-in51.6%
Simplified51.6%
Final simplification42.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -8e+123) (not (<= t 2.3e+42))) (* t b) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -8e+123) || !(t <= 2.3e+42)) {
tmp = t * 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 ((t <= (-8d+123)) .or. (.not. (t <= 2.3d+42))) then
tmp = t * 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 ((t <= -8e+123) || !(t <= 2.3e+42)) {
tmp = t * b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -8e+123) or not (t <= 2.3e+42): tmp = t * b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -8e+123) || !(t <= 2.3e+42)) tmp = Float64(t * b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -8e+123) || ~((t <= 2.3e+42))) tmp = t * b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -8e+123], N[Not[LessEqual[t, 2.3e+42]], $MachinePrecision]], N[(t * b), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+123} \lor \neg \left(t \leq 2.3 \cdot 10^{+42}\right):\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -7.99999999999999982e123 or 2.3e42 < t Initial program 89.1%
Taylor expanded in a around 0 66.0%
Taylor expanded in t around inf 39.4%
if -7.99999999999999982e123 < t < 2.3e42Initial program 97.6%
Taylor expanded in x around inf 23.9%
Final simplification29.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2e+128) (not (<= t 1.35e+42))) (* t b) (+ x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2e+128) || !(t <= 1.35e+42)) {
tmp = t * b;
} else {
tmp = x + a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-2d+128)) .or. (.not. (t <= 1.35d+42))) then
tmp = t * b
else
tmp = x + a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2e+128) || !(t <= 1.35e+42)) {
tmp = t * b;
} else {
tmp = x + a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2e+128) or not (t <= 1.35e+42): tmp = t * b else: tmp = x + a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2e+128) || !(t <= 1.35e+42)) tmp = Float64(t * b); else tmp = Float64(x + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -2e+128) || ~((t <= 1.35e+42))) tmp = t * b; else tmp = x + a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2e+128], N[Not[LessEqual[t, 1.35e+42]], $MachinePrecision]], N[(t * b), $MachinePrecision], N[(x + a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+128} \lor \neg \left(t \leq 1.35 \cdot 10^{+42}\right):\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;x + a\\
\end{array}
\end{array}
if t < -2.0000000000000002e128 or 1.35e42 < t Initial program 89.1%
Taylor expanded in a around 0 66.0%
Taylor expanded in t around inf 39.4%
if -2.0000000000000002e128 < t < 1.35e42Initial program 97.6%
Taylor expanded in b around 0 74.2%
Taylor expanded in a around inf 40.4%
Taylor expanded in t around 0 37.3%
cancel-sign-sub-inv37.3%
metadata-eval37.3%
*-lft-identity37.3%
+-commutative37.3%
Simplified37.3%
Final simplification38.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -9e+143) (* t b) (if (<= b 8.6e-33) x (* y b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9e+143) {
tmp = t * b;
} else if (b <= 8.6e-33) {
tmp = x;
} 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 (b <= (-9d+143)) then
tmp = t * b
else if (b <= 8.6d-33) then
tmp = x
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 (b <= -9e+143) {
tmp = t * b;
} else if (b <= 8.6e-33) {
tmp = x;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9e+143: tmp = t * b elif b <= 8.6e-33: tmp = x else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9e+143) tmp = Float64(t * b); elseif (b <= 8.6e-33) tmp = x; else tmp = Float64(y * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9e+143) tmp = t * b; elseif (b <= 8.6e-33) tmp = x; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9e+143], N[(t * b), $MachinePrecision], If[LessEqual[b, 8.6e-33], x, N[(y * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+143}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-33}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if b < -8.9999999999999993e143Initial program 82.9%
Taylor expanded in a around 0 77.8%
Taylor expanded in t around inf 44.7%
if -8.9999999999999993e143 < b < 8.60000000000000062e-33Initial program 100.0%
Taylor expanded in x around inf 25.4%
if 8.60000000000000062e-33 < b Initial program 88.1%
Taylor expanded in z around 0 80.7%
Taylor expanded in y around inf 32.6%
Final simplification29.9%
(FPCore (x y z t a b) :precision binary64 (if (<= z -2.95e+178) z (if (<= z 2.9e+76) x z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.95e+178) {
tmp = z;
} else if (z <= 2.9e+76) {
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 <= (-2.95d+178)) then
tmp = z
else if (z <= 2.9d+76) 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 <= -2.95e+178) {
tmp = z;
} else if (z <= 2.9e+76) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.95e+178: tmp = z elif z <= 2.9e+76: tmp = x else: tmp = z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.95e+178) tmp = z; elseif (z <= 2.9e+76) tmp = x; else tmp = z; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.95e+178) tmp = z; elseif (z <= 2.9e+76) tmp = x; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.95e+178], z, If[LessEqual[z, 2.9e+76], x, z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.95 \cdot 10^{+178}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+76}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -2.94999999999999992e178 or 2.9000000000000002e76 < z Initial program 90.2%
Taylor expanded in a around 0 75.1%
Taylor expanded in y around 0 46.7%
associate--l+46.7%
sub-neg46.7%
metadata-eval46.7%
neg-mul-146.7%
Simplified46.7%
Taylor expanded in z around inf 27.5%
if -2.94999999999999992e178 < z < 2.9000000000000002e76Initial program 96.6%
Taylor expanded in x around inf 24.4%
Final simplification25.4%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 94.5%
Taylor expanded in x around inf 17.7%
Final simplification17.7%
herbie shell --seed 2024095
(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)))