
(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 21 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
(-
(* b (- (+ y t) 2.0))
(+ (* a (+ t -1.0)) (- (* z (+ y -1.0)) x)))))
(if (<= t_1 INFINITY)
t_1
(* z (- 1.0 (- y (* b (/ (+ (+ (/ a b) (/ x b)) (+ y -2.0)) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * (1.0 - (y - (b * ((((a / b) + (x / b)) + (y + -2.0)) / z))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * (1.0 - (y - (b * ((((a / b) + (x / b)) + (y + -2.0)) / z))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x)) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * (1.0 - (y - (b * ((((a / b) + (x / b)) + (y + -2.0)) / z)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b * Float64(Float64(y + t) - 2.0)) - Float64(Float64(a * Float64(t + -1.0)) + Float64(Float64(z * Float64(y + -1.0)) - x))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(1.0 - Float64(y - Float64(b * Float64(Float64(Float64(Float64(a / b) + Float64(x / b)) + Float64(y + -2.0)) / z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x)); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * (1.0 - (y - (b * ((((a / b) + (x / b)) + (y + -2.0)) / z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(1.0 - N[(y - N[(b * N[(N[(N[(N[(a / b), $MachinePrecision] + N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y + -2.0), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right) - \left(a \cdot \left(t + -1\right) + \left(z \cdot \left(y + -1\right) - x\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(1 - \left(y - b \cdot \frac{\left(\frac{a}{b} + \frac{x}{b}\right) + \left(y + -2\right)}{z}\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 b around inf 36.4%
Taylor expanded in t around 0 29.3%
associate--l+29.3%
+-commutative29.3%
associate--r+29.3%
+-commutative29.3%
sub-neg29.3%
metadata-eval29.3%
associate-*r/56.6%
mul-1-neg56.6%
unsub-neg56.6%
associate-*r/29.3%
associate-*l/56.6%
Simplified56.6%
Taylor expanded in z around -inf 55.9%
mul-1-neg55.9%
*-commutative55.9%
distribute-rgt-neg-in55.9%
Simplified74.0%
Final simplification98.8%
(FPCore (x y z t a b) :precision binary64 (fma (+ y (+ t -2.0)) b (- x (fma (+ y -1.0) z (* a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
return fma((y + (t + -2.0)), b, (x - fma((y + -1.0), z, (a * (t + -1.0)))));
}
function code(x, y, z, t, a, b) return fma(Float64(y + Float64(t + -2.0)), b, Float64(x - fma(Float64(y + -1.0), z, Float64(a * Float64(t + -1.0))))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] * b + N[(x - N[(N[(y + -1.0), $MachinePrecision] * z + N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y + \left(t + -2\right), b, x - \mathsf{fma}\left(y + -1, z, a \cdot \left(t + -1\right)\right)\right)
\end{array}
Initial program 95.7%
+-commutative95.7%
fma-define97.2%
associate--l+97.2%
sub-neg97.2%
metadata-eval97.2%
sub-neg97.2%
associate-+l-97.2%
fma-neg97.6%
sub-neg97.6%
metadata-eval97.6%
remove-double-neg97.6%
sub-neg97.6%
metadata-eval97.6%
Simplified97.6%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(-
(* b (- (+ y t) 2.0))
(+ (* a (+ t -1.0)) (- (* z (+ y -1.0)) x)))))
(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 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x));
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 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x));
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 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x)) 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(b * Float64(Float64(y + t) - 2.0)) - Float64(Float64(a * Float64(t + -1.0)) + Float64(Float64(z * Float64(y + -1.0)) - x))) 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 = (b * ((y + t) - 2.0)) - ((a * (t + -1.0)) + ((z * (y + -1.0)) - x)); 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[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(y + t\right) - 2\right) - \left(a \cdot \left(t + -1\right) + \left(z \cdot \left(y + -1\right) - x\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) Initial program 0.0%
Taylor expanded in y around inf 64.5%
Final simplification98.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= b -1.5e+145)
(* b (- y 2.0))
(if (<= b -5.6e-59)
t_1
(if (<= b -1.95e-158)
x
(if (<= b 1.7e-291)
t_1
(if (<= b 3e-189) x (if (<= b 1.7e+118) t_1 (* t b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (b <= -1.5e+145) {
tmp = b * (y - 2.0);
} else if (b <= -5.6e-59) {
tmp = t_1;
} else if (b <= -1.95e-158) {
tmp = x;
} else if (b <= 1.7e-291) {
tmp = t_1;
} else if (b <= 3e-189) {
tmp = x;
} else if (b <= 1.7e+118) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if (b <= (-1.5d+145)) then
tmp = b * (y - 2.0d0)
else if (b <= (-5.6d-59)) then
tmp = t_1
else if (b <= (-1.95d-158)) then
tmp = x
else if (b <= 1.7d-291) then
tmp = t_1
else if (b <= 3d-189) then
tmp = x
else if (b <= 1.7d+118) then
tmp = t_1
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 t_1 = a * (1.0 - t);
double tmp;
if (b <= -1.5e+145) {
tmp = b * (y - 2.0);
} else if (b <= -5.6e-59) {
tmp = t_1;
} else if (b <= -1.95e-158) {
tmp = x;
} else if (b <= 1.7e-291) {
tmp = t_1;
} else if (b <= 3e-189) {
tmp = x;
} else if (b <= 1.7e+118) {
tmp = t_1;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if b <= -1.5e+145: tmp = b * (y - 2.0) elif b <= -5.6e-59: tmp = t_1 elif b <= -1.95e-158: tmp = x elif b <= 1.7e-291: tmp = t_1 elif b <= 3e-189: tmp = x elif b <= 1.7e+118: tmp = t_1 else: tmp = t * b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (b <= -1.5e+145) tmp = Float64(b * Float64(y - 2.0)); elseif (b <= -5.6e-59) tmp = t_1; elseif (b <= -1.95e-158) tmp = x; elseif (b <= 1.7e-291) tmp = t_1; elseif (b <= 3e-189) tmp = x; elseif (b <= 1.7e+118) tmp = t_1; else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (b <= -1.5e+145) tmp = b * (y - 2.0); elseif (b <= -5.6e-59) tmp = t_1; elseif (b <= -1.95e-158) tmp = x; elseif (b <= 1.7e-291) tmp = t_1; elseif (b <= 3e-189) tmp = x; elseif (b <= 1.7e+118) tmp = t_1; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e+145], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.6e-59], t$95$1, If[LessEqual[b, -1.95e-158], x, If[LessEqual[b, 1.7e-291], t$95$1, If[LessEqual[b, 3e-189], x, If[LessEqual[b, 1.7e+118], t$95$1, N[(t * b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+145}:\\
\;\;\;\;b \cdot \left(y - 2\right)\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-158}:\\
\;\;\;\;x\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-189}:\\
\;\;\;\;x\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if b < -1.5000000000000001e145Initial program 92.6%
Taylor expanded in b around inf 92.5%
Taylor expanded in t around 0 80.4%
associate--l+80.4%
+-commutative80.4%
associate--r+80.4%
+-commutative80.4%
sub-neg80.4%
metadata-eval80.4%
associate-*r/82.9%
mul-1-neg82.9%
unsub-neg82.9%
associate-*r/80.4%
associate-*l/82.9%
Simplified82.9%
Taylor expanded in b around inf 57.2%
if -1.5000000000000001e145 < b < -5.59999999999999961e-59 or -1.9499999999999998e-158 < b < 1.70000000000000013e-291 or 3e-189 < b < 1.69999999999999993e118Initial program 97.8%
Taylor expanded in a around inf 41.0%
if -5.59999999999999961e-59 < b < -1.9499999999999998e-158 or 1.70000000000000013e-291 < b < 3e-189Initial program 97.4%
Taylor expanded in x around inf 52.6%
if 1.69999999999999993e118 < b Initial program 88.6%
Taylor expanded in b around inf 94.2%
Taylor expanded in t around inf 58.7%
Taylor expanded in a around 0 52.8%
Final simplification47.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -6e+55)
t_1
(if (<= t -7e-154)
(* y (- b z))
(if (<= t 3.8e-211)
x
(if (<= t 1.85e-141)
(* z (- 1.0 y))
(if (<= t 4000000000.0) x 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 <= -6e+55) {
tmp = t_1;
} else if (t <= -7e-154) {
tmp = y * (b - z);
} else if (t <= 3.8e-211) {
tmp = x;
} else if (t <= 1.85e-141) {
tmp = z * (1.0 - y);
} else if (t <= 4000000000.0) {
tmp = x;
} 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 <= (-6d+55)) then
tmp = t_1
else if (t <= (-7d-154)) then
tmp = y * (b - z)
else if (t <= 3.8d-211) then
tmp = x
else if (t <= 1.85d-141) then
tmp = z * (1.0d0 - y)
else if (t <= 4000000000.0d0) then
tmp = x
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 <= -6e+55) {
tmp = t_1;
} else if (t <= -7e-154) {
tmp = y * (b - z);
} else if (t <= 3.8e-211) {
tmp = x;
} else if (t <= 1.85e-141) {
tmp = z * (1.0 - y);
} else if (t <= 4000000000.0) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -6e+55: tmp = t_1 elif t <= -7e-154: tmp = y * (b - z) elif t <= 3.8e-211: tmp = x elif t <= 1.85e-141: tmp = z * (1.0 - y) elif t <= 4000000000.0: tmp = x 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 <= -6e+55) tmp = t_1; elseif (t <= -7e-154) tmp = Float64(y * Float64(b - z)); elseif (t <= 3.8e-211) tmp = x; elseif (t <= 1.85e-141) tmp = Float64(z * Float64(1.0 - y)); elseif (t <= 4000000000.0) tmp = x; 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 <= -6e+55) tmp = t_1; elseif (t <= -7e-154) tmp = y * (b - z); elseif (t <= 3.8e-211) tmp = x; elseif (t <= 1.85e-141) tmp = z * (1.0 - y); elseif (t <= 4000000000.0) tmp = x; 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, -6e+55], t$95$1, If[LessEqual[t, -7e-154], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e-211], x, If[LessEqual[t, 1.85e-141], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4000000000.0], x, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -7 \cdot 10^{-154}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-211}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-141}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;t \leq 4000000000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.00000000000000033e55 or 4e9 < t Initial program 93.1%
Taylor expanded in t around inf 70.8%
if -6.00000000000000033e55 < t < -7.0000000000000001e-154Initial program 97.1%
Taylor expanded in y around inf 45.4%
if -7.0000000000000001e-154 < t < 3.80000000000000012e-211 or 1.85e-141 < t < 4e9Initial program 98.6%
Taylor expanded in x around inf 39.5%
if 3.80000000000000012e-211 < t < 1.85e-141Initial program 100.0%
Taylor expanded in z around inf 59.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))) (t_2 (* t (- b a))))
(if (<= t -6.2e+57)
t_2
(if (<= t -4.9e-154)
t_1
(if (<= t 1.95e-232)
x
(if (<= t 2.8e-141) t_1 (if (<= t 5800000.0) x t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = t * (b - a);
double tmp;
if (t <= -6.2e+57) {
tmp = t_2;
} else if (t <= -4.9e-154) {
tmp = t_1;
} else if (t <= 1.95e-232) {
tmp = x;
} else if (t <= 2.8e-141) {
tmp = t_1;
} else if (t <= 5800000.0) {
tmp = x;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (b - z)
t_2 = t * (b - a)
if (t <= (-6.2d+57)) then
tmp = t_2
else if (t <= (-4.9d-154)) then
tmp = t_1
else if (t <= 1.95d-232) then
tmp = x
else if (t <= 2.8d-141) then
tmp = t_1
else if (t <= 5800000.0d0) then
tmp = x
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = t * (b - a);
double tmp;
if (t <= -6.2e+57) {
tmp = t_2;
} else if (t <= -4.9e-154) {
tmp = t_1;
} else if (t <= 1.95e-232) {
tmp = x;
} else if (t <= 2.8e-141) {
tmp = t_1;
} else if (t <= 5800000.0) {
tmp = x;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) t_2 = t * (b - a) tmp = 0 if t <= -6.2e+57: tmp = t_2 elif t <= -4.9e-154: tmp = t_1 elif t <= 1.95e-232: tmp = x elif t <= 2.8e-141: tmp = t_1 elif t <= 5800000.0: tmp = x else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -6.2e+57) tmp = t_2; elseif (t <= -4.9e-154) tmp = t_1; elseif (t <= 1.95e-232) tmp = x; elseif (t <= 2.8e-141) tmp = t_1; elseif (t <= 5800000.0) tmp = x; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); t_2 = t * (b - a); tmp = 0.0; if (t <= -6.2e+57) tmp = t_2; elseif (t <= -4.9e-154) tmp = t_1; elseif (t <= 1.95e-232) tmp = x; elseif (t <= 2.8e-141) tmp = t_1; elseif (t <= 5800000.0) tmp = x; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e+57], t$95$2, If[LessEqual[t, -4.9e-154], t$95$1, If[LessEqual[t, 1.95e-232], x, If[LessEqual[t, 2.8e-141], t$95$1, If[LessEqual[t, 5800000.0], x, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.9 \cdot 10^{-154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-232}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5800000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -6.20000000000000026e57 or 5.8e6 < t Initial program 93.1%
Taylor expanded in t around inf 70.8%
if -6.20000000000000026e57 < t < -4.89999999999999997e-154 or 1.9499999999999999e-232 < t < 2.80000000000000012e-141Initial program 98.0%
Taylor expanded in y around inf 43.8%
if -4.89999999999999997e-154 < t < 1.9499999999999999e-232 or 2.80000000000000012e-141 < t < 5.8e6Initial program 98.5%
Taylor expanded in x around inf 40.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= b -4.4e+167)
(+ (+ x (* b (- (+ y t) 2.0))) t_1)
(if (<= b -1.02e+15)
(+ z (+ x (+ (* y (- b z)) (* b (- t 2.0)))))
(if (<= b 1.7e+84)
(+ x (+ (* z (- 1.0 y)) t_1))
(+ a (+ x (- (* t (- b a)) (* b (- 2.0 y))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (b <= -4.4e+167) {
tmp = (x + (b * ((y + t) - 2.0))) + t_1;
} else if (b <= -1.02e+15) {
tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0))));
} else if (b <= 1.7e+84) {
tmp = x + ((z * (1.0 - y)) + t_1);
} else {
tmp = a + (x + ((t * (b - a)) - (b * (2.0 - y))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if (b <= (-4.4d+167)) then
tmp = (x + (b * ((y + t) - 2.0d0))) + t_1
else if (b <= (-1.02d+15)) then
tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0d0))))
else if (b <= 1.7d+84) then
tmp = x + ((z * (1.0d0 - y)) + t_1)
else
tmp = a + (x + ((t * (b - a)) - (b * (2.0d0 - y))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (b <= -4.4e+167) {
tmp = (x + (b * ((y + t) - 2.0))) + t_1;
} else if (b <= -1.02e+15) {
tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0))));
} else if (b <= 1.7e+84) {
tmp = x + ((z * (1.0 - y)) + t_1);
} else {
tmp = a + (x + ((t * (b - a)) - (b * (2.0 - y))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if b <= -4.4e+167: tmp = (x + (b * ((y + t) - 2.0))) + t_1 elif b <= -1.02e+15: tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0)))) elif b <= 1.7e+84: tmp = x + ((z * (1.0 - y)) + t_1) else: tmp = a + (x + ((t * (b - a)) - (b * (2.0 - y)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (b <= -4.4e+167) tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + t_1); elseif (b <= -1.02e+15) tmp = Float64(z + Float64(x + Float64(Float64(y * Float64(b - z)) + Float64(b * Float64(t - 2.0))))); elseif (b <= 1.7e+84) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) + t_1)); else tmp = Float64(a + Float64(x + Float64(Float64(t * Float64(b - a)) - Float64(b * Float64(2.0 - y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (b <= -4.4e+167) tmp = (x + (b * ((y + t) - 2.0))) + t_1; elseif (b <= -1.02e+15) tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0)))); elseif (b <= 1.7e+84) tmp = x + ((z * (1.0 - y)) + t_1); else tmp = a + (x + ((t * (b - a)) - (b * (2.0 - y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+167], N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -1.02e+15], N[(z + N[(x + N[(N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+84], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(a + N[(x + N[(N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision] - N[(b * N[(2.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+167}:\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + t\_1\\
\mathbf{elif}\;b \leq -1.02 \cdot 10^{+15}:\\
\;\;\;\;z + \left(x + \left(y \cdot \left(b - z\right) + b \cdot \left(t - 2\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+84}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(x + \left(t \cdot \left(b - a\right) - b \cdot \left(2 - y\right)\right)\right)\\
\end{array}
\end{array}
if b < -4.40000000000000007e167Initial program 94.4%
Taylor expanded in z around 0 99.4%
if -4.40000000000000007e167 < b < -1.02e15Initial program 93.9%
Taylor expanded in y around 0 93.9%
Taylor expanded in z around inf 84.7%
neg-mul-184.7%
Simplified84.7%
if -1.02e15 < b < 1.6999999999999999e84Initial program 97.9%
Taylor expanded in b around 0 91.0%
if 1.6999999999999999e84 < b Initial program 90.2%
Taylor expanded in t around 0 95.1%
Taylor expanded in a around inf 92.8%
neg-mul-192.8%
Simplified92.8%
Final simplification91.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))) (t_2 (+ (+ x (* b (- (+ y t) 2.0))) t_1)))
(if (<= b -4.3e+162)
t_2
(if (<= b -1.05e+15)
(+ z (+ x (+ (* y (- b z)) (* b (- t 2.0)))))
(if (<= b 9e+86) (+ x (+ (* z (- 1.0 y)) t_1)) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = (x + (b * ((y + t) - 2.0))) + t_1;
double tmp;
if (b <= -4.3e+162) {
tmp = t_2;
} else if (b <= -1.05e+15) {
tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0))));
} else if (b <= 9e+86) {
tmp = x + ((z * (1.0 - y)) + t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (1.0d0 - t)
t_2 = (x + (b * ((y + t) - 2.0d0))) + t_1
if (b <= (-4.3d+162)) then
tmp = t_2
else if (b <= (-1.05d+15)) then
tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0d0))))
else if (b <= 9d+86) then
tmp = x + ((z * (1.0d0 - y)) + t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = (x + (b * ((y + t) - 2.0))) + t_1;
double tmp;
if (b <= -4.3e+162) {
tmp = t_2;
} else if (b <= -1.05e+15) {
tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0))));
} else if (b <= 9e+86) {
tmp = x + ((z * (1.0 - y)) + t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) t_2 = (x + (b * ((y + t) - 2.0))) + t_1 tmp = 0 if b <= -4.3e+162: tmp = t_2 elif b <= -1.05e+15: tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0)))) elif b <= 9e+86: tmp = x + ((z * (1.0 - y)) + t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) t_2 = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + t_1) tmp = 0.0 if (b <= -4.3e+162) tmp = t_2; elseif (b <= -1.05e+15) tmp = Float64(z + Float64(x + Float64(Float64(y * Float64(b - z)) + Float64(b * Float64(t - 2.0))))); elseif (b <= 9e+86) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) + t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); t_2 = (x + (b * ((y + t) - 2.0))) + t_1; tmp = 0.0; if (b <= -4.3e+162) tmp = t_2; elseif (b <= -1.05e+15) tmp = z + (x + ((y * (b - z)) + (b * (t - 2.0)))); elseif (b <= 9e+86) tmp = x + ((z * (1.0 - y)) + t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[b, -4.3e+162], t$95$2, If[LessEqual[b, -1.05e+15], N[(z + N[(x + N[(N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e+86], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
t_2 := \left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + t\_1\\
\mathbf{if}\;b \leq -4.3 \cdot 10^{+162}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{+15}:\\
\;\;\;\;z + \left(x + \left(y \cdot \left(b - z\right) + b \cdot \left(t - 2\right)\right)\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+86}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.3000000000000002e162 or 8.99999999999999986e86 < b Initial program 92.2%
Taylor expanded in z around 0 94.6%
if -4.3000000000000002e162 < b < -1.05e15Initial program 93.9%
Taylor expanded in y around 0 93.9%
Taylor expanded in z around inf 84.7%
neg-mul-184.7%
Simplified84.7%
if -1.05e15 < b < 8.99999999999999986e86Initial program 97.9%
Taylor expanded in b around 0 91.0%
Final simplification91.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (+ y (- (/ x b) 2.0)))) (t_2 (* t (- b a))))
(if (<= t -9.4e+17)
t_2
(if (<= t 9.4e-197)
t_1
(if (<= t 4.8e-88)
(* z (- 1.0 y))
(if (<= t 200000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (y + ((x / b) - 2.0));
double t_2 = t * (b - a);
double tmp;
if (t <= -9.4e+17) {
tmp = t_2;
} else if (t <= 9.4e-197) {
tmp = t_1;
} else if (t <= 4.8e-88) {
tmp = z * (1.0 - y);
} else if (t <= 200000000000.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 = b * (y + ((x / b) - 2.0d0))
t_2 = t * (b - a)
if (t <= (-9.4d+17)) then
tmp = t_2
else if (t <= 9.4d-197) then
tmp = t_1
else if (t <= 4.8d-88) then
tmp = z * (1.0d0 - y)
else if (t <= 200000000000.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 = b * (y + ((x / b) - 2.0));
double t_2 = t * (b - a);
double tmp;
if (t <= -9.4e+17) {
tmp = t_2;
} else if (t <= 9.4e-197) {
tmp = t_1;
} else if (t <= 4.8e-88) {
tmp = z * (1.0 - y);
} else if (t <= 200000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (y + ((x / b) - 2.0)) t_2 = t * (b - a) tmp = 0 if t <= -9.4e+17: tmp = t_2 elif t <= 9.4e-197: tmp = t_1 elif t <= 4.8e-88: tmp = z * (1.0 - y) elif t <= 200000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(y + Float64(Float64(x / b) - 2.0))) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -9.4e+17) tmp = t_2; elseif (t <= 9.4e-197) tmp = t_1; elseif (t <= 4.8e-88) tmp = Float64(z * Float64(1.0 - y)); elseif (t <= 200000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (y + ((x / b) - 2.0)); t_2 = t * (b - a); tmp = 0.0; if (t <= -9.4e+17) tmp = t_2; elseif (t <= 9.4e-197) tmp = t_1; elseif (t <= 4.8e-88) tmp = z * (1.0 - y); elseif (t <= 200000000000.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[(b * N[(y + N[(N[(x / b), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.4e+17], t$95$2, If[LessEqual[t, 9.4e-197], t$95$1, If[LessEqual[t, 4.8e-88], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 200000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y + \left(\frac{x}{b} - 2\right)\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -9.4 \cdot 10^{+17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 9.4 \cdot 10^{-197}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-88}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;t \leq 200000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -9.4e17 or 2e11 < t Initial program 93.6%
Taylor expanded in t around inf 68.0%
if -9.4e17 < t < 9.4000000000000003e-197 or 4.7999999999999999e-88 < t < 2e11Initial program 97.9%
Taylor expanded in b around inf 79.6%
Taylor expanded in t around 0 79.2%
associate--l+79.2%
+-commutative79.2%
associate--r+79.2%
+-commutative79.2%
sub-neg79.2%
metadata-eval79.2%
associate-*r/79.3%
mul-1-neg79.3%
unsub-neg79.3%
associate-*r/79.2%
associate-*l/81.2%
Simplified81.2%
Taylor expanded in x around inf 54.2%
if 9.4000000000000003e-197 < t < 4.7999999999999999e-88Initial program 100.0%
Taylor expanded in z around inf 54.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -5.3e+15)
t_1
(if (<= t 9.5e-202)
(* b (+ y (- (/ a b) 2.0)))
(if (<= t 1.28e-86) (* z (- 1.0 y)) (if (<= t 380000.0) x 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 <= -5.3e+15) {
tmp = t_1;
} else if (t <= 9.5e-202) {
tmp = b * (y + ((a / b) - 2.0));
} else if (t <= 1.28e-86) {
tmp = z * (1.0 - y);
} else if (t <= 380000.0) {
tmp = x;
} 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 <= (-5.3d+15)) then
tmp = t_1
else if (t <= 9.5d-202) then
tmp = b * (y + ((a / b) - 2.0d0))
else if (t <= 1.28d-86) then
tmp = z * (1.0d0 - y)
else if (t <= 380000.0d0) then
tmp = x
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 <= -5.3e+15) {
tmp = t_1;
} else if (t <= 9.5e-202) {
tmp = b * (y + ((a / b) - 2.0));
} else if (t <= 1.28e-86) {
tmp = z * (1.0 - y);
} else if (t <= 380000.0) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -5.3e+15: tmp = t_1 elif t <= 9.5e-202: tmp = b * (y + ((a / b) - 2.0)) elif t <= 1.28e-86: tmp = z * (1.0 - y) elif t <= 380000.0: tmp = x 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 <= -5.3e+15) tmp = t_1; elseif (t <= 9.5e-202) tmp = Float64(b * Float64(y + Float64(Float64(a / b) - 2.0))); elseif (t <= 1.28e-86) tmp = Float64(z * Float64(1.0 - y)); elseif (t <= 380000.0) tmp = x; 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 <= -5.3e+15) tmp = t_1; elseif (t <= 9.5e-202) tmp = b * (y + ((a / b) - 2.0)); elseif (t <= 1.28e-86) tmp = z * (1.0 - y); elseif (t <= 380000.0) tmp = x; 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, -5.3e+15], t$95$1, If[LessEqual[t, 9.5e-202], N[(b * N[(y + N[(N[(a / b), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.28e-86], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 380000.0], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -5.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-202}:\\
\;\;\;\;b \cdot \left(y + \left(\frac{a}{b} - 2\right)\right)\\
\mathbf{elif}\;t \leq 1.28 \cdot 10^{-86}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;t \leq 380000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.3e15 or 3.8e5 < t Initial program 93.6%
Taylor expanded in t around inf 68.0%
if -5.3e15 < t < 9.5000000000000001e-202Initial program 97.4%
Taylor expanded in b around inf 77.8%
Taylor expanded in t around 0 77.7%
associate--l+77.7%
+-commutative77.7%
associate--r+77.7%
+-commutative77.7%
sub-neg77.7%
metadata-eval77.7%
associate-*r/77.8%
mul-1-neg77.8%
unsub-neg77.8%
associate-*r/77.7%
associate-*l/80.3%
Simplified80.3%
Taylor expanded in a around inf 41.7%
if 9.5000000000000001e-202 < t < 1.27999999999999992e-86Initial program 100.0%
Taylor expanded in z around inf 54.2%
if 1.27999999999999992e-86 < t < 3.8e5Initial program 99.8%
Taylor expanded in x around inf 44.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= a -4.5e-44)
t_1
(if (<= a 1.3e-104)
x
(if (<= a 1.65e-23) (* t b) (if (<= a 6.8e-5) x t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (a <= -4.5e-44) {
tmp = t_1;
} else if (a <= 1.3e-104) {
tmp = x;
} else if (a <= 1.65e-23) {
tmp = t * b;
} else if (a <= 6.8e-5) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if (a <= (-4.5d-44)) then
tmp = t_1
else if (a <= 1.3d-104) then
tmp = x
else if (a <= 1.65d-23) then
tmp = t * b
else if (a <= 6.8d-5) then
tmp = x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (a <= -4.5e-44) {
tmp = t_1;
} else if (a <= 1.3e-104) {
tmp = x;
} else if (a <= 1.65e-23) {
tmp = t * b;
} else if (a <= 6.8e-5) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if a <= -4.5e-44: tmp = t_1 elif a <= 1.3e-104: tmp = x elif a <= 1.65e-23: tmp = t * b elif a <= 6.8e-5: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (a <= -4.5e-44) tmp = t_1; elseif (a <= 1.3e-104) tmp = x; elseif (a <= 1.65e-23) tmp = Float64(t * b); elseif (a <= 6.8e-5) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (a <= -4.5e-44) tmp = t_1; elseif (a <= 1.3e-104) tmp = x; elseif (a <= 1.65e-23) tmp = t * b; elseif (a <= 6.8e-5) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e-44], t$95$1, If[LessEqual[a, 1.3e-104], x, If[LessEqual[a, 1.65e-23], N[(t * b), $MachinePrecision], If[LessEqual[a, 6.8e-5], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-104}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-23}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-5}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.4999999999999999e-44 or 6.7999999999999999e-5 < a Initial program 92.5%
Taylor expanded in a around inf 51.0%
if -4.4999999999999999e-44 < a < 1.30000000000000001e-104 or 1.6500000000000001e-23 < a < 6.7999999999999999e-5Initial program 99.0%
Taylor expanded in x around inf 32.7%
if 1.30000000000000001e-104 < a < 1.6500000000000001e-23Initial program 99.9%
Taylor expanded in b around inf 87.2%
Taylor expanded in t around inf 42.5%
Taylor expanded in a around 0 42.4%
Final simplification42.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (or (<= b -1.3e+58) (not (<= b 3.4e+85)))
(+ (+ x (* b (- (+ y t) 2.0))) t_1)
(+ x (+ (* z (- 1.0 y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if ((b <= -1.3e+58) || !(b <= 3.4e+85)) {
tmp = (x + (b * ((y + t) - 2.0))) + t_1;
} else {
tmp = x + ((z * (1.0 - y)) + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if ((b <= (-1.3d+58)) .or. (.not. (b <= 3.4d+85))) then
tmp = (x + (b * ((y + t) - 2.0d0))) + t_1
else
tmp = x + ((z * (1.0d0 - y)) + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if ((b <= -1.3e+58) || !(b <= 3.4e+85)) {
tmp = (x + (b * ((y + t) - 2.0))) + t_1;
} else {
tmp = x + ((z * (1.0 - y)) + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if (b <= -1.3e+58) or not (b <= 3.4e+85): tmp = (x + (b * ((y + t) - 2.0))) + t_1 else: tmp = x + ((z * (1.0 - y)) + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if ((b <= -1.3e+58) || !(b <= 3.4e+85)) tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + t_1); else tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if ((b <= -1.3e+58) || ~((b <= 3.4e+85))) tmp = (x + (b * ((y + t) - 2.0))) + t_1; else tmp = x + ((z * (1.0 - y)) + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[b, -1.3e+58], N[Not[LessEqual[b, 3.4e+85]], $MachinePrecision]], N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;b \leq -1.3 \cdot 10^{+58} \lor \neg \left(b \leq 3.4 \cdot 10^{+85}\right):\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) + t\_1\right)\\
\end{array}
\end{array}
if b < -1.29999999999999994e58 or 3.4000000000000003e85 < b Initial program 92.0%
Taylor expanded in z around 0 88.9%
if -1.29999999999999994e58 < b < 3.4000000000000003e85Initial program 98.0%
Taylor expanded in b around 0 89.7%
Final simplification89.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -4.5e+50)
t_1
(if (<= b -3.4e-49)
(+ (+ x a) (* z (- 1.0 y)))
(if (<= b 2.8e+117) (+ x (+ z (* a (- 1.0 t)))) 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 <= -4.5e+50) {
tmp = t_1;
} else if (b <= -3.4e-49) {
tmp = (x + a) + (z * (1.0 - y));
} else if (b <= 2.8e+117) {
tmp = x + (z + (a * (1.0 - t)));
} 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 <= (-4.5d+50)) then
tmp = t_1
else if (b <= (-3.4d-49)) then
tmp = (x + a) + (z * (1.0d0 - y))
else if (b <= 2.8d+117) then
tmp = x + (z + (a * (1.0d0 - t)))
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 <= -4.5e+50) {
tmp = t_1;
} else if (b <= -3.4e-49) {
tmp = (x + a) + (z * (1.0 - y));
} else if (b <= 2.8e+117) {
tmp = x + (z + (a * (1.0 - t)));
} 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 <= -4.5e+50: tmp = t_1 elif b <= -3.4e-49: tmp = (x + a) + (z * (1.0 - y)) elif b <= 2.8e+117: tmp = x + (z + (a * (1.0 - t))) 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 <= -4.5e+50) tmp = t_1; elseif (b <= -3.4e-49) tmp = Float64(Float64(x + a) + Float64(z * Float64(1.0 - y))); elseif (b <= 2.8e+117) tmp = Float64(x + Float64(z + Float64(a * Float64(1.0 - t)))); 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 <= -4.5e+50) tmp = t_1; elseif (b <= -3.4e-49) tmp = (x + a) + (z * (1.0 - y)); elseif (b <= 2.8e+117) tmp = x + (z + (a * (1.0 - t))); 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, -4.5e+50], t$95$1, If[LessEqual[b, -3.4e-49], N[(N[(x + a), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e+117], N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $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 -4.5 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-49}:\\
\;\;\;\;\left(x + a\right) + z \cdot \left(1 - y\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+117}:\\
\;\;\;\;x + \left(z + a \cdot \left(1 - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.50000000000000014e50 or 2.79999999999999997e117 < b Initial program 91.5%
Taylor expanded in b around inf 74.4%
if -4.50000000000000014e50 < b < -3.40000000000000005e-49Initial program 100.0%
Taylor expanded in b around inf 95.5%
Taylor expanded in t around 0 69.0%
associate--l+69.0%
+-commutative69.0%
associate--r+69.0%
+-commutative69.0%
sub-neg69.0%
metadata-eval69.0%
associate-*r/68.8%
mul-1-neg68.8%
unsub-neg68.8%
associate-*r/69.0%
associate-*l/68.8%
Simplified68.8%
Taylor expanded in b around 0 69.1%
if -3.40000000000000005e-49 < b < 2.79999999999999997e117Initial program 97.8%
Taylor expanded in y around 0 98.5%
Taylor expanded in y around inf 92.9%
Taylor expanded in x around inf 75.7%
Final simplification74.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -4.7e+58)
(- t_1 (* t a))
(if (<= b 3.7e+117) (+ x (+ (* z (- 1.0 y)) (* a (- 1.0 t)))) 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 <= -4.7e+58) {
tmp = t_1 - (t * a);
} else if (b <= 3.7e+117) {
tmp = x + ((z * (1.0 - y)) + (a * (1.0 - t)));
} 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 <= (-4.7d+58)) then
tmp = t_1 - (t * a)
else if (b <= 3.7d+117) then
tmp = x + ((z * (1.0d0 - y)) + (a * (1.0d0 - t)))
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 <= -4.7e+58) {
tmp = t_1 - (t * a);
} else if (b <= 3.7e+117) {
tmp = x + ((z * (1.0 - y)) + (a * (1.0 - t)));
} 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 <= -4.7e+58: tmp = t_1 - (t * a) elif b <= 3.7e+117: tmp = x + ((z * (1.0 - y)) + (a * (1.0 - t))) 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 <= -4.7e+58) tmp = Float64(t_1 - Float64(t * a)); elseif (b <= 3.7e+117) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) + Float64(a * Float64(1.0 - t)))); 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 <= -4.7e+58) tmp = t_1 - (t * a); elseif (b <= 3.7e+117) tmp = x + ((z * (1.0 - y)) + (a * (1.0 - t))); 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, -4.7e+58], N[(t$95$1 - N[(t * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e+117], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $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 -4.7 \cdot 10^{+58}:\\
\;\;\;\;t\_1 - t \cdot a\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+117}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) + a \cdot \left(1 - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.69999999999999972e58Initial program 93.1%
Taylor expanded in t around inf 72.1%
mul-1-neg72.1%
distribute-rgt-neg-in72.1%
Simplified72.1%
if -4.69999999999999972e58 < b < 3.6999999999999999e117Initial program 98.1%
Taylor expanded in b around 0 89.2%
if 3.6999999999999999e117 < b Initial program 88.6%
Taylor expanded in b around inf 86.3%
Final simplification84.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -5.8e+60)
(* t (- b a))
(if (<= t 7.2e-11)
(+ (+ x a) (* z (- 1.0 y)))
(- (* b (- (+ y t) 2.0)) (* t a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.8e+60) {
tmp = t * (b - a);
} else if (t <= 7.2e-11) {
tmp = (x + a) + (z * (1.0 - y));
} else {
tmp = (b * ((y + t) - 2.0)) - (t * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-5.8d+60)) then
tmp = t * (b - a)
else if (t <= 7.2d-11) then
tmp = (x + a) + (z * (1.0d0 - y))
else
tmp = (b * ((y + t) - 2.0d0)) - (t * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.8e+60) {
tmp = t * (b - a);
} else if (t <= 7.2e-11) {
tmp = (x + a) + (z * (1.0 - y));
} else {
tmp = (b * ((y + t) - 2.0)) - (t * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -5.8e+60: tmp = t * (b - a) elif t <= 7.2e-11: tmp = (x + a) + (z * (1.0 - y)) else: tmp = (b * ((y + t) - 2.0)) - (t * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -5.8e+60) tmp = Float64(t * Float64(b - a)); elseif (t <= 7.2e-11) tmp = Float64(Float64(x + a) + Float64(z * Float64(1.0 - y))); else tmp = Float64(Float64(b * Float64(Float64(y + t) - 2.0)) - Float64(t * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -5.8e+60) tmp = t * (b - a); elseif (t <= 7.2e-11) tmp = (x + a) + (z * (1.0 - y)); else tmp = (b * ((y + t) - 2.0)) - (t * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -5.8e+60], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e-11], N[(N[(x + a), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{+60}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-11}:\\
\;\;\;\;\left(x + a\right) + z \cdot \left(1 - y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) - 2\right) - t \cdot a\\
\end{array}
\end{array}
if t < -5.79999999999999999e60Initial program 90.3%
Taylor expanded in t around inf 69.9%
if -5.79999999999999999e60 < t < 7.19999999999999969e-11Initial program 98.3%
Taylor expanded in b around inf 75.8%
Taylor expanded in t around 0 75.0%
associate--l+75.0%
+-commutative75.0%
associate--r+75.0%
+-commutative75.0%
sub-neg75.0%
metadata-eval75.0%
associate-*r/74.9%
mul-1-neg74.9%
unsub-neg74.9%
associate-*r/75.0%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in b around 0 74.9%
if 7.19999999999999969e-11 < t Initial program 95.7%
Taylor expanded in t around inf 80.5%
mul-1-neg80.5%
distribute-rgt-neg-in80.5%
Simplified80.5%
Final simplification75.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.6e+59) (not (<= t 5.5e+15))) (* t (- b a)) (+ (+ x a) (* z (- 1.0 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.6e+59) || !(t <= 5.5e+15)) {
tmp = t * (b - a);
} 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 ((t <= (-3.6d+59)) .or. (.not. (t <= 5.5d+15))) then
tmp = t * (b - a)
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 ((t <= -3.6e+59) || !(t <= 5.5e+15)) {
tmp = t * (b - a);
} else {
tmp = (x + a) + (z * (1.0 - y));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.6e+59) or not (t <= 5.5e+15): tmp = t * (b - a) else: tmp = (x + a) + (z * (1.0 - y)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.6e+59) || !(t <= 5.5e+15)) tmp = Float64(t * Float64(b - a)); 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 ((t <= -3.6e+59) || ~((t <= 5.5e+15))) tmp = t * (b - a); else tmp = (x + a) + (z * (1.0 - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.6e+59], N[Not[LessEqual[t, 5.5e+15]], $MachinePrecision]], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], N[(N[(x + a), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+59} \lor \neg \left(t \leq 5.5 \cdot 10^{+15}\right):\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + a\right) + z \cdot \left(1 - y\right)\\
\end{array}
\end{array}
if t < -3.5999999999999999e59 or 5.5e15 < t Initial program 93.0%
Taylor expanded in t around inf 71.7%
if -3.5999999999999999e59 < t < 5.5e15Initial program 98.4%
Taylor expanded in b around inf 75.9%
Taylor expanded in t around 0 74.2%
associate--l+74.2%
+-commutative74.2%
associate--r+74.2%
+-commutative74.2%
sub-neg74.2%
metadata-eval74.2%
associate-*r/74.1%
mul-1-neg74.1%
unsub-neg74.1%
associate-*r/74.2%
associate-*l/75.7%
Simplified75.7%
Taylor expanded in b around 0 73.5%
Final simplification72.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- t))))
(if (<= t -1.45e+39)
t_1
(if (<= t 2600000000000.0) x (if (<= t 2.05e+214) t_1 (* t b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * -t;
double tmp;
if (t <= -1.45e+39) {
tmp = t_1;
} else if (t <= 2600000000000.0) {
tmp = x;
} else if (t <= 2.05e+214) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = a * -t
if (t <= (-1.45d+39)) then
tmp = t_1
else if (t <= 2600000000000.0d0) then
tmp = x
else if (t <= 2.05d+214) then
tmp = t_1
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 t_1 = a * -t;
double tmp;
if (t <= -1.45e+39) {
tmp = t_1;
} else if (t <= 2600000000000.0) {
tmp = x;
} else if (t <= 2.05e+214) {
tmp = t_1;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * -t tmp = 0 if t <= -1.45e+39: tmp = t_1 elif t <= 2600000000000.0: tmp = x elif t <= 2.05e+214: tmp = t_1 else: tmp = t * b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(-t)) tmp = 0.0 if (t <= -1.45e+39) tmp = t_1; elseif (t <= 2600000000000.0) tmp = x; elseif (t <= 2.05e+214) tmp = t_1; else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * -t; tmp = 0.0; if (t <= -1.45e+39) tmp = t_1; elseif (t <= 2600000000000.0) tmp = x; elseif (t <= 2.05e+214) tmp = t_1; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * (-t)), $MachinePrecision]}, If[LessEqual[t, -1.45e+39], t$95$1, If[LessEqual[t, 2600000000000.0], x, If[LessEqual[t, 2.05e+214], t$95$1, N[(t * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(-t\right)\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2600000000000:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{+214}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if t < -1.45000000000000015e39 or 2.6e12 < t < 2.05e214Initial program 92.6%
Taylor expanded in b around inf 78.2%
Taylor expanded in t around inf 62.5%
Taylor expanded in b around 0 41.6%
mul-1-neg41.6%
*-commutative41.6%
distribute-rgt-neg-in41.6%
Simplified41.6%
if -1.45000000000000015e39 < t < 2.6e12Initial program 98.3%
Taylor expanded in x around inf 32.3%
if 2.05e214 < t Initial program 96.2%
Taylor expanded in b around inf 78.3%
Taylor expanded in t around inf 78.0%
Taylor expanded in a around 0 62.3%
Final simplification39.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.05e+32) (not (<= t 530000000000.0))) (* t (- b a)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.05e+32) || !(t <= 530000000000.0)) {
tmp = t * (b - 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 ((t <= (-2.05d+32)) .or. (.not. (t <= 530000000000.0d0))) then
tmp = t * (b - 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 ((t <= -2.05e+32) || !(t <= 530000000000.0)) {
tmp = t * (b - a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.05e+32) or not (t <= 530000000000.0): tmp = t * (b - a) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.05e+32) || !(t <= 530000000000.0)) tmp = Float64(t * Float64(b - a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -2.05e+32) || ~((t <= 530000000000.0))) tmp = t * (b - a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.05e+32], N[Not[LessEqual[t, 530000000000.0]], $MachinePrecision]], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.05 \cdot 10^{+32} \lor \neg \left(t \leq 530000000000\right):\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -2.0499999999999999e32 or 5.3e11 < t Initial program 93.3%
Taylor expanded in t around inf 69.3%
if -2.0499999999999999e32 < t < 5.3e11Initial program 98.3%
Taylor expanded in x around inf 32.3%
Final simplification51.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.8e+65) (not (<= t 2.6e+21))) (* t b) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.8e+65) || !(t <= 2.6e+21)) {
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 <= (-7.8d+65)) .or. (.not. (t <= 2.6d+21))) 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 <= -7.8e+65) || !(t <= 2.6e+21)) {
tmp = t * b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.8e+65) or not (t <= 2.6e+21): tmp = t * b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.8e+65) || !(t <= 2.6e+21)) 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 <= -7.8e+65) || ~((t <= 2.6e+21))) tmp = t * b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.8e+65], N[Not[LessEqual[t, 2.6e+21]], $MachinePrecision]], N[(t * b), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{+65} \lor \neg \left(t \leq 2.6 \cdot 10^{+21}\right):\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -7.7999999999999996e65 or 2.6e21 < t Initial program 92.6%
Taylor expanded in b around inf 76.9%
Taylor expanded in t around inf 67.8%
Taylor expanded in a around 0 36.9%
if -7.7999999999999996e65 < t < 2.6e21Initial program 98.4%
Taylor expanded in x around inf 31.0%
Final simplification33.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x -9.5e-42) x (if (<= x 4.8e-30) a x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -9.5e-42) {
tmp = x;
} else if (x <= 4.8e-30) {
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 <= (-9.5d-42)) then
tmp = x
else if (x <= 4.8d-30) 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 <= -9.5e-42) {
tmp = x;
} else if (x <= 4.8e-30) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -9.5e-42: tmp = x elif x <= 4.8e-30: tmp = a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -9.5e-42) tmp = x; elseif (x <= 4.8e-30) tmp = a; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -9.5e-42) tmp = x; elseif (x <= 4.8e-30) tmp = a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -9.5e-42], x, If[LessEqual[x, 4.8e-30], a, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.5 \cdot 10^{-42}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-30}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -9.49999999999999948e-42 or 4.7999999999999997e-30 < x Initial program 96.6%
Taylor expanded in x around inf 33.1%
if -9.49999999999999948e-42 < x < 4.7999999999999997e-30Initial program 94.4%
Taylor expanded in b around inf 79.3%
Taylor expanded in t around 0 49.0%
associate--l+49.0%
+-commutative49.0%
associate--r+49.0%
+-commutative49.0%
sub-neg49.0%
metadata-eval49.0%
associate-*r/49.0%
mul-1-neg49.0%
unsub-neg49.0%
associate-*r/49.0%
associate-*l/50.9%
Simplified50.9%
Taylor expanded in a around inf 14.5%
(FPCore (x y z t a b) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b) {
return a;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a;
}
def code(x, y, z, t, a, b): return a
function code(x, y, z, t, a, b) return a end
function tmp = code(x, y, z, t, a, b) tmp = a; end
code[x_, y_, z_, t_, a_, b_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 95.7%
Taylor expanded in b around inf 77.0%
Taylor expanded in t around 0 52.1%
associate--l+52.1%
+-commutative52.1%
associate--r+52.1%
+-commutative52.1%
sub-neg52.1%
metadata-eval52.1%
associate-*r/52.1%
mul-1-neg52.1%
unsub-neg52.1%
associate-*r/52.1%
associate-*l/52.9%
Simplified52.9%
Taylor expanded in a around inf 9.5%
herbie shell --seed 2024111
(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)))