
(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 (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 96.9%
+-commutative96.9%
fma-define98.4%
associate--l+98.4%
sub-neg98.4%
metadata-eval98.4%
sub-neg98.4%
associate-+l-98.4%
fma-neg98.8%
sub-neg98.8%
metadata-eval98.8%
remove-double-neg98.8%
sub-neg98.8%
metadata-eval98.8%
Simplified98.8%
Final simplification98.8%
(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 (+ a (+ x (+ (* b (- y 2.0)) (* 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 = a + (x + ((b * (y - 2.0)) + (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 = a + (x + ((b * (y - 2.0)) + (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 = a + (x + ((b * (y - 2.0)) + (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(a + Float64(x + Float64(Float64(b * Float64(y - 2.0)) + 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 = a + (x + ((b * (y - 2.0)) + (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[(a + N[(x + N[(N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}:\\
\;\;\;\;a + \left(x + \left(b \cdot \left(y - 2\right) + t \cdot \left(b - a\right)\right)\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 0 37.5%
Taylor expanded in z around 0 62.5%
Final simplification98.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))) (t_2 (* y (- b z))))
(if (<= y -66000000.0)
t_2
(if (<= y -1.75e-56)
(+ x z)
(if (<= y 2e-171)
t_1
(if (<= y 1.06e-95) (+ x z) (if (<= y 5000000000.0) t_1 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 <= -66000000.0) {
tmp = t_2;
} else if (y <= -1.75e-56) {
tmp = x + z;
} else if (y <= 2e-171) {
tmp = t_1;
} else if (y <= 1.06e-95) {
tmp = x + z;
} else if (y <= 5000000000.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 = t * (b - a)
t_2 = y * (b - z)
if (y <= (-66000000.0d0)) then
tmp = t_2
else if (y <= (-1.75d-56)) then
tmp = x + z
else if (y <= 2d-171) then
tmp = t_1
else if (y <= 1.06d-95) then
tmp = x + z
else if (y <= 5000000000.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 = t * (b - a);
double t_2 = y * (b - z);
double tmp;
if (y <= -66000000.0) {
tmp = t_2;
} else if (y <= -1.75e-56) {
tmp = x + z;
} else if (y <= 2e-171) {
tmp = t_1;
} else if (y <= 1.06e-95) {
tmp = x + z;
} else if (y <= 5000000000.0) {
tmp = t_1;
} 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 <= -66000000.0: tmp = t_2 elif y <= -1.75e-56: tmp = x + z elif y <= 2e-171: tmp = t_1 elif y <= 1.06e-95: tmp = x + z elif y <= 5000000000.0: tmp = t_1 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 <= -66000000.0) tmp = t_2; elseif (y <= -1.75e-56) tmp = Float64(x + z); elseif (y <= 2e-171) tmp = t_1; elseif (y <= 1.06e-95) tmp = Float64(x + z); elseif (y <= 5000000000.0) tmp = t_1; 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 <= -66000000.0) tmp = t_2; elseif (y <= -1.75e-56) tmp = x + z; elseif (y <= 2e-171) tmp = t_1; elseif (y <= 1.06e-95) tmp = x + z; elseif (y <= 5000000000.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[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -66000000.0], t$95$2, If[LessEqual[y, -1.75e-56], N[(x + z), $MachinePrecision], If[LessEqual[y, 2e-171], t$95$1, If[LessEqual[y, 1.06e-95], N[(x + z), $MachinePrecision], If[LessEqual[y, 5000000000.0], t$95$1, 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 -66000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.75 \cdot 10^{-56}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-171}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{-95}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 5000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -6.6e7 or 5e9 < y Initial program 95.5%
Taylor expanded in y around inf 67.7%
if -6.6e7 < y < -1.7499999999999999e-56 or 2e-171 < y < 1.06e-95Initial program 99.9%
Taylor expanded in b around 0 69.4%
Taylor expanded in t around 0 65.8%
associate--r+65.8%
sub-neg65.8%
neg-mul-165.8%
remove-double-neg65.8%
sub-neg65.8%
metadata-eval65.8%
Simplified65.8%
Taylor expanded in y around 0 65.8%
sub-neg65.8%
neg-mul-165.8%
remove-double-neg65.8%
associate-+l+65.8%
Simplified65.8%
Taylor expanded in a around 0 66.0%
if -1.7499999999999999e-56 < y < 2e-171 or 1.06e-95 < y < 5e9Initial program 97.9%
Taylor expanded in t around inf 52.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -8.2e+110)
t_1
(if (<= b -5.6e-77)
(* a (- 1.0 t))
(if (<= b 2.02e-227)
(+ a (+ x z))
(if (<= b 1.75e-28) (* z (- 1.0 y)) 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 <= -8.2e+110) {
tmp = t_1;
} else if (b <= -5.6e-77) {
tmp = a * (1.0 - t);
} else if (b <= 2.02e-227) {
tmp = a + (x + z);
} else if (b <= 1.75e-28) {
tmp = z * (1.0 - y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((y + t) - 2.0d0)
if (b <= (-8.2d+110)) then
tmp = t_1
else if (b <= (-5.6d-77)) then
tmp = a * (1.0d0 - t)
else if (b <= 2.02d-227) then
tmp = a + (x + z)
else if (b <= 1.75d-28) then
tmp = z * (1.0d0 - y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -8.2e+110) {
tmp = t_1;
} else if (b <= -5.6e-77) {
tmp = a * (1.0 - t);
} else if (b <= 2.02e-227) {
tmp = a + (x + z);
} else if (b <= 1.75e-28) {
tmp = z * (1.0 - y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * ((y + t) - 2.0) tmp = 0 if b <= -8.2e+110: tmp = t_1 elif b <= -5.6e-77: tmp = a * (1.0 - t) elif b <= 2.02e-227: tmp = a + (x + z) elif b <= 1.75e-28: tmp = z * (1.0 - y) else: tmp = 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 <= -8.2e+110) tmp = t_1; elseif (b <= -5.6e-77) tmp = Float64(a * Float64(1.0 - t)); elseif (b <= 2.02e-227) tmp = Float64(a + Float64(x + z)); elseif (b <= 1.75e-28) tmp = Float64(z * Float64(1.0 - y)); else tmp = 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 <= -8.2e+110) tmp = t_1; elseif (b <= -5.6e-77) tmp = a * (1.0 - t); elseif (b <= 2.02e-227) tmp = a + (x + z); elseif (b <= 1.75e-28) tmp = z * (1.0 - y); else tmp = 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, -8.2e+110], t$95$1, If[LessEqual[b, -5.6e-77], N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.02e-227], N[(a + N[(x + z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-28], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -8.2 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 2.02 \cdot 10^{-227}:\\
\;\;\;\;a + \left(x + z\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-28}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.1999999999999997e110 or 1.75e-28 < b Initial program 96.6%
Taylor expanded in b around inf 74.9%
if -8.1999999999999997e110 < b < -5.5999999999999999e-77Initial program 90.4%
Taylor expanded in a around inf 45.8%
if -5.5999999999999999e-77 < b < 2.0200000000000001e-227Initial program 100.0%
Taylor expanded in b around 0 95.6%
Taylor expanded in t around 0 79.3%
associate--r+79.3%
sub-neg79.3%
neg-mul-179.3%
remove-double-neg79.3%
sub-neg79.3%
metadata-eval79.3%
Simplified79.3%
Taylor expanded in y around 0 57.5%
sub-neg57.5%
neg-mul-157.5%
remove-double-neg57.5%
associate-+l+57.5%
Simplified57.5%
if 2.0200000000000001e-227 < b < 1.75e-28Initial program 100.0%
Taylor expanded in z around inf 58.4%
Final simplification63.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -7.5e+110) (not (<= b 1.6e-28))) (+ (+ x (* b (- (+ y t) 2.0))) (* z (- 1.0 y))) (- x (+ (* (+ y -1.0) z) (* a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 1.6e-28)) {
tmp = (x + (b * ((y + t) - 2.0))) + (z * (1.0 - y));
} else {
tmp = x - (((y + -1.0) * z) + (a * (t + -1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-7.5d+110)) .or. (.not. (b <= 1.6d-28))) then
tmp = (x + (b * ((y + t) - 2.0d0))) + (z * (1.0d0 - y))
else
tmp = x - (((y + (-1.0d0)) * z) + (a * (t + (-1.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 1.6e-28)) {
tmp = (x + (b * ((y + t) - 2.0))) + (z * (1.0 - y));
} else {
tmp = x - (((y + -1.0) * z) + (a * (t + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7.5e+110) or not (b <= 1.6e-28): tmp = (x + (b * ((y + t) - 2.0))) + (z * (1.0 - y)) else: tmp = x - (((y + -1.0) * z) + (a * (t + -1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7.5e+110) || !(b <= 1.6e-28)) tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + Float64(z * Float64(1.0 - y))); else tmp = Float64(x - Float64(Float64(Float64(y + -1.0) * z) + Float64(a * Float64(t + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -7.5e+110) || ~((b <= 1.6e-28))) tmp = (x + (b * ((y + t) - 2.0))) + (z * (1.0 - y)); else tmp = x - (((y + -1.0) * z) + (a * (t + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7.5e+110], N[Not[LessEqual[b, 1.6e-28]], $MachinePrecision]], N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision] + N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+110} \lor \neg \left(b \leq 1.6 \cdot 10^{-28}\right):\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + z \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y + -1\right) \cdot z + a \cdot \left(t + -1\right)\right)\\
\end{array}
\end{array}
if b < -7.5e110 or 1.59999999999999991e-28 < b Initial program 96.6%
Taylor expanded in a around 0 93.3%
if -7.5e110 < b < 1.59999999999999991e-28Initial program 97.1%
Taylor expanded in b around 0 91.4%
Final simplification92.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -7.5e+110) (not (<= b 2.8e-36))) (+ (+ x (* b (- (+ y t) 2.0))) (* a (- 1.0 t))) (- x (+ (* (+ y -1.0) z) (* a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 2.8e-36)) {
tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t));
} else {
tmp = x - (((y + -1.0) * z) + (a * (t + -1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-7.5d+110)) .or. (.not. (b <= 2.8d-36))) then
tmp = (x + (b * ((y + t) - 2.0d0))) + (a * (1.0d0 - t))
else
tmp = x - (((y + (-1.0d0)) * z) + (a * (t + (-1.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 2.8e-36)) {
tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t));
} else {
tmp = x - (((y + -1.0) * z) + (a * (t + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7.5e+110) or not (b <= 2.8e-36): tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t)) else: tmp = x - (((y + -1.0) * z) + (a * (t + -1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7.5e+110) || !(b <= 2.8e-36)) tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + Float64(a * Float64(1.0 - t))); else tmp = Float64(x - Float64(Float64(Float64(y + -1.0) * z) + Float64(a * Float64(t + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -7.5e+110) || ~((b <= 2.8e-36))) tmp = (x + (b * ((y + t) - 2.0))) + (a * (1.0 - t)); else tmp = x - (((y + -1.0) * z) + (a * (t + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7.5e+110], N[Not[LessEqual[b, 2.8e-36]], $MachinePrecision]], 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[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision] + N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+110} \lor \neg \left(b \leq 2.8 \cdot 10^{-36}\right):\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + a \cdot \left(1 - t\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y + -1\right) \cdot z + a \cdot \left(t + -1\right)\right)\\
\end{array}
\end{array}
if b < -7.5e110 or 2.8000000000000001e-36 < b Initial program 96.6%
Taylor expanded in z around 0 88.3%
if -7.5e110 < b < 2.8000000000000001e-36Initial program 97.1%
Taylor expanded in b around 0 91.3%
Final simplification89.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.95e+119) (not (<= b 4.2e+22))) (+ x (* b (- (+ y t) 2.0))) (- x (+ (* (+ y -1.0) z) (* a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.95e+119) || !(b <= 4.2e+22)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x - (((y + -1.0) * z) + (a * (t + -1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-2.95d+119)) .or. (.not. (b <= 4.2d+22))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x - (((y + (-1.0d0)) * z) + (a * (t + (-1.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.95e+119) || !(b <= 4.2e+22)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x - (((y + -1.0) * z) + (a * (t + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.95e+119) or not (b <= 4.2e+22): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x - (((y + -1.0) * z) + (a * (t + -1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.95e+119) || !(b <= 4.2e+22)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x - Float64(Float64(Float64(y + -1.0) * z) + Float64(a * Float64(t + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.95e+119) || ~((b <= 4.2e+22))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x - (((y + -1.0) * z) + (a * (t + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.95e+119], N[Not[LessEqual[b, 4.2e+22]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y + -1.0), $MachinePrecision] * z), $MachinePrecision] + N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.95 \cdot 10^{+119} \lor \neg \left(b \leq 4.2 \cdot 10^{+22}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(\left(y + -1\right) \cdot z + a \cdot \left(t + -1\right)\right)\\
\end{array}
\end{array}
if b < -2.95e119 or 4.1999999999999996e22 < b Initial program 96.1%
Taylor expanded in a around 0 93.3%
Taylor expanded in z around 0 87.8%
if -2.95e119 < b < 4.1999999999999996e22Initial program 97.4%
Taylor expanded in b around 0 89.0%
Final simplification88.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -2.3e+111)
t_1
(if (<= b -2.85e-77)
(+ x (* a (- 1.0 t)))
(if (<= b 4.2e+44) (+ x (* z (- 1.0 y))) 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 <= -2.3e+111) {
tmp = t_1;
} else if (b <= -2.85e-77) {
tmp = x + (a * (1.0 - t));
} else if (b <= 4.2e+44) {
tmp = x + (z * (1.0 - y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((y + t) - 2.0d0)
if (b <= (-2.3d+111)) then
tmp = t_1
else if (b <= (-2.85d-77)) then
tmp = x + (a * (1.0d0 - t))
else if (b <= 4.2d+44) then
tmp = x + (z * (1.0d0 - y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -2.3e+111) {
tmp = t_1;
} else if (b <= -2.85e-77) {
tmp = x + (a * (1.0 - t));
} else if (b <= 4.2e+44) {
tmp = x + (z * (1.0 - y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * ((y + t) - 2.0) tmp = 0 if b <= -2.3e+111: tmp = t_1 elif b <= -2.85e-77: tmp = x + (a * (1.0 - t)) elif b <= 4.2e+44: tmp = x + (z * (1.0 - y)) else: tmp = 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 <= -2.3e+111) tmp = t_1; elseif (b <= -2.85e-77) tmp = Float64(x + Float64(a * Float64(1.0 - t))); elseif (b <= 4.2e+44) tmp = Float64(x + Float64(z * Float64(1.0 - y))); else tmp = 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 <= -2.3e+111) tmp = t_1; elseif (b <= -2.85e-77) tmp = x + (a * (1.0 - t)); elseif (b <= 4.2e+44) tmp = x + (z * (1.0 - y)); else tmp = 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, -2.3e+111], t$95$1, If[LessEqual[b, -2.85e-77], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e+44], N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -2.3 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.85 \cdot 10^{-77}:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+44}:\\
\;\;\;\;x + z \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.30000000000000002e111 or 4.19999999999999974e44 < b Initial program 95.9%
Taylor expanded in b around inf 82.9%
if -2.30000000000000002e111 < b < -2.84999999999999991e-77Initial program 90.4%
Taylor expanded in b around 0 80.6%
Taylor expanded in a around inf 51.6%
if -2.84999999999999991e-77 < b < 4.19999999999999974e44Initial program 100.0%
Taylor expanded in b around 0 91.7%
Taylor expanded in a around 0 69.9%
Final simplification71.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -7.5e+110) (not (<= b 1.7e-28))) (+ x (* b (- (+ y t) 2.0))) (+ x (- (* a (- 1.0 t)) (* y z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 1.7e-28)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + ((a * (1.0 - t)) - (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-7.5d+110)) .or. (.not. (b <= 1.7d-28))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x + ((a * (1.0d0 - t)) - (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 1.7e-28)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + ((a * (1.0 - t)) - (y * z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7.5e+110) or not (b <= 1.7e-28): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x + ((a * (1.0 - t)) - (y * z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7.5e+110) || !(b <= 1.7e-28)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x + Float64(Float64(a * Float64(1.0 - t)) - Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -7.5e+110) || ~((b <= 1.7e-28))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x + ((a * (1.0 - t)) - (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7.5e+110], N[Not[LessEqual[b, 1.7e-28]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+110} \lor \neg \left(b \leq 1.7 \cdot 10^{-28}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(a \cdot \left(1 - t\right) - y \cdot z\right)\\
\end{array}
\end{array}
if b < -7.5e110 or 1.7e-28 < b Initial program 96.6%
Taylor expanded in a around 0 93.3%
Taylor expanded in z around 0 84.7%
if -7.5e110 < b < 1.7e-28Initial program 97.1%
Taylor expanded in b around 0 91.4%
Taylor expanded in y around inf 79.9%
Final simplification82.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))))
(if (<= y -1100000000.0)
t_1
(if (<= y 2.25e-95)
(+ a (+ x z))
(if (<= y 66000000.0) (* t (- b a)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -1100000000.0) {
tmp = t_1;
} else if (y <= 2.25e-95) {
tmp = a + (x + z);
} else if (y <= 66000000.0) {
tmp = t * (b - a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * (b - z)
if (y <= (-1100000000.0d0)) then
tmp = t_1
else if (y <= 2.25d-95) then
tmp = a + (x + z)
else if (y <= 66000000.0d0) then
tmp = t * (b - a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -1100000000.0) {
tmp = t_1;
} else if (y <= 2.25e-95) {
tmp = a + (x + z);
} else if (y <= 66000000.0) {
tmp = t * (b - a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) tmp = 0 if y <= -1100000000.0: tmp = t_1 elif y <= 2.25e-95: tmp = a + (x + z) elif y <= 66000000.0: tmp = t * (b - a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -1100000000.0) tmp = t_1; elseif (y <= 2.25e-95) tmp = Float64(a + Float64(x + z)); elseif (y <= 66000000.0) tmp = Float64(t * Float64(b - a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); tmp = 0.0; if (y <= -1100000000.0) tmp = t_1; elseif (y <= 2.25e-95) tmp = a + (x + z); elseif (y <= 66000000.0) tmp = t * (b - a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1100000000.0], t$95$1, If[LessEqual[y, 2.25e-95], N[(a + N[(x + z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 66000000.0], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -1100000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-95}:\\
\;\;\;\;a + \left(x + z\right)\\
\mathbf{elif}\;y \leq 66000000:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.1e9 or 6.6e7 < y Initial program 95.5%
Taylor expanded in y around inf 67.7%
if -1.1e9 < y < 2.25e-95Initial program 99.0%
Taylor expanded in b around 0 66.6%
Taylor expanded in t around 0 48.1%
associate--r+48.1%
sub-neg48.1%
neg-mul-148.1%
remove-double-neg48.1%
sub-neg48.1%
metadata-eval48.1%
Simplified48.1%
Taylor expanded in y around 0 48.1%
sub-neg48.1%
neg-mul-148.1%
remove-double-neg48.1%
associate-+l+48.1%
Simplified48.1%
if 2.25e-95 < y < 6.6e7Initial program 96.2%
Taylor expanded in t around inf 58.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -120000.0)
t_1
(if (<= t -1.1e-121) (+ x a) (if (<= t 0.058) (* b (- y 2.0)) 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 <= -120000.0) {
tmp = t_1;
} else if (t <= -1.1e-121) {
tmp = x + a;
} else if (t <= 0.058) {
tmp = b * (y - 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 = t * (b - a)
if (t <= (-120000.0d0)) then
tmp = t_1
else if (t <= (-1.1d-121)) then
tmp = x + a
else if (t <= 0.058d0) then
tmp = b * (y - 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 = t * (b - a);
double tmp;
if (t <= -120000.0) {
tmp = t_1;
} else if (t <= -1.1e-121) {
tmp = x + a;
} else if (t <= 0.058) {
tmp = b * (y - 2.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -120000.0: tmp = t_1 elif t <= -1.1e-121: tmp = x + a elif t <= 0.058: tmp = b * (y - 2.0) 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 <= -120000.0) tmp = t_1; elseif (t <= -1.1e-121) tmp = Float64(x + a); elseif (t <= 0.058) tmp = Float64(b * Float64(y - 2.0)); 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 <= -120000.0) tmp = t_1; elseif (t <= -1.1e-121) tmp = x + a; elseif (t <= 0.058) tmp = b * (y - 2.0); 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, -120000.0], t$95$1, If[LessEqual[t, -1.1e-121], N[(x + a), $MachinePrecision], If[LessEqual[t, 0.058], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -120000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-121}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 0.058:\\
\;\;\;\;b \cdot \left(y - 2\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.2e5 or 0.0580000000000000029 < t Initial program 94.9%
Taylor expanded in t around inf 57.8%
if -1.2e5 < t < -1.10000000000000011e-121Initial program 96.3%
Taylor expanded in b around 0 85.5%
Taylor expanded in t around 0 85.5%
associate--r+85.5%
sub-neg85.5%
neg-mul-185.5%
remove-double-neg85.5%
sub-neg85.5%
metadata-eval85.5%
Simplified85.5%
Taylor expanded in y around 0 55.7%
sub-neg55.7%
neg-mul-155.7%
remove-double-neg55.7%
associate-+l+55.7%
Simplified55.7%
Taylor expanded in z around 0 48.4%
if -1.10000000000000011e-121 < t < 0.0580000000000000029Initial program 100.0%
Taylor expanded in b around inf 43.7%
Taylor expanded in t around 0 43.7%
Final simplification51.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -8e+114)
(* b (- y 2.0))
(if (<= b -3.4e-98)
(* a (- 1.0 t))
(if (<= b 1.4e+45) (+ x z) (* b (- t 2.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8e+114) {
tmp = b * (y - 2.0);
} else if (b <= -3.4e-98) {
tmp = a * (1.0 - t);
} else if (b <= 1.4e+45) {
tmp = x + z;
} else {
tmp = b * (t - 2.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-8d+114)) then
tmp = b * (y - 2.0d0)
else if (b <= (-3.4d-98)) then
tmp = a * (1.0d0 - t)
else if (b <= 1.4d+45) then
tmp = x + z
else
tmp = b * (t - 2.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8e+114) {
tmp = b * (y - 2.0);
} else if (b <= -3.4e-98) {
tmp = a * (1.0 - t);
} else if (b <= 1.4e+45) {
tmp = x + z;
} else {
tmp = b * (t - 2.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8e+114: tmp = b * (y - 2.0) elif b <= -3.4e-98: tmp = a * (1.0 - t) elif b <= 1.4e+45: tmp = x + z else: tmp = b * (t - 2.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8e+114) tmp = Float64(b * Float64(y - 2.0)); elseif (b <= -3.4e-98) tmp = Float64(a * Float64(1.0 - t)); elseif (b <= 1.4e+45) tmp = Float64(x + z); else tmp = Float64(b * Float64(t - 2.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8e+114) tmp = b * (y - 2.0); elseif (b <= -3.4e-98) tmp = a * (1.0 - t); elseif (b <= 1.4e+45) tmp = x + z; else tmp = b * (t - 2.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8e+114], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.4e-98], N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+45], N[(x + z), $MachinePrecision], N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{+114}:\\
\;\;\;\;b \cdot \left(y - 2\right)\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-98}:\\
\;\;\;\;a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+45}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t - 2\right)\\
\end{array}
\end{array}
if b < -8e114Initial program 97.1%
Taylor expanded in b around inf 88.2%
Taylor expanded in t around 0 58.2%
if -8e114 < b < -3.4000000000000001e-98Initial program 91.5%
Taylor expanded in a around inf 45.3%
if -3.4000000000000001e-98 < b < 1.4e45Initial program 100.0%
Taylor expanded in b around 0 91.3%
Taylor expanded in t around 0 76.8%
associate--r+76.8%
sub-neg76.8%
neg-mul-176.8%
remove-double-neg76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Taylor expanded in y around 0 49.6%
sub-neg49.6%
neg-mul-149.6%
remove-double-neg49.6%
associate-+l+49.6%
Simplified49.6%
Taylor expanded in a around 0 43.2%
if 1.4e45 < b Initial program 95.2%
Taylor expanded in b around inf 80.0%
Taylor expanded in y around 0 54.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- t 2.0))))
(if (<= b -1.8e+111)
t_1
(if (<= b -1.05e-97) (* a (- 1.0 t)) (if (<= b 1.25e+48) (+ x z) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (t - 2.0);
double tmp;
if (b <= -1.8e+111) {
tmp = t_1;
} else if (b <= -1.05e-97) {
tmp = a * (1.0 - t);
} else if (b <= 1.25e+48) {
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 = b * (t - 2.0d0)
if (b <= (-1.8d+111)) then
tmp = t_1
else if (b <= (-1.05d-97)) then
tmp = a * (1.0d0 - t)
else if (b <= 1.25d+48) 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 = b * (t - 2.0);
double tmp;
if (b <= -1.8e+111) {
tmp = t_1;
} else if (b <= -1.05e-97) {
tmp = a * (1.0 - t);
} else if (b <= 1.25e+48) {
tmp = x + z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (t - 2.0) tmp = 0 if b <= -1.8e+111: tmp = t_1 elif b <= -1.05e-97: tmp = a * (1.0 - t) elif b <= 1.25e+48: tmp = x + z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(t - 2.0)) tmp = 0.0 if (b <= -1.8e+111) tmp = t_1; elseif (b <= -1.05e-97) tmp = Float64(a * Float64(1.0 - t)); elseif (b <= 1.25e+48) tmp = Float64(x + z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (t - 2.0); tmp = 0.0; if (b <= -1.8e+111) tmp = t_1; elseif (b <= -1.05e-97) tmp = a * (1.0 - t); elseif (b <= 1.25e+48) tmp = x + z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+111], t$95$1, If[LessEqual[b, -1.05e-97], N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+48], N[(x + z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t - 2\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-97}:\\
\;\;\;\;a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+48}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.8000000000000001e111 or 1.24999999999999993e48 < b Initial program 95.9%
Taylor expanded in b around inf 82.9%
Taylor expanded in y around 0 53.2%
if -1.8000000000000001e111 < b < -1.0500000000000001e-97Initial program 91.5%
Taylor expanded in a around inf 45.3%
if -1.0500000000000001e-97 < b < 1.24999999999999993e48Initial program 100.0%
Taylor expanded in b around 0 91.3%
Taylor expanded in t around 0 76.8%
associate--r+76.8%
sub-neg76.8%
neg-mul-176.8%
remove-double-neg76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Taylor expanded in y around 0 49.6%
sub-neg49.6%
neg-mul-149.6%
remove-double-neg49.6%
associate-+l+49.6%
Simplified49.6%
Taylor expanded in a around 0 43.2%
(FPCore (x y z t a b) :precision binary64 (if (<= y -9.2e+132) (* y b) (if (or (<= y -4.8e+35) (not (<= y 1.15e+19))) (* y (- z)) (+ x z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -9.2e+132) {
tmp = y * b;
} else if ((y <= -4.8e+35) || !(y <= 1.15e+19)) {
tmp = y * -z;
} else {
tmp = x + z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-9.2d+132)) then
tmp = y * b
else if ((y <= (-4.8d+35)) .or. (.not. (y <= 1.15d+19))) then
tmp = y * -z
else
tmp = x + z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -9.2e+132) {
tmp = y * b;
} else if ((y <= -4.8e+35) || !(y <= 1.15e+19)) {
tmp = y * -z;
} else {
tmp = x + z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -9.2e+132: tmp = y * b elif (y <= -4.8e+35) or not (y <= 1.15e+19): tmp = y * -z else: tmp = x + z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -9.2e+132) tmp = Float64(y * b); elseif ((y <= -4.8e+35) || !(y <= 1.15e+19)) tmp = Float64(y * Float64(-z)); else tmp = Float64(x + z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -9.2e+132) tmp = y * b; elseif ((y <= -4.8e+35) || ~((y <= 1.15e+19))) tmp = y * -z; else tmp = x + z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -9.2e+132], N[(y * b), $MachinePrecision], If[Or[LessEqual[y, -4.8e+35], N[Not[LessEqual[y, 1.15e+19]], $MachinePrecision]], N[(y * (-z)), $MachinePrecision], N[(x + z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{+132}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{+35} \lor \neg \left(y \leq 1.15 \cdot 10^{+19}\right):\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;x + z\\
\end{array}
\end{array}
if y < -9.2000000000000006e132Initial program 91.2%
Taylor expanded in b around inf 54.3%
Taylor expanded in y around inf 52.8%
if -9.2000000000000006e132 < y < -4.80000000000000029e35 or 1.15e19 < y Initial program 96.6%
Taylor expanded in z around inf 48.0%
Taylor expanded in y around inf 48.0%
associate-*r*48.0%
neg-mul-148.0%
Simplified48.0%
if -4.80000000000000029e35 < y < 1.15e19Initial program 98.5%
Taylor expanded in b around 0 62.7%
Taylor expanded in t around 0 44.3%
associate--r+44.3%
sub-neg44.3%
neg-mul-144.3%
remove-double-neg44.3%
sub-neg44.3%
metadata-eval44.3%
Simplified44.3%
Taylor expanded in y around 0 42.8%
sub-neg42.8%
neg-mul-142.8%
remove-double-neg42.8%
associate-+l+42.8%
Simplified42.8%
Taylor expanded in a around 0 38.3%
Final simplification43.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.32e+69) (not (<= b 1.8e+21))) (+ x (* b (- (+ y t) 2.0))) (+ (+ 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.32e+69) || !(b <= 1.8e+21)) {
tmp = x + (b * ((y + t) - 2.0));
} 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.32d+69)) .or. (.not. (b <= 1.8d+21))) then
tmp = x + (b * ((y + t) - 2.0d0))
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.32e+69) || !(b <= 1.8e+21)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = (x + a) + (z * (1.0 - y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.32e+69) or not (b <= 1.8e+21): tmp = x + (b * ((y + t) - 2.0)) else: tmp = (x + a) + (z * (1.0 - y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.32e+69) || !(b <= 1.8e+21)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(Float64(x + 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.32e+69) || ~((b <= 1.8e+21))) tmp = x + (b * ((y + t) - 2.0)); 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.32e+69], N[Not[LessEqual[b, 1.8e+21]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + a), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.32 \cdot 10^{+69} \lor \neg \left(b \leq 1.8 \cdot 10^{+21}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + a\right) + z \cdot \left(1 - y\right)\\
\end{array}
\end{array}
if b < -1.32e69 or 1.8e21 < b Initial program 95.5%
Taylor expanded in a around 0 92.0%
Taylor expanded in z around 0 86.0%
if -1.32e69 < b < 1.8e21Initial program 97.9%
Taylor expanded in b around 0 89.7%
Taylor expanded in t around 0 71.3%
associate--r+71.3%
sub-neg71.3%
neg-mul-171.3%
remove-double-neg71.3%
sub-neg71.3%
metadata-eval71.3%
Simplified71.3%
Final simplification77.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.45e+69) (not (<= b 1.55e-28))) (+ x (* b (- (+ y t) 2.0))) (+ x (* z (- 1.0 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.45e+69) || !(b <= 1.55e-28)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + (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.45d+69)) .or. (.not. (b <= 1.55d-28))) then
tmp = x + (b * ((y + t) - 2.0d0))
else
tmp = x + (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.45e+69) || !(b <= 1.55e-28)) {
tmp = x + (b * ((y + t) - 2.0));
} else {
tmp = x + (z * (1.0 - y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.45e+69) or not (b <= 1.55e-28): tmp = x + (b * ((y + t) - 2.0)) else: tmp = x + (z * (1.0 - y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.45e+69) || !(b <= 1.55e-28)) tmp = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))); else tmp = Float64(x + 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.45e+69) || ~((b <= 1.55e-28))) tmp = x + (b * ((y + t) - 2.0)); else tmp = x + (z * (1.0 - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.45e+69], N[Not[LessEqual[b, 1.55e-28]], $MachinePrecision]], N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.45 \cdot 10^{+69} \lor \neg \left(b \leq 1.55 \cdot 10^{-28}\right):\\
\;\;\;\;x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \left(1 - y\right)\\
\end{array}
\end{array}
if b < -1.4499999999999999e69 or 1.54999999999999996e-28 < b Initial program 96.0%
Taylor expanded in a around 0 92.1%
Taylor expanded in z around 0 83.3%
if -1.4499999999999999e69 < b < 1.54999999999999996e-28Initial program 97.7%
Taylor expanded in b around 0 92.3%
Taylor expanded in a around 0 63.0%
Final simplification72.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.02e+123) (* y b) (if (<= b -4.2e-77) (* t (- a)) (if (<= b 4.4e+44) (+ x z) (* t b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.02e+123) {
tmp = y * b;
} else if (b <= -4.2e-77) {
tmp = t * -a;
} else if (b <= 4.4e+44) {
tmp = x + z;
} else {
tmp = t * 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 <= (-1.02d+123)) then
tmp = y * b
else if (b <= (-4.2d-77)) then
tmp = t * -a
else if (b <= 4.4d+44) then
tmp = x + z
else
tmp = t * 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 <= -1.02e+123) {
tmp = y * b;
} else if (b <= -4.2e-77) {
tmp = t * -a;
} else if (b <= 4.4e+44) {
tmp = x + z;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.02e+123: tmp = y * b elif b <= -4.2e-77: tmp = t * -a elif b <= 4.4e+44: tmp = x + z else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.02e+123) tmp = Float64(y * b); elseif (b <= -4.2e-77) tmp = Float64(t * Float64(-a)); elseif (b <= 4.4e+44) tmp = Float64(x + z); else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.02e+123) tmp = y * b; elseif (b <= -4.2e-77) tmp = t * -a; elseif (b <= 4.4e+44) tmp = x + z; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.02e+123], N[(y * b), $MachinePrecision], If[LessEqual[b, -4.2e-77], N[(t * (-a)), $MachinePrecision], If[LessEqual[b, 4.4e+44], N[(x + z), $MachinePrecision], N[(t * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.02 \cdot 10^{+123}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-77}:\\
\;\;\;\;t \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+44}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if b < -1.02e123Initial program 97.1%
Taylor expanded in b around inf 88.2%
Taylor expanded in y around inf 44.1%
if -1.02e123 < b < -4.20000000000000031e-77Initial program 90.4%
Taylor expanded in t around inf 37.7%
Taylor expanded in b around 0 33.5%
associate-*r*33.5%
neg-mul-133.5%
Simplified33.5%
if -4.20000000000000031e-77 < b < 4.39999999999999991e44Initial program 100.0%
Taylor expanded in b around 0 91.7%
Taylor expanded in t around 0 77.0%
associate--r+77.0%
sub-neg77.0%
neg-mul-177.0%
remove-double-neg77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in y around 0 49.2%
sub-neg49.2%
neg-mul-149.2%
remove-double-neg49.2%
associate-+l+49.2%
Simplified49.2%
Taylor expanded in a around 0 42.4%
if 4.39999999999999991e44 < b Initial program 95.2%
Taylor expanded in t around inf 42.9%
Taylor expanded in b around inf 40.0%
Final simplification40.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.32e+69) (* y b) (if (<= b -2.65e-129) z (if (<= b 1.2e+45) x (* t b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.32e+69) {
tmp = y * b;
} else if (b <= -2.65e-129) {
tmp = z;
} else if (b <= 1.2e+45) {
tmp = x;
} else {
tmp = t * 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 <= (-1.32d+69)) then
tmp = y * b
else if (b <= (-2.65d-129)) then
tmp = z
else if (b <= 1.2d+45) then
tmp = x
else
tmp = t * 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 <= -1.32e+69) {
tmp = y * b;
} else if (b <= -2.65e-129) {
tmp = z;
} else if (b <= 1.2e+45) {
tmp = x;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.32e+69: tmp = y * b elif b <= -2.65e-129: tmp = z elif b <= 1.2e+45: tmp = x else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.32e+69) tmp = Float64(y * b); elseif (b <= -2.65e-129) tmp = z; elseif (b <= 1.2e+45) tmp = x; else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.32e+69) tmp = y * b; elseif (b <= -2.65e-129) tmp = z; elseif (b <= 1.2e+45) tmp = x; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.32e+69], N[(y * b), $MachinePrecision], If[LessEqual[b, -2.65e-129], z, If[LessEqual[b, 1.2e+45], x, N[(t * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.32 \cdot 10^{+69}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;b \leq -2.65 \cdot 10^{-129}:\\
\;\;\;\;z\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+45}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if b < -1.32e69Initial program 95.3%
Taylor expanded in b around inf 78.9%
Taylor expanded in y around inf 38.4%
if -1.32e69 < b < -2.64999999999999987e-129Initial program 93.3%
Taylor expanded in z around inf 41.1%
Taylor expanded in y around 0 20.5%
if -2.64999999999999987e-129 < b < 1.19999999999999995e45Initial program 100.0%
Taylor expanded in x around inf 33.8%
if 1.19999999999999995e45 < b Initial program 95.2%
Taylor expanded in t around inf 42.9%
Taylor expanded in b around inf 40.0%
Final simplification33.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.45e+69) (* y b) (if (<= b -1.55e-128) z (if (<= b 4.3e+51) x (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.45e+69) {
tmp = y * b;
} else if (b <= -1.55e-128) {
tmp = z;
} else if (b <= 4.3e+51) {
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 <= (-1.45d+69)) then
tmp = y * b
else if (b <= (-1.55d-128)) then
tmp = z
else if (b <= 4.3d+51) 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 <= -1.45e+69) {
tmp = y * b;
} else if (b <= -1.55e-128) {
tmp = z;
} else if (b <= 4.3e+51) {
tmp = x;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.45e+69: tmp = y * b elif b <= -1.55e-128: tmp = z elif b <= 4.3e+51: tmp = x else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.45e+69) tmp = Float64(y * b); elseif (b <= -1.55e-128) tmp = z; elseif (b <= 4.3e+51) 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 <= -1.45e+69) tmp = y * b; elseif (b <= -1.55e-128) tmp = z; elseif (b <= 4.3e+51) tmp = x; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.45e+69], N[(y * b), $MachinePrecision], If[LessEqual[b, -1.55e-128], z, If[LessEqual[b, 4.3e+51], x, N[(y * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.45 \cdot 10^{+69}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-128}:\\
\;\;\;\;z\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{+51}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if b < -1.4499999999999999e69 or 4.2999999999999997e51 < b Initial program 95.3%
Taylor expanded in b around inf 79.6%
Taylor expanded in y around inf 36.5%
if -1.4499999999999999e69 < b < -1.55000000000000001e-128Initial program 93.3%
Taylor expanded in z around inf 41.1%
Taylor expanded in y around 0 20.5%
if -1.55000000000000001e-128 < b < 4.2999999999999997e51Initial program 100.0%
Taylor expanded in x around inf 33.8%
Final simplification32.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -7.5e+110) (not (<= b 1.15e+47))) (* b (- (+ y t) 2.0)) (+ x (* a (- 1.0 t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.5e+110) || !(b <= 1.15e+47)) {
tmp = b * ((y + t) - 2.0);
} else {
tmp = x + (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 <= (-7.5d+110)) .or. (.not. (b <= 1.15d+47))) then
tmp = b * ((y + t) - 2.0d0)
else
tmp = x + (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 <= -7.5e+110) || !(b <= 1.15e+47)) {
tmp = b * ((y + t) - 2.0);
} else {
tmp = x + (a * (1.0 - t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7.5e+110) or not (b <= 1.15e+47): tmp = b * ((y + t) - 2.0) else: tmp = x + (a * (1.0 - t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7.5e+110) || !(b <= 1.15e+47)) tmp = Float64(b * Float64(Float64(y + t) - 2.0)); else tmp = Float64(x + 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 <= -7.5e+110) || ~((b <= 1.15e+47))) tmp = b * ((y + t) - 2.0); else tmp = x + (a * (1.0 - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7.5e+110], N[Not[LessEqual[b, 1.15e+47]], $MachinePrecision]], N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+110} \lor \neg \left(b \leq 1.15 \cdot 10^{+47}\right):\\
\;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{else}:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\end{array}
\end{array}
if b < -7.5e110 or 1.1499999999999999e47 < b Initial program 95.9%
Taylor expanded in b around inf 82.9%
if -7.5e110 < b < 1.1499999999999999e47Initial program 97.4%
Taylor expanded in b around 0 88.7%
Taylor expanded in a around inf 54.1%
Final simplification65.2%
(FPCore (x y z t a b) :precision binary64 (if (<= b -7.5e+110) (* y b) (if (<= b 7.2e+51) (+ x z) (* t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.5e+110) {
tmp = y * b;
} else if (b <= 7.2e+51) {
tmp = x + z;
} else {
tmp = t * 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 <= (-7.5d+110)) then
tmp = y * b
else if (b <= 7.2d+51) then
tmp = x + z
else
tmp = t * 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 <= -7.5e+110) {
tmp = y * b;
} else if (b <= 7.2e+51) {
tmp = x + z;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.5e+110: tmp = y * b elif b <= 7.2e+51: tmp = x + z else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.5e+110) tmp = Float64(y * b); elseif (b <= 7.2e+51) tmp = Float64(x + z); else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.5e+110) tmp = y * b; elseif (b <= 7.2e+51) tmp = x + z; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.5e+110], N[(y * b), $MachinePrecision], If[LessEqual[b, 7.2e+51], N[(x + z), $MachinePrecision], N[(t * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+110}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+51}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if b < -7.5e110Initial program 97.1%
Taylor expanded in b around inf 88.2%
Taylor expanded in y around inf 44.1%
if -7.5e110 < b < 7.20000000000000022e51Initial program 97.4%
Taylor expanded in b around 0 88.7%
Taylor expanded in t around 0 70.1%
associate--r+70.1%
sub-neg70.1%
neg-mul-170.1%
remove-double-neg70.1%
sub-neg70.1%
metadata-eval70.1%
Simplified70.1%
Taylor expanded in y around 0 44.4%
sub-neg44.4%
neg-mul-144.4%
remove-double-neg44.4%
associate-+l+44.4%
Simplified44.4%
Taylor expanded in a around 0 36.4%
if 7.20000000000000022e51 < b Initial program 95.2%
Taylor expanded in t around inf 42.9%
Taylor expanded in b around inf 40.0%
Final simplification38.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.6e+116) (* y b) (if (<= b 2.6e+51) (+ x a) (* t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.6e+116) {
tmp = y * b;
} else if (b <= 2.6e+51) {
tmp = x + a;
} else {
tmp = t * 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 <= (-2.6d+116)) then
tmp = y * b
else if (b <= 2.6d+51) then
tmp = x + a
else
tmp = t * 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 <= -2.6e+116) {
tmp = y * b;
} else if (b <= 2.6e+51) {
tmp = x + a;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.6e+116: tmp = y * b elif b <= 2.6e+51: tmp = x + a else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.6e+116) tmp = Float64(y * b); elseif (b <= 2.6e+51) tmp = Float64(x + a); else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.6e+116) tmp = y * b; elseif (b <= 2.6e+51) tmp = x + a; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.6e+116], N[(y * b), $MachinePrecision], If[LessEqual[b, 2.6e+51], N[(x + a), $MachinePrecision], N[(t * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+116}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+51}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if b < -2.59999999999999987e116Initial program 97.1%
Taylor expanded in b around inf 88.2%
Taylor expanded in y around inf 44.1%
if -2.59999999999999987e116 < b < 2.6000000000000001e51Initial program 97.4%
Taylor expanded in b around 0 88.7%
Taylor expanded in t around 0 70.1%
associate--r+70.1%
sub-neg70.1%
neg-mul-170.1%
remove-double-neg70.1%
sub-neg70.1%
metadata-eval70.1%
Simplified70.1%
Taylor expanded in y around 0 44.4%
sub-neg44.4%
neg-mul-144.4%
remove-double-neg44.4%
associate-+l+44.4%
Simplified44.4%
Taylor expanded in z around 0 33.9%
if 2.6000000000000001e51 < b Initial program 95.2%
Taylor expanded in t around inf 42.9%
Taylor expanded in b around inf 40.0%
Final simplification36.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x -8e+79) x (if (<= x 3.95e-17) z x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -8e+79) {
tmp = x;
} else if (x <= 3.95e-17) {
tmp = z;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-8d+79)) then
tmp = x
else if (x <= 3.95d-17) then
tmp = z
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -8e+79) {
tmp = x;
} else if (x <= 3.95e-17) {
tmp = z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -8e+79: tmp = x elif x <= 3.95e-17: tmp = z else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -8e+79) tmp = x; elseif (x <= 3.95e-17) tmp = z; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -8e+79) tmp = x; elseif (x <= 3.95e-17) tmp = z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -8e+79], x, If[LessEqual[x, 3.95e-17], z, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+79}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.95 \cdot 10^{-17}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -7.99999999999999974e79 or 3.9500000000000001e-17 < x Initial program 95.8%
Taylor expanded in x around inf 36.4%
if -7.99999999999999974e79 < x < 3.9500000000000001e-17Initial program 97.8%
Taylor expanded in z around inf 39.0%
Taylor expanded in y around 0 14.3%
(FPCore (x y z t a b) :precision binary64 (if (<= x -1.9e-27) x (if (<= x 4.2e-19) a x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.9e-27) {
tmp = x;
} else if (x <= 4.2e-19) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-1.9d-27)) then
tmp = x
else if (x <= 4.2d-19) then
tmp = a
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -1.9e-27) {
tmp = x;
} else if (x <= 4.2e-19) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -1.9e-27: tmp = x elif x <= 4.2e-19: tmp = a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -1.9e-27) tmp = x; elseif (x <= 4.2e-19) tmp = a; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -1.9e-27) tmp = x; elseif (x <= 4.2e-19) tmp = a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.9e-27], x, If[LessEqual[x, 4.2e-19], a, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.9 \cdot 10^{-27}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-19}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.9e-27 or 4.1999999999999998e-19 < x Initial program 96.4%
Taylor expanded in x around inf 31.6%
if -1.9e-27 < x < 4.1999999999999998e-19Initial program 97.4%
Taylor expanded in a around inf 30.1%
Taylor expanded in t around 0 10.2%
(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 96.9%
Taylor expanded in a around inf 23.9%
Taylor expanded in t around 0 7.5%
herbie shell --seed 2024132
(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)))