
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+ (+ (- x (* z (+ y -1.0))) (* a (- 1.0 t))) (* b (- (+ y t) 2.0)))))
(if (<= t_1 INFINITY) t_1 (* y (- b z)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - (z * (y + -1.0))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * (b - z);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - (z * (y + -1.0))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * (b - z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x - (z * (y + -1.0))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0)) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * (b - z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x - Float64(z * Float64(y + -1.0))) + Float64(a * Float64(1.0 - t))) + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(b - z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x - (z * (y + -1.0))) + (a * (1.0 - t))) + (b * ((y + t) - 2.0)); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * (b - z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(x - N[(z * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(x - z \cdot \left(y + -1\right)\right) + a \cdot \left(1 - t\right)\right) + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y 1) z)) (*.f64 (-.f64 t 1) a)) (*.f64 (-.f64 (+.f64 y t) 2) b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y 1) z)) (*.f64 (-.f64 t 1) a)) (*.f64 (-.f64 (+.f64 y t) 2) b)) Initial program 0.0%
Taylor expanded in y around inf 62.1%
Final simplification96.9%
(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 91.8%
+-commutative91.8%
fma-def95.3%
associate--l+95.3%
sub-neg95.3%
metadata-eval95.3%
sub-neg95.3%
associate-+l-95.3%
fma-neg96.1%
sub-neg96.1%
metadata-eval96.1%
remove-double-neg96.1%
sub-neg96.1%
metadata-eval96.1%
Simplified96.1%
Final simplification96.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))) (t_2 (* b (- (+ y t) 2.0))) (t_3 (- x (* y z))))
(if (<= b -2.4e+40)
t_2
(if (<= b -3e-180)
t_1
(if (<= b -2.9e-260)
t_3
(if (<= b 1.28e-275)
t_1
(if (<= b 3.7e+22)
(* z (- 1.0 y))
(if (or (<= b 3.7e+71) (not (<= b 3.2e+103))) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = b * ((y + t) - 2.0);
double t_3 = x - (y * z);
double tmp;
if (b <= -2.4e+40) {
tmp = t_2;
} else if (b <= -3e-180) {
tmp = t_1;
} else if (b <= -2.9e-260) {
tmp = t_3;
} else if (b <= 1.28e-275) {
tmp = t_1;
} else if (b <= 3.7e+22) {
tmp = z * (1.0 - y);
} else if ((b <= 3.7e+71) || !(b <= 3.2e+103)) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (1.0d0 - t)
t_2 = b * ((y + t) - 2.0d0)
t_3 = x - (y * z)
if (b <= (-2.4d+40)) then
tmp = t_2
else if (b <= (-3d-180)) then
tmp = t_1
else if (b <= (-2.9d-260)) then
tmp = t_3
else if (b <= 1.28d-275) then
tmp = t_1
else if (b <= 3.7d+22) then
tmp = z * (1.0d0 - y)
else if ((b <= 3.7d+71) .or. (.not. (b <= 3.2d+103))) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double t_2 = b * ((y + t) - 2.0);
double t_3 = x - (y * z);
double tmp;
if (b <= -2.4e+40) {
tmp = t_2;
} else if (b <= -3e-180) {
tmp = t_1;
} else if (b <= -2.9e-260) {
tmp = t_3;
} else if (b <= 1.28e-275) {
tmp = t_1;
} else if (b <= 3.7e+22) {
tmp = z * (1.0 - y);
} else if ((b <= 3.7e+71) || !(b <= 3.2e+103)) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) t_2 = b * ((y + t) - 2.0) t_3 = x - (y * z) tmp = 0 if b <= -2.4e+40: tmp = t_2 elif b <= -3e-180: tmp = t_1 elif b <= -2.9e-260: tmp = t_3 elif b <= 1.28e-275: tmp = t_1 elif b <= 3.7e+22: tmp = z * (1.0 - y) elif (b <= 3.7e+71) or not (b <= 3.2e+103): tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) t_2 = Float64(b * Float64(Float64(y + t) - 2.0)) t_3 = Float64(x - Float64(y * z)) tmp = 0.0 if (b <= -2.4e+40) tmp = t_2; elseif (b <= -3e-180) tmp = t_1; elseif (b <= -2.9e-260) tmp = t_3; elseif (b <= 1.28e-275) tmp = t_1; elseif (b <= 3.7e+22) tmp = Float64(z * Float64(1.0 - y)); elseif ((b <= 3.7e+71) || !(b <= 3.2e+103)) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); t_2 = b * ((y + t) - 2.0); t_3 = x - (y * z); tmp = 0.0; if (b <= -2.4e+40) tmp = t_2; elseif (b <= -3e-180) tmp = t_1; elseif (b <= -2.9e-260) tmp = t_3; elseif (b <= 1.28e-275) tmp = t_1; elseif (b <= 3.7e+22) tmp = z * (1.0 - y); elseif ((b <= 3.7e+71) || ~((b <= 3.2e+103))) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e+40], t$95$2, If[LessEqual[b, -3e-180], t$95$1, If[LessEqual[b, -2.9e-260], t$95$3, If[LessEqual[b, 1.28e-275], t$95$1, If[LessEqual[b, 3.7e+22], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 3.7e+71], N[Not[LessEqual[b, 3.2e+103]], $MachinePrecision]], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
t_2 := b \cdot \left(\left(y + t\right) - 2\right)\\
t_3 := x - y \cdot z\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{+40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-180}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-260}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.28 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+22}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+71} \lor \neg \left(b \leq 3.2 \cdot 10^{+103}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.4e40 or 3.6999999999999998e22 < b < 3.7e71 or 3.19999999999999993e103 < b Initial program 85.6%
Taylor expanded in b around inf 71.1%
if -2.4e40 < b < -3.0000000000000001e-180 or -2.8999999999999999e-260 < b < 1.27999999999999996e-275Initial program 97.0%
Taylor expanded in a around inf 52.3%
if -3.0000000000000001e-180 < b < -2.8999999999999999e-260 or 3.7e71 < b < 3.19999999999999993e103Initial program 89.5%
Taylor expanded in b around 0 100.0%
Taylor expanded in y around inf 69.4%
if 1.27999999999999996e-275 < b < 3.6999999999999998e22Initial program 100.0%
Taylor expanded in z around inf 56.3%
Final simplification63.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (- 1.0 t)))) (t_2 (* b (- (+ y t) 2.0))))
(if (<= b -2.15e+63)
t_2
(if (<= b 4.6e-265)
t_1
(if (<= b 1.45e-61)
(* z (- 1.0 y))
(if (<= b 1.7e+20)
t_1
(if (<= b 4.2e+22)
z
(if (or (<= b 3.7e+71) (not (<= b 2.25e+100)))
t_2
(- x (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double t_2 = b * ((y + t) - 2.0);
double tmp;
if (b <= -2.15e+63) {
tmp = t_2;
} else if (b <= 4.6e-265) {
tmp = t_1;
} else if (b <= 1.45e-61) {
tmp = z * (1.0 - y);
} else if (b <= 1.7e+20) {
tmp = t_1;
} else if (b <= 4.2e+22) {
tmp = z;
} else if ((b <= 3.7e+71) || !(b <= 2.25e+100)) {
tmp = t_2;
} else {
tmp = x - (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (a * (1.0d0 - t))
t_2 = b * ((y + t) - 2.0d0)
if (b <= (-2.15d+63)) then
tmp = t_2
else if (b <= 4.6d-265) then
tmp = t_1
else if (b <= 1.45d-61) then
tmp = z * (1.0d0 - y)
else if (b <= 1.7d+20) then
tmp = t_1
else if (b <= 4.2d+22) then
tmp = z
else if ((b <= 3.7d+71) .or. (.not. (b <= 2.25d+100))) then
tmp = t_2
else
tmp = x - (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.0 - t));
double t_2 = b * ((y + t) - 2.0);
double tmp;
if (b <= -2.15e+63) {
tmp = t_2;
} else if (b <= 4.6e-265) {
tmp = t_1;
} else if (b <= 1.45e-61) {
tmp = z * (1.0 - y);
} else if (b <= 1.7e+20) {
tmp = t_1;
} else if (b <= 4.2e+22) {
tmp = z;
} else if ((b <= 3.7e+71) || !(b <= 2.25e+100)) {
tmp = t_2;
} else {
tmp = x - (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a * (1.0 - t)) t_2 = b * ((y + t) - 2.0) tmp = 0 if b <= -2.15e+63: tmp = t_2 elif b <= 4.6e-265: tmp = t_1 elif b <= 1.45e-61: tmp = z * (1.0 - y) elif b <= 1.7e+20: tmp = t_1 elif b <= 4.2e+22: tmp = z elif (b <= 3.7e+71) or not (b <= 2.25e+100): tmp = t_2 else: tmp = x - (y * z) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a * Float64(1.0 - t))) t_2 = Float64(b * Float64(Float64(y + t) - 2.0)) tmp = 0.0 if (b <= -2.15e+63) tmp = t_2; elseif (b <= 4.6e-265) tmp = t_1; elseif (b <= 1.45e-61) tmp = Float64(z * Float64(1.0 - y)); elseif (b <= 1.7e+20) tmp = t_1; elseif (b <= 4.2e+22) tmp = z; elseif ((b <= 3.7e+71) || !(b <= 2.25e+100)) tmp = t_2; else tmp = Float64(x - Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (a * (1.0 - t)); t_2 = b * ((y + t) - 2.0); tmp = 0.0; if (b <= -2.15e+63) tmp = t_2; elseif (b <= 4.6e-265) tmp = t_1; elseif (b <= 1.45e-61) tmp = z * (1.0 - y); elseif (b <= 1.7e+20) tmp = t_1; elseif (b <= 4.2e+22) tmp = z; elseif ((b <= 3.7e+71) || ~((b <= 2.25e+100))) tmp = t_2; else tmp = x - (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+63], t$95$2, If[LessEqual[b, 4.6e-265], t$95$1, If[LessEqual[b, 1.45e-61], N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+20], t$95$1, If[LessEqual[b, 4.2e+22], z, If[Or[LessEqual[b, 3.7e+71], N[Not[LessEqual[b, 2.25e+100]], $MachinePrecision]], t$95$2, N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1 - t\right)\\
t_2 := b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+63}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{-265}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-61}:\\
\;\;\;\;z \cdot \left(1 - y\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+22}:\\
\;\;\;\;z\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+71} \lor \neg \left(b \leq 2.25 \cdot 10^{+100}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot z\\
\end{array}
\end{array}
if b < -2.15e63 or 4.1999999999999996e22 < b < 3.7e71 or 2.25000000000000018e100 < b Initial program 84.8%
Taylor expanded in b around inf 72.6%
if -2.15e63 < b < 4.5999999999999998e-265 or 1.45e-61 < b < 1.7e20Initial program 97.9%
Taylor expanded in b around 0 90.4%
Taylor expanded in a around inf 65.0%
if 4.5999999999999998e-265 < b < 1.45e-61Initial program 100.0%
Taylor expanded in z around inf 63.6%
if 1.7e20 < b < 4.1999999999999996e22Initial program 100.0%
Taylor expanded in z around inf 100.0%
Taylor expanded in y around 0 100.0%
if 3.7e71 < b < 2.25000000000000018e100Initial program 71.4%
Taylor expanded in b around 0 100.0%
Taylor expanded in y around inf 72.9%
Final simplification68.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))) (t_2 (* b (- t 2.0))) (t_3 (+ x t_2)))
(if (<= y -4.4e+109)
t_1
(if (<= y -5.4e+63)
(* t (- b a))
(if (<= y -2.65e+47)
t_1
(if (<= y -2.12e-187)
t_3
(if (<= y 1.4e-30)
(+ z t_2)
(if (<= y 4e+44) (* a (- 1.0 t)) (if (<= y 9e+78) t_3 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = b * (t - 2.0);
double t_3 = x + t_2;
double tmp;
if (y <= -4.4e+109) {
tmp = t_1;
} else if (y <= -5.4e+63) {
tmp = t * (b - a);
} else if (y <= -2.65e+47) {
tmp = t_1;
} else if (y <= -2.12e-187) {
tmp = t_3;
} else if (y <= 1.4e-30) {
tmp = z + t_2;
} else if (y <= 4e+44) {
tmp = a * (1.0 - t);
} else if (y <= 9e+78) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * (b - z)
t_2 = b * (t - 2.0d0)
t_3 = x + t_2
if (y <= (-4.4d+109)) then
tmp = t_1
else if (y <= (-5.4d+63)) then
tmp = t * (b - a)
else if (y <= (-2.65d+47)) then
tmp = t_1
else if (y <= (-2.12d-187)) then
tmp = t_3
else if (y <= 1.4d-30) then
tmp = z + t_2
else if (y <= 4d+44) then
tmp = a * (1.0d0 - t)
else if (y <= 9d+78) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = b * (t - 2.0);
double t_3 = x + t_2;
double tmp;
if (y <= -4.4e+109) {
tmp = t_1;
} else if (y <= -5.4e+63) {
tmp = t * (b - a);
} else if (y <= -2.65e+47) {
tmp = t_1;
} else if (y <= -2.12e-187) {
tmp = t_3;
} else if (y <= 1.4e-30) {
tmp = z + t_2;
} else if (y <= 4e+44) {
tmp = a * (1.0 - t);
} else if (y <= 9e+78) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) t_2 = b * (t - 2.0) t_3 = x + t_2 tmp = 0 if y <= -4.4e+109: tmp = t_1 elif y <= -5.4e+63: tmp = t * (b - a) elif y <= -2.65e+47: tmp = t_1 elif y <= -2.12e-187: tmp = t_3 elif y <= 1.4e-30: tmp = z + t_2 elif y <= 4e+44: tmp = a * (1.0 - t) elif y <= 9e+78: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) t_2 = Float64(b * Float64(t - 2.0)) t_3 = Float64(x + t_2) tmp = 0.0 if (y <= -4.4e+109) tmp = t_1; elseif (y <= -5.4e+63) tmp = Float64(t * Float64(b - a)); elseif (y <= -2.65e+47) tmp = t_1; elseif (y <= -2.12e-187) tmp = t_3; elseif (y <= 1.4e-30) tmp = Float64(z + t_2); elseif (y <= 4e+44) tmp = Float64(a * Float64(1.0 - t)); elseif (y <= 9e+78) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); t_2 = b * (t - 2.0); t_3 = x + t_2; tmp = 0.0; if (y <= -4.4e+109) tmp = t_1; elseif (y <= -5.4e+63) tmp = t * (b - a); elseif (y <= -2.65e+47) tmp = t_1; elseif (y <= -2.12e-187) tmp = t_3; elseif (y <= 1.4e-30) tmp = z + t_2; elseif (y <= 4e+44) tmp = a * (1.0 - t); elseif (y <= 9e+78) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + t$95$2), $MachinePrecision]}, If[LessEqual[y, -4.4e+109], t$95$1, If[LessEqual[y, -5.4e+63], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.65e+47], t$95$1, If[LessEqual[y, -2.12e-187], t$95$3, If[LessEqual[y, 1.4e-30], N[(z + t$95$2), $MachinePrecision], If[LessEqual[y, 4e+44], N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+78], t$95$3, t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
t_2 := b \cdot \left(t - 2\right)\\
t_3 := x + t_2\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{+63}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;y \leq -2.65 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.12 \cdot 10^{-187}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-30}:\\
\;\;\;\;z + t_2\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+44}:\\
\;\;\;\;a \cdot \left(1 - t\right)\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+78}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -4.3999999999999998e109 or -5.40000000000000035e63 < y < -2.65e47 or 8.9999999999999999e78 < y Initial program 81.7%
Taylor expanded in y around inf 71.6%
if -4.3999999999999998e109 < y < -5.40000000000000035e63Initial program 83.3%
Taylor expanded in t around inf 67.4%
if -2.65e47 < y < -2.12000000000000006e-187 or 4.0000000000000004e44 < y < 8.9999999999999999e78Initial program 98.2%
Taylor expanded in a around 0 81.0%
Taylor expanded in y around 0 76.0%
associate--l+76.0%
sub-neg76.0%
metadata-eval76.0%
neg-mul-176.0%
Simplified76.0%
Taylor expanded in z around 0 62.8%
if -2.12000000000000006e-187 < y < 1.39999999999999994e-30Initial program 98.7%
Taylor expanded in a around 0 72.0%
Taylor expanded in y around 0 72.0%
associate--l+72.0%
sub-neg72.0%
metadata-eval72.0%
neg-mul-172.0%
Simplified72.0%
Taylor expanded in x around 0 58.7%
if 1.39999999999999994e-30 < y < 4.0000000000000004e44Initial program 100.0%
Taylor expanded in a around inf 58.8%
Final simplification64.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- 1.0 y)))
(t_2 (- x (* b (- 2.0 (+ y t)))))
(t_3 (* a (- 1.0 t))))
(if (<= b -2.15e+71)
(+ t_2 t_1)
(if (or (<= b -5.5e+22) (not (<= b 6.5e+22)))
(+ t_2 t_3)
(+ x (+ t_3 t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double t_2 = x - (b * (2.0 - (y + t)));
double t_3 = a * (1.0 - t);
double tmp;
if (b <= -2.15e+71) {
tmp = t_2 + t_1;
} else if ((b <= -5.5e+22) || !(b <= 6.5e+22)) {
tmp = t_2 + t_3;
} else {
tmp = x + (t_3 + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (1.0d0 - y)
t_2 = x - (b * (2.0d0 - (y + t)))
t_3 = a * (1.0d0 - t)
if (b <= (-2.15d+71)) then
tmp = t_2 + t_1
else if ((b <= (-5.5d+22)) .or. (.not. (b <= 6.5d+22))) then
tmp = t_2 + t_3
else
tmp = x + (t_3 + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (1.0 - y);
double t_2 = x - (b * (2.0 - (y + t)));
double t_3 = a * (1.0 - t);
double tmp;
if (b <= -2.15e+71) {
tmp = t_2 + t_1;
} else if ((b <= -5.5e+22) || !(b <= 6.5e+22)) {
tmp = t_2 + t_3;
} else {
tmp = x + (t_3 + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (1.0 - y) t_2 = x - (b * (2.0 - (y + t))) t_3 = a * (1.0 - t) tmp = 0 if b <= -2.15e+71: tmp = t_2 + t_1 elif (b <= -5.5e+22) or not (b <= 6.5e+22): tmp = t_2 + t_3 else: tmp = x + (t_3 + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(1.0 - y)) t_2 = Float64(x - Float64(b * Float64(2.0 - Float64(y + t)))) t_3 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (b <= -2.15e+71) tmp = Float64(t_2 + t_1); elseif ((b <= -5.5e+22) || !(b <= 6.5e+22)) tmp = Float64(t_2 + t_3); else tmp = Float64(x + Float64(t_3 + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (1.0 - y); t_2 = x - (b * (2.0 - (y + t))); t_3 = a * (1.0 - t); tmp = 0.0; if (b <= -2.15e+71) tmp = t_2 + t_1; elseif ((b <= -5.5e+22) || ~((b <= 6.5e+22))) tmp = t_2 + t_3; else tmp = x + (t_3 + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(b * N[(2.0 - N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+71], N[(t$95$2 + t$95$1), $MachinePrecision], If[Or[LessEqual[b, -5.5e+22], N[Not[LessEqual[b, 6.5e+22]], $MachinePrecision]], N[(t$95$2 + t$95$3), $MachinePrecision], N[(x + N[(t$95$3 + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(1 - y\right)\\
t_2 := x - b \cdot \left(2 - \left(y + t\right)\right)\\
t_3 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+71}:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{+22} \lor \neg \left(b \leq 6.5 \cdot 10^{+22}\right):\\
\;\;\;\;t_2 + t_3\\
\mathbf{else}:\\
\;\;\;\;x + \left(t_3 + t_1\right)\\
\end{array}
\end{array}
if b < -2.14999999999999992e71Initial program 80.8%
Taylor expanded in a around 0 84.6%
if -2.14999999999999992e71 < b < -5.50000000000000021e22 or 6.49999999999999979e22 < b Initial program 87.2%
Taylor expanded in z around 0 83.4%
if -5.50000000000000021e22 < b < 6.49999999999999979e22Initial program 99.2%
Taylor expanded in b around 0 97.2%
Final simplification90.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (or (<= b -3.8e+22) (not (<= b 1.25e+23)))
(+ (- x (* b (- 2.0 (+ y t)))) t_1)
(+ x (+ t_1 (* z (- 1.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 <= -3.8e+22) || !(b <= 1.25e+23)) {
tmp = (x - (b * (2.0 - (y + t)))) + t_1;
} else {
tmp = x + (t_1 + (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) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if ((b <= (-3.8d+22)) .or. (.not. (b <= 1.25d+23))) then
tmp = (x - (b * (2.0d0 - (y + t)))) + t_1
else
tmp = x + (t_1 + (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 t_1 = a * (1.0 - t);
double tmp;
if ((b <= -3.8e+22) || !(b <= 1.25e+23)) {
tmp = (x - (b * (2.0 - (y + t)))) + t_1;
} else {
tmp = x + (t_1 + (z * (1.0 - y)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if (b <= -3.8e+22) or not (b <= 1.25e+23): tmp = (x - (b * (2.0 - (y + t)))) + t_1 else: tmp = x + (t_1 + (z * (1.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 <= -3.8e+22) || !(b <= 1.25e+23)) tmp = Float64(Float64(x - Float64(b * Float64(2.0 - Float64(y + t)))) + t_1); else tmp = Float64(x + Float64(t_1 + Float64(z * Float64(1.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 <= -3.8e+22) || ~((b <= 1.25e+23))) tmp = (x - (b * (2.0 - (y + t)))) + t_1; else tmp = x + (t_1 + (z * (1.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[Or[LessEqual[b, -3.8e+22], N[Not[LessEqual[b, 1.25e+23]], $MachinePrecision]], N[(N[(x - N[(b * N[(2.0 - N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(x + N[(t$95$1 + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{+22} \lor \neg \left(b \leq 1.25 \cdot 10^{+23}\right):\\
\;\;\;\;\left(x - b \cdot \left(2 - \left(y + t\right)\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(t_1 + z \cdot \left(1 - y\right)\right)\\
\end{array}
\end{array}
if b < -3.8000000000000004e22 or 1.25e23 < b Initial program 85.0%
Taylor expanded in z around 0 79.2%
if -3.8000000000000004e22 < b < 1.25e23Initial program 99.2%
Taylor expanded in b around 0 97.2%
Final simplification87.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- z))))
(if (<= y -1.3e+110)
(* y b)
(if (<= y -5.6e+63)
(* t (- a))
(if (<= y -8e+37)
t_1
(if (<= y -2.15e-89)
(+ x z)
(if (<= y -1.16e-119)
(* t b)
(if (<= y 2.1e-48) (+ x z) (if (<= y 5.6e+66) (* t b) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (y <= -1.3e+110) {
tmp = y * b;
} else if (y <= -5.6e+63) {
tmp = t * -a;
} else if (y <= -8e+37) {
tmp = t_1;
} else if (y <= -2.15e-89) {
tmp = x + z;
} else if (y <= -1.16e-119) {
tmp = t * b;
} else if (y <= 2.1e-48) {
tmp = x + z;
} else if (y <= 5.6e+66) {
tmp = t * b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * -z
if (y <= (-1.3d+110)) then
tmp = y * b
else if (y <= (-5.6d+63)) then
tmp = t * -a
else if (y <= (-8d+37)) then
tmp = t_1
else if (y <= (-2.15d-89)) then
tmp = x + z
else if (y <= (-1.16d-119)) then
tmp = t * b
else if (y <= 2.1d-48) then
tmp = x + z
else if (y <= 5.6d+66) then
tmp = t * b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (y <= -1.3e+110) {
tmp = y * b;
} else if (y <= -5.6e+63) {
tmp = t * -a;
} else if (y <= -8e+37) {
tmp = t_1;
} else if (y <= -2.15e-89) {
tmp = x + z;
} else if (y <= -1.16e-119) {
tmp = t * b;
} else if (y <= 2.1e-48) {
tmp = x + z;
} else if (y <= 5.6e+66) {
tmp = t * b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * -z tmp = 0 if y <= -1.3e+110: tmp = y * b elif y <= -5.6e+63: tmp = t * -a elif y <= -8e+37: tmp = t_1 elif y <= -2.15e-89: tmp = x + z elif y <= -1.16e-119: tmp = t * b elif y <= 2.1e-48: tmp = x + z elif y <= 5.6e+66: tmp = t * b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(-z)) tmp = 0.0 if (y <= -1.3e+110) tmp = Float64(y * b); elseif (y <= -5.6e+63) tmp = Float64(t * Float64(-a)); elseif (y <= -8e+37) tmp = t_1; elseif (y <= -2.15e-89) tmp = Float64(x + z); elseif (y <= -1.16e-119) tmp = Float64(t * b); elseif (y <= 2.1e-48) tmp = Float64(x + z); elseif (y <= 5.6e+66) tmp = Float64(t * b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * -z; tmp = 0.0; if (y <= -1.3e+110) tmp = y * b; elseif (y <= -5.6e+63) tmp = t * -a; elseif (y <= -8e+37) tmp = t_1; elseif (y <= -2.15e-89) tmp = x + z; elseif (y <= -1.16e-119) tmp = t * b; elseif (y <= 2.1e-48) tmp = x + z; elseif (y <= 5.6e+66) tmp = t * b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * (-z)), $MachinePrecision]}, If[LessEqual[y, -1.3e+110], N[(y * b), $MachinePrecision], If[LessEqual[y, -5.6e+63], N[(t * (-a)), $MachinePrecision], If[LessEqual[y, -8e+37], t$95$1, If[LessEqual[y, -2.15e-89], N[(x + z), $MachinePrecision], If[LessEqual[y, -1.16e-119], N[(t * b), $MachinePrecision], If[LessEqual[y, 2.1e-48], N[(x + z), $MachinePrecision], If[LessEqual[y, 5.6e+66], N[(t * b), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(-z\right)\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+110}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -5.6 \cdot 10^{+63}:\\
\;\;\;\;t \cdot \left(-a\right)\\
\mathbf{elif}\;y \leq -8 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-89}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq -1.16 \cdot 10^{-119}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-48}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+66}:\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.3e110Initial program 78.1%
Taylor expanded in y around inf 81.9%
Taylor expanded in b around inf 60.4%
if -1.3e110 < y < -5.59999999999999974e63Initial program 83.3%
Taylor expanded in a around inf 59.0%
Taylor expanded in t around inf 51.1%
associate-*r*51.1%
mul-1-neg51.1%
Simplified51.1%
if -5.59999999999999974e63 < y < -7.99999999999999963e37 or 5.6000000000000001e66 < y Initial program 84.8%
Taylor expanded in z around inf 41.9%
Taylor expanded in y around inf 41.9%
mul-1-neg41.9%
distribute-rgt-neg-in41.9%
Simplified41.9%
if -7.99999999999999963e37 < y < -2.14999999999999993e-89 or -1.16e-119 < y < 2.09999999999999989e-48Initial program 98.2%
Taylor expanded in a around 0 74.3%
Taylor expanded in y around 0 73.5%
associate--l+73.5%
sub-neg73.5%
metadata-eval73.5%
neg-mul-173.5%
Simplified73.5%
Taylor expanded in b around 0 48.0%
if -2.14999999999999993e-89 < y < -1.16e-119 or 2.09999999999999989e-48 < y < 5.6000000000000001e66Initial program 100.0%
Taylor expanded in b around inf 53.4%
Taylor expanded in t around inf 43.8%
Final simplification47.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= a -7.8e+32)
t_1
(if (<= a -2.25e-167)
(+ x z)
(if (<= a 1.75e-276)
(* y b)
(if (<= a 125.0)
(+ x z)
(if (<= a 1e+44) (* t b) (if (<= a 2.5e+73) (* y (- z)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (a <= -7.8e+32) {
tmp = t_1;
} else if (a <= -2.25e-167) {
tmp = x + z;
} else if (a <= 1.75e-276) {
tmp = y * b;
} else if (a <= 125.0) {
tmp = x + z;
} else if (a <= 1e+44) {
tmp = t * b;
} else if (a <= 2.5e+73) {
tmp = y * -z;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if (a <= (-7.8d+32)) then
tmp = t_1
else if (a <= (-2.25d-167)) then
tmp = x + z
else if (a <= 1.75d-276) then
tmp = y * b
else if (a <= 125.0d0) then
tmp = x + z
else if (a <= 1d+44) then
tmp = t * b
else if (a <= 2.5d+73) then
tmp = y * -z
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (a <= -7.8e+32) {
tmp = t_1;
} else if (a <= -2.25e-167) {
tmp = x + z;
} else if (a <= 1.75e-276) {
tmp = y * b;
} else if (a <= 125.0) {
tmp = x + z;
} else if (a <= 1e+44) {
tmp = t * b;
} else if (a <= 2.5e+73) {
tmp = y * -z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if a <= -7.8e+32: tmp = t_1 elif a <= -2.25e-167: tmp = x + z elif a <= 1.75e-276: tmp = y * b elif a <= 125.0: tmp = x + z elif a <= 1e+44: tmp = t * b elif a <= 2.5e+73: tmp = y * -z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (a <= -7.8e+32) tmp = t_1; elseif (a <= -2.25e-167) tmp = Float64(x + z); elseif (a <= 1.75e-276) tmp = Float64(y * b); elseif (a <= 125.0) tmp = Float64(x + z); elseif (a <= 1e+44) tmp = Float64(t * b); elseif (a <= 2.5e+73) tmp = Float64(y * Float64(-z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (a <= -7.8e+32) tmp = t_1; elseif (a <= -2.25e-167) tmp = x + z; elseif (a <= 1.75e-276) tmp = y * b; elseif (a <= 125.0) tmp = x + z; elseif (a <= 1e+44) tmp = t * b; elseif (a <= 2.5e+73) tmp = y * -z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+32], t$95$1, If[LessEqual[a, -2.25e-167], N[(x + z), $MachinePrecision], If[LessEqual[a, 1.75e-276], N[(y * b), $MachinePrecision], If[LessEqual[a, 125.0], N[(x + z), $MachinePrecision], If[LessEqual[a, 1e+44], N[(t * b), $MachinePrecision], If[LessEqual[a, 2.5e+73], N[(y * (-z)), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -7.8 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.25 \cdot 10^{-167}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-276}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;a \leq 125:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 10^{+44}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+73}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -7.7999999999999998e32 or 2.49999999999999988e73 < a Initial program 86.9%
Taylor expanded in a around inf 58.5%
if -7.7999999999999998e32 < a < -2.2500000000000001e-167 or 1.74999999999999996e-276 < a < 125Initial program 97.8%
Taylor expanded in a around 0 95.6%
Taylor expanded in y around 0 71.0%
associate--l+71.0%
sub-neg71.0%
metadata-eval71.0%
neg-mul-171.0%
Simplified71.0%
Taylor expanded in b around 0 44.9%
if -2.2500000000000001e-167 < a < 1.74999999999999996e-276Initial program 91.3%
Taylor expanded in y around inf 49.1%
Taylor expanded in b around inf 32.5%
if 125 < a < 1.0000000000000001e44Initial program 83.3%
Taylor expanded in b around inf 84.3%
Taylor expanded in t around inf 83.4%
if 1.0000000000000001e44 < a < 2.49999999999999988e73Initial program 99.8%
Taylor expanded in z around inf 75.8%
Taylor expanded in y around inf 40.5%
mul-1-neg40.5%
distribute-rgt-neg-in40.5%
Simplified40.5%
Final simplification49.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))) (t_2 (* y (- b z))))
(if (<= y -4.4e+109)
t_2
(if (<= y -3.7e+15)
t_1
(if (<= y -3.2e-87)
(+ x z)
(if (<= y -1.55e-134)
t_1
(if (<= y 1.25e-102) (+ x z) (if (<= y 1.12e+79) 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 <= -4.4e+109) {
tmp = t_2;
} else if (y <= -3.7e+15) {
tmp = t_1;
} else if (y <= -3.2e-87) {
tmp = x + z;
} else if (y <= -1.55e-134) {
tmp = t_1;
} else if (y <= 1.25e-102) {
tmp = x + z;
} else if (y <= 1.12e+79) {
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 <= (-4.4d+109)) then
tmp = t_2
else if (y <= (-3.7d+15)) then
tmp = t_1
else if (y <= (-3.2d-87)) then
tmp = x + z
else if (y <= (-1.55d-134)) then
tmp = t_1
else if (y <= 1.25d-102) then
tmp = x + z
else if (y <= 1.12d+79) 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 <= -4.4e+109) {
tmp = t_2;
} else if (y <= -3.7e+15) {
tmp = t_1;
} else if (y <= -3.2e-87) {
tmp = x + z;
} else if (y <= -1.55e-134) {
tmp = t_1;
} else if (y <= 1.25e-102) {
tmp = x + z;
} else if (y <= 1.12e+79) {
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 <= -4.4e+109: tmp = t_2 elif y <= -3.7e+15: tmp = t_1 elif y <= -3.2e-87: tmp = x + z elif y <= -1.55e-134: tmp = t_1 elif y <= 1.25e-102: tmp = x + z elif y <= 1.12e+79: 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 <= -4.4e+109) tmp = t_2; elseif (y <= -3.7e+15) tmp = t_1; elseif (y <= -3.2e-87) tmp = Float64(x + z); elseif (y <= -1.55e-134) tmp = t_1; elseif (y <= 1.25e-102) tmp = Float64(x + z); elseif (y <= 1.12e+79) 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 <= -4.4e+109) tmp = t_2; elseif (y <= -3.7e+15) tmp = t_1; elseif (y <= -3.2e-87) tmp = x + z; elseif (y <= -1.55e-134) tmp = t_1; elseif (y <= 1.25e-102) tmp = x + z; elseif (y <= 1.12e+79) 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, -4.4e+109], t$95$2, If[LessEqual[y, -3.7e+15], t$95$1, If[LessEqual[y, -3.2e-87], N[(x + z), $MachinePrecision], If[LessEqual[y, -1.55e-134], t$95$1, If[LessEqual[y, 1.25e-102], N[(x + z), $MachinePrecision], If[LessEqual[y, 1.12e+79], 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 -4.4 \cdot 10^{+109}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-87}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{-134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-102}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.3999999999999998e109 or 1.12e79 < y Initial program 81.1%
Taylor expanded in y around inf 71.6%
if -4.3999999999999998e109 < y < -3.7e15 or -3.19999999999999979e-87 < y < -1.55000000000000003e-134 or 1.25000000000000006e-102 < y < 1.12e79Initial program 95.8%
Taylor expanded in t around inf 51.9%
if -3.7e15 < y < -3.19999999999999979e-87 or -1.55000000000000003e-134 < y < 1.25000000000000006e-102Initial program 98.9%
Taylor expanded in a around 0 75.4%
Taylor expanded in y around 0 75.3%
associate--l+75.3%
sub-neg75.3%
metadata-eval75.3%
neg-mul-175.3%
Simplified75.3%
Taylor expanded in b around 0 52.8%
Final simplification59.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -1.2e+64)
t_1
(if (<= b 2.05e-290)
(+ x (* a (- 1.0 t)))
(if (or (<= b 1.7e+24) (and (not (<= b 1.35e+42)) (<= b 8.5e+100)))
(+ x (- z (* y z)))
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 <= -1.2e+64) {
tmp = t_1;
} else if (b <= 2.05e-290) {
tmp = x + (a * (1.0 - t));
} else if ((b <= 1.7e+24) || (!(b <= 1.35e+42) && (b <= 8.5e+100))) {
tmp = x + (z - (y * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((y + t) - 2.0d0)
if (b <= (-1.2d+64)) then
tmp = t_1
else if (b <= 2.05d-290) then
tmp = x + (a * (1.0d0 - t))
else if ((b <= 1.7d+24) .or. (.not. (b <= 1.35d+42)) .and. (b <= 8.5d+100)) then
tmp = x + (z - (y * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -1.2e+64) {
tmp = t_1;
} else if (b <= 2.05e-290) {
tmp = x + (a * (1.0 - t));
} else if ((b <= 1.7e+24) || (!(b <= 1.35e+42) && (b <= 8.5e+100))) {
tmp = x + (z - (y * z));
} 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 <= -1.2e+64: tmp = t_1 elif b <= 2.05e-290: tmp = x + (a * (1.0 - t)) elif (b <= 1.7e+24) or (not (b <= 1.35e+42) and (b <= 8.5e+100)): tmp = x + (z - (y * z)) 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 <= -1.2e+64) tmp = t_1; elseif (b <= 2.05e-290) tmp = Float64(x + Float64(a * Float64(1.0 - t))); elseif ((b <= 1.7e+24) || (!(b <= 1.35e+42) && (b <= 8.5e+100))) tmp = Float64(x + Float64(z - Float64(y * z))); 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 <= -1.2e+64) tmp = t_1; elseif (b <= 2.05e-290) tmp = x + (a * (1.0 - t)); elseif ((b <= 1.7e+24) || (~((b <= 1.35e+42)) && (b <= 8.5e+100))) tmp = x + (z - (y * z)); 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, -1.2e+64], t$95$1, If[LessEqual[b, 2.05e-290], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.7e+24], And[N[Not[LessEqual[b, 1.35e+42]], $MachinePrecision], LessEqual[b, 8.5e+100]]], N[(x + N[(z - N[(y * z), $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 -1.2 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-290}:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+24} \lor \neg \left(b \leq 1.35 \cdot 10^{+42}\right) \land b \leq 8.5 \cdot 10^{+100}:\\
\;\;\;\;x + \left(z - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.2e64 or 1.7e24 < b < 1.35e42 or 8.50000000000000043e100 < b Initial program 84.4%
Taylor expanded in b around inf 73.7%
if -1.2e64 < b < 2.0500000000000001e-290Initial program 97.5%
Taylor expanded in b around 0 88.8%
Taylor expanded in a around inf 62.6%
if 2.0500000000000001e-290 < b < 1.7e24 or 1.35e42 < b < 8.50000000000000043e100Initial program 96.9%
Taylor expanded in b around 0 97.1%
Taylor expanded in a around 0 73.8%
sub-neg73.8%
metadata-eval73.8%
distribute-rgt-in73.8%
neg-mul-173.8%
unsub-neg73.8%
Simplified73.8%
Final simplification70.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= b -6.5e+42)
(and (not (<= b 1.5e+24)) (or (<= b 7.5e+38) (not (<= b 3.1e+98)))))
(- x (* b (- 2.0 (+ y t))))
(+ x (+ a (- z (* y z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6.5e+42) || (!(b <= 1.5e+24) && ((b <= 7.5e+38) || !(b <= 3.1e+98)))) {
tmp = x - (b * (2.0 - (y + t)));
} else {
tmp = x + (a + (z - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-6.5d+42)) .or. (.not. (b <= 1.5d+24)) .and. (b <= 7.5d+38) .or. (.not. (b <= 3.1d+98))) then
tmp = x - (b * (2.0d0 - (y + t)))
else
tmp = x + (a + (z - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -6.5e+42) || (!(b <= 1.5e+24) && ((b <= 7.5e+38) || !(b <= 3.1e+98)))) {
tmp = x - (b * (2.0 - (y + t)));
} else {
tmp = x + (a + (z - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -6.5e+42) or (not (b <= 1.5e+24) and ((b <= 7.5e+38) or not (b <= 3.1e+98))): tmp = x - (b * (2.0 - (y + t))) else: tmp = x + (a + (z - (y * z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -6.5e+42) || (!(b <= 1.5e+24) && ((b <= 7.5e+38) || !(b <= 3.1e+98)))) tmp = Float64(x - Float64(b * Float64(2.0 - Float64(y + t)))); else tmp = Float64(x + Float64(a + Float64(z - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -6.5e+42) || (~((b <= 1.5e+24)) && ((b <= 7.5e+38) || ~((b <= 3.1e+98))))) tmp = x - (b * (2.0 - (y + t))); else tmp = x + (a + (z - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -6.5e+42], And[N[Not[LessEqual[b, 1.5e+24]], $MachinePrecision], Or[LessEqual[b, 7.5e+38], N[Not[LessEqual[b, 3.1e+98]], $MachinePrecision]]]], N[(x - N[(b * N[(2.0 - N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(a + N[(z - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{+42} \lor \neg \left(b \leq 1.5 \cdot 10^{+24}\right) \land \left(b \leq 7.5 \cdot 10^{+38} \lor \neg \left(b \leq 3.1 \cdot 10^{+98}\right)\right):\\
\;\;\;\;x - b \cdot \left(2 - \left(y + t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(a + \left(z - y \cdot z\right)\right)\\
\end{array}
\end{array}
if b < -6.50000000000000052e42 or 1.49999999999999997e24 < b < 7.4999999999999999e38 or 3.10000000000000019e98 < b Initial program 85.1%
Taylor expanded in a around 0 83.3%
Taylor expanded in z around 0 79.1%
if -6.50000000000000052e42 < b < 1.49999999999999997e24 or 7.4999999999999999e38 < b < 3.10000000000000019e98Initial program 97.2%
Taylor expanded in b around 0 93.6%
Taylor expanded in t around 0 69.7%
+-commutative69.7%
sub-neg69.7%
metadata-eval69.7%
mul-1-neg69.7%
unsub-neg69.7%
distribute-rgt-in69.7%
neg-mul-169.7%
unsub-neg69.7%
Simplified69.7%
Final simplification73.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (* b (- 2.0 (+ y t))))))
(if (<= b -9e+42)
t_1
(if (<= b 1.7e+24)
(+ x (+ (* a (- 1.0 t)) (* z (- 1.0 y))))
(if (or (<= b 1.15e+39) (not (<= b 2.5e+97)))
t_1
(+ x (+ a (- z (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (b * (2.0 - (y + t)));
double tmp;
if (b <= -9e+42) {
tmp = t_1;
} else if (b <= 1.7e+24) {
tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
} else if ((b <= 1.15e+39) || !(b <= 2.5e+97)) {
tmp = t_1;
} else {
tmp = x + (a + (z - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x - (b * (2.0d0 - (y + t)))
if (b <= (-9d+42)) then
tmp = t_1
else if (b <= 1.7d+24) then
tmp = x + ((a * (1.0d0 - t)) + (z * (1.0d0 - y)))
else if ((b <= 1.15d+39) .or. (.not. (b <= 2.5d+97))) then
tmp = t_1
else
tmp = x + (a + (z - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (b * (2.0 - (y + t)));
double tmp;
if (b <= -9e+42) {
tmp = t_1;
} else if (b <= 1.7e+24) {
tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
} else if ((b <= 1.15e+39) || !(b <= 2.5e+97)) {
tmp = t_1;
} else {
tmp = x + (a + (z - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (b * (2.0 - (y + t))) tmp = 0 if b <= -9e+42: tmp = t_1 elif b <= 1.7e+24: tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y))) elif (b <= 1.15e+39) or not (b <= 2.5e+97): tmp = t_1 else: tmp = x + (a + (z - (y * z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(b * Float64(2.0 - Float64(y + t)))) tmp = 0.0 if (b <= -9e+42) tmp = t_1; elseif (b <= 1.7e+24) tmp = Float64(x + Float64(Float64(a * Float64(1.0 - t)) + Float64(z * Float64(1.0 - y)))); elseif ((b <= 1.15e+39) || !(b <= 2.5e+97)) tmp = t_1; else tmp = Float64(x + Float64(a + Float64(z - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (b * (2.0 - (y + t))); tmp = 0.0; if (b <= -9e+42) tmp = t_1; elseif (b <= 1.7e+24) tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y))); elseif ((b <= 1.15e+39) || ~((b <= 2.5e+97))) tmp = t_1; else tmp = x + (a + (z - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(b * N[(2.0 - N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e+42], t$95$1, If[LessEqual[b, 1.7e+24], N[(x + N[(N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.15e+39], N[Not[LessEqual[b, 2.5e+97]], $MachinePrecision]], t$95$1, N[(x + N[(a + N[(z - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - b \cdot \left(2 - \left(y + t\right)\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+24}:\\
\;\;\;\;x + \left(a \cdot \left(1 - t\right) + z \cdot \left(1 - y\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+39} \lor \neg \left(b \leq 2.5 \cdot 10^{+97}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(a + \left(z - y \cdot z\right)\right)\\
\end{array}
\end{array}
if b < -9.00000000000000025e42 or 1.7e24 < b < 1.15000000000000006e39 or 2.49999999999999999e97 < b Initial program 85.1%
Taylor expanded in a around 0 83.3%
Taylor expanded in z around 0 79.1%
if -9.00000000000000025e42 < b < 1.7e24Initial program 98.4%
Taylor expanded in b around 0 94.6%
if 1.15000000000000006e39 < b < 2.49999999999999999e97Initial program 81.8%
Taylor expanded in b around 0 82.2%
Taylor expanded in t around 0 82.6%
+-commutative82.6%
sub-neg82.6%
metadata-eval82.6%
mul-1-neg82.6%
unsub-neg82.6%
distribute-rgt-in82.6%
neg-mul-182.6%
unsub-neg82.6%
Simplified82.6%
Final simplification87.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- t 2.0))) (t_2 (* a (- 1.0 t))))
(if (<= a -4e+31)
t_2
(if (<= a -7.5e-140)
(+ x z)
(if (<= a 4.3e-277)
t_1
(if (<= a 1.15e-40) (+ x z) (if (<= a 2e+106) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (t - 2.0);
double t_2 = a * (1.0 - t);
double tmp;
if (a <= -4e+31) {
tmp = t_2;
} else if (a <= -7.5e-140) {
tmp = x + z;
} else if (a <= 4.3e-277) {
tmp = t_1;
} else if (a <= 1.15e-40) {
tmp = x + z;
} else if (a <= 2e+106) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (t - 2.0d0)
t_2 = a * (1.0d0 - t)
if (a <= (-4d+31)) then
tmp = t_2
else if (a <= (-7.5d-140)) then
tmp = x + z
else if (a <= 4.3d-277) then
tmp = t_1
else if (a <= 1.15d-40) then
tmp = x + z
else if (a <= 2d+106) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (t - 2.0);
double t_2 = a * (1.0 - t);
double tmp;
if (a <= -4e+31) {
tmp = t_2;
} else if (a <= -7.5e-140) {
tmp = x + z;
} else if (a <= 4.3e-277) {
tmp = t_1;
} else if (a <= 1.15e-40) {
tmp = x + z;
} else if (a <= 2e+106) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (t - 2.0) t_2 = a * (1.0 - t) tmp = 0 if a <= -4e+31: tmp = t_2 elif a <= -7.5e-140: tmp = x + z elif a <= 4.3e-277: tmp = t_1 elif a <= 1.15e-40: tmp = x + z elif a <= 2e+106: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(t - 2.0)) t_2 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (a <= -4e+31) tmp = t_2; elseif (a <= -7.5e-140) tmp = Float64(x + z); elseif (a <= 4.3e-277) tmp = t_1; elseif (a <= 1.15e-40) tmp = Float64(x + z); elseif (a <= 2e+106) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (t - 2.0); t_2 = a * (1.0 - t); tmp = 0.0; if (a <= -4e+31) tmp = t_2; elseif (a <= -7.5e-140) tmp = x + z; elseif (a <= 4.3e-277) tmp = t_1; elseif (a <= 1.15e-40) tmp = x + z; elseif (a <= 2e+106) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(t - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4e+31], t$95$2, If[LessEqual[a, -7.5e-140], N[(x + z), $MachinePrecision], If[LessEqual[a, 4.3e-277], t$95$1, If[LessEqual[a, 1.15e-40], N[(x + z), $MachinePrecision], If[LessEqual[a, 2e+106], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t - 2\right)\\
t_2 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -4 \cdot 10^{+31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-140}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-40}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.9999999999999999e31 or 2.00000000000000018e106 < a Initial program 87.5%
Taylor expanded in a around inf 59.6%
if -3.9999999999999999e31 < a < -7.4999999999999998e-140 or 4.2999999999999999e-277 < a < 1.15e-40Initial program 97.5%
Taylor expanded in a around 0 95.1%
Taylor expanded in y around 0 69.9%
associate--l+69.9%
sub-neg69.9%
metadata-eval69.9%
neg-mul-169.9%
Simplified69.9%
Taylor expanded in b around 0 47.9%
if -7.4999999999999998e-140 < a < 4.2999999999999999e-277 or 1.15e-40 < a < 2.00000000000000018e106Initial program 91.7%
Taylor expanded in b around inf 62.1%
Taylor expanded in y around 0 40.8%
Final simplification50.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (* b (- 2.0 (+ y t))))))
(if (<= b -2.6e+42)
t_1
(if (<= b 4.4e-290)
(+ x (* a (- 1.0 t)))
(if (<= b 7.8e+23) (+ x (- z (* y z))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (b * (2.0 - (y + t)));
double tmp;
if (b <= -2.6e+42) {
tmp = t_1;
} else if (b <= 4.4e-290) {
tmp = x + (a * (1.0 - t));
} else if (b <= 7.8e+23) {
tmp = x + (z - (y * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x - (b * (2.0d0 - (y + t)))
if (b <= (-2.6d+42)) then
tmp = t_1
else if (b <= 4.4d-290) then
tmp = x + (a * (1.0d0 - t))
else if (b <= 7.8d+23) then
tmp = x + (z - (y * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (b * (2.0 - (y + t)));
double tmp;
if (b <= -2.6e+42) {
tmp = t_1;
} else if (b <= 4.4e-290) {
tmp = x + (a * (1.0 - t));
} else if (b <= 7.8e+23) {
tmp = x + (z - (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (b * (2.0 - (y + t))) tmp = 0 if b <= -2.6e+42: tmp = t_1 elif b <= 4.4e-290: tmp = x + (a * (1.0 - t)) elif b <= 7.8e+23: tmp = x + (z - (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(b * Float64(2.0 - Float64(y + t)))) tmp = 0.0 if (b <= -2.6e+42) tmp = t_1; elseif (b <= 4.4e-290) tmp = Float64(x + Float64(a * Float64(1.0 - t))); elseif (b <= 7.8e+23) tmp = Float64(x + Float64(z - Float64(y * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (b * (2.0 - (y + t))); tmp = 0.0; if (b <= -2.6e+42) tmp = t_1; elseif (b <= 4.4e-290) tmp = x + (a * (1.0 - t)); elseif (b <= 7.8e+23) tmp = x + (z - (y * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(b * N[(2.0 - N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.6e+42], t$95$1, If[LessEqual[b, 4.4e-290], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.8e+23], N[(x + N[(z - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - b \cdot \left(2 - \left(y + t\right)\right)\\
\mathbf{if}\;b \leq -2.6 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-290}:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{+23}:\\
\;\;\;\;x + \left(z - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.5999999999999999e42 or 7.8000000000000001e23 < b Initial program 84.8%
Taylor expanded in a around 0 81.6%
Taylor expanded in z around 0 75.4%
if -2.5999999999999999e42 < b < 4.4000000000000002e-290Initial program 97.3%
Taylor expanded in b around 0 91.7%
Taylor expanded in a around inf 63.6%
if 4.4000000000000002e-290 < b < 7.8000000000000001e23Initial program 100.0%
Taylor expanded in b around 0 98.3%
Taylor expanded in a around 0 72.6%
sub-neg72.6%
metadata-eval72.6%
distribute-rgt-in72.6%
neg-mul-172.6%
unsub-neg72.6%
Simplified72.6%
Final simplification71.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -3.5e+79)
(* y b)
(if (<= y -6.8e-90)
(+ x z)
(if (<= y -3.2e-119)
(* t b)
(if (<= y 1.8e-46) (+ x z) (if (<= y 5.6e+66) (* t b) (* y (- z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -3.5e+79) {
tmp = y * b;
} else if (y <= -6.8e-90) {
tmp = x + z;
} else if (y <= -3.2e-119) {
tmp = t * b;
} else if (y <= 1.8e-46) {
tmp = x + z;
} else if (y <= 5.6e+66) {
tmp = t * b;
} else {
tmp = 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 (y <= (-3.5d+79)) then
tmp = y * b
else if (y <= (-6.8d-90)) then
tmp = x + z
else if (y <= (-3.2d-119)) then
tmp = t * b
else if (y <= 1.8d-46) then
tmp = x + z
else if (y <= 5.6d+66) then
tmp = t * b
else
tmp = 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 (y <= -3.5e+79) {
tmp = y * b;
} else if (y <= -6.8e-90) {
tmp = x + z;
} else if (y <= -3.2e-119) {
tmp = t * b;
} else if (y <= 1.8e-46) {
tmp = x + z;
} else if (y <= 5.6e+66) {
tmp = t * b;
} else {
tmp = y * -z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -3.5e+79: tmp = y * b elif y <= -6.8e-90: tmp = x + z elif y <= -3.2e-119: tmp = t * b elif y <= 1.8e-46: tmp = x + z elif y <= 5.6e+66: tmp = t * b else: tmp = y * -z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -3.5e+79) tmp = Float64(y * b); elseif (y <= -6.8e-90) tmp = Float64(x + z); elseif (y <= -3.2e-119) tmp = Float64(t * b); elseif (y <= 1.8e-46) tmp = Float64(x + z); elseif (y <= 5.6e+66) tmp = Float64(t * b); else tmp = Float64(y * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -3.5e+79) tmp = y * b; elseif (y <= -6.8e-90) tmp = x + z; elseif (y <= -3.2e-119) tmp = t * b; elseif (y <= 1.8e-46) tmp = x + z; elseif (y <= 5.6e+66) tmp = t * b; else tmp = y * -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -3.5e+79], N[(y * b), $MachinePrecision], If[LessEqual[y, -6.8e-90], N[(x + z), $MachinePrecision], If[LessEqual[y, -3.2e-119], N[(t * b), $MachinePrecision], If[LessEqual[y, 1.8e-46], N[(x + z), $MachinePrecision], If[LessEqual[y, 5.6e+66], N[(t * b), $MachinePrecision], N[(y * (-z)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-90}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-119}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-46}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+66}:\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\end{array}
\end{array}
if y < -3.4999999999999998e79Initial program 78.4%
Taylor expanded in y around inf 76.3%
Taylor expanded in b around inf 57.7%
if -3.4999999999999998e79 < y < -6.79999999999999988e-90 or -3.19999999999999993e-119 < y < 1.8e-46Initial program 97.6%
Taylor expanded in a around 0 71.9%
Taylor expanded in y around 0 68.3%
associate--l+68.3%
sub-neg68.3%
metadata-eval68.3%
neg-mul-168.3%
Simplified68.3%
Taylor expanded in b around 0 44.1%
if -6.79999999999999988e-90 < y < -3.19999999999999993e-119 or 1.8e-46 < y < 5.6000000000000001e66Initial program 100.0%
Taylor expanded in b around inf 53.4%
Taylor expanded in t around inf 43.8%
if 5.6000000000000001e66 < y Initial program 83.8%
Taylor expanded in z around inf 41.3%
Taylor expanded in y around inf 41.3%
mul-1-neg41.3%
distribute-rgt-neg-in41.3%
Simplified41.3%
Final simplification45.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -1.8e+37)
(* t b)
(if (<= t -1.95e-292)
x
(if (<= t 3.3e-273)
z
(if (<= t 5.5e-99) a (if (<= t 2.1e+33) z (* t b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.8e+37) {
tmp = t * b;
} else if (t <= -1.95e-292) {
tmp = x;
} else if (t <= 3.3e-273) {
tmp = z;
} else if (t <= 5.5e-99) {
tmp = a;
} else if (t <= 2.1e+33) {
tmp = 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 (t <= (-1.8d+37)) then
tmp = t * b
else if (t <= (-1.95d-292)) then
tmp = x
else if (t <= 3.3d-273) then
tmp = z
else if (t <= 5.5d-99) then
tmp = a
else if (t <= 2.1d+33) then
tmp = 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 (t <= -1.8e+37) {
tmp = t * b;
} else if (t <= -1.95e-292) {
tmp = x;
} else if (t <= 3.3e-273) {
tmp = z;
} else if (t <= 5.5e-99) {
tmp = a;
} else if (t <= 2.1e+33) {
tmp = z;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.8e+37: tmp = t * b elif t <= -1.95e-292: tmp = x elif t <= 3.3e-273: tmp = z elif t <= 5.5e-99: tmp = a elif t <= 2.1e+33: tmp = z else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.8e+37) tmp = Float64(t * b); elseif (t <= -1.95e-292) tmp = x; elseif (t <= 3.3e-273) tmp = z; elseif (t <= 5.5e-99) tmp = a; elseif (t <= 2.1e+33) tmp = z; else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.8e+37) tmp = t * b; elseif (t <= -1.95e-292) tmp = x; elseif (t <= 3.3e-273) tmp = z; elseif (t <= 5.5e-99) tmp = a; elseif (t <= 2.1e+33) tmp = z; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.8e+37], N[(t * b), $MachinePrecision], If[LessEqual[t, -1.95e-292], x, If[LessEqual[t, 3.3e-273], z, If[LessEqual[t, 5.5e-99], a, If[LessEqual[t, 2.1e+33], z, N[(t * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{+37}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-292}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-273}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-99}:\\
\;\;\;\;a\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+33}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if t < -1.79999999999999999e37 or 2.1000000000000001e33 < t Initial program 86.0%
Taylor expanded in b around inf 45.4%
Taylor expanded in t around inf 36.4%
if -1.79999999999999999e37 < t < -1.95e-292Initial program 96.6%
Taylor expanded in x around inf 24.5%
if -1.95e-292 < t < 3.2999999999999999e-273 or 5.49999999999999991e-99 < t < 2.1000000000000001e33Initial program 98.1%
Taylor expanded in z around inf 41.7%
Taylor expanded in y around 0 27.7%
if 3.2999999999999999e-273 < t < 5.49999999999999991e-99Initial program 93.3%
Taylor expanded in a around inf 36.7%
Taylor expanded in t around 0 36.7%
Final simplification31.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -5.2e+83)
(* y b)
(if (<= y -5e-86)
(+ x z)
(if (<= y -1.35e-120)
(* t b)
(if (<= y 9.5e-48) (+ x z) (if (<= y 1e+79) (* t b) (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.2e+83) {
tmp = y * b;
} else if (y <= -5e-86) {
tmp = x + z;
} else if (y <= -1.35e-120) {
tmp = t * b;
} else if (y <= 9.5e-48) {
tmp = x + z;
} else if (y <= 1e+79) {
tmp = t * b;
} else {
tmp = y * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-5.2d+83)) then
tmp = y * b
else if (y <= (-5d-86)) then
tmp = x + z
else if (y <= (-1.35d-120)) then
tmp = t * b
else if (y <= 9.5d-48) then
tmp = x + z
else if (y <= 1d+79) then
tmp = t * b
else
tmp = y * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.2e+83) {
tmp = y * b;
} else if (y <= -5e-86) {
tmp = x + z;
} else if (y <= -1.35e-120) {
tmp = t * b;
} else if (y <= 9.5e-48) {
tmp = x + z;
} else if (y <= 1e+79) {
tmp = t * b;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -5.2e+83: tmp = y * b elif y <= -5e-86: tmp = x + z elif y <= -1.35e-120: tmp = t * b elif y <= 9.5e-48: tmp = x + z elif y <= 1e+79: tmp = t * b else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -5.2e+83) tmp = Float64(y * b); elseif (y <= -5e-86) tmp = Float64(x + z); elseif (y <= -1.35e-120) tmp = Float64(t * b); elseif (y <= 9.5e-48) tmp = Float64(x + z); elseif (y <= 1e+79) tmp = Float64(t * b); else tmp = Float64(y * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -5.2e+83) tmp = y * b; elseif (y <= -5e-86) tmp = x + z; elseif (y <= -1.35e-120) tmp = t * b; elseif (y <= 9.5e-48) tmp = x + z; elseif (y <= 1e+79) tmp = t * b; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -5.2e+83], N[(y * b), $MachinePrecision], If[LessEqual[y, -5e-86], N[(x + z), $MachinePrecision], If[LessEqual[y, -1.35e-120], N[(t * b), $MachinePrecision], If[LessEqual[y, 9.5e-48], N[(x + z), $MachinePrecision], If[LessEqual[y, 1e+79], N[(t * b), $MachinePrecision], N[(y * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.2 \cdot 10^{+83}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-86}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-120}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-48}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;y \leq 10^{+79}:\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -5.2000000000000002e83 or 9.99999999999999967e78 < y Initial program 81.0%
Taylor expanded in y around inf 70.0%
Taylor expanded in b around inf 40.1%
if -5.2000000000000002e83 < y < -4.9999999999999999e-86 or -1.3499999999999999e-120 < y < 9.50000000000000036e-48Initial program 97.6%
Taylor expanded in a around 0 71.9%
Taylor expanded in y around 0 68.3%
associate--l+68.3%
sub-neg68.3%
metadata-eval68.3%
neg-mul-168.3%
Simplified68.3%
Taylor expanded in b around 0 44.1%
if -4.9999999999999999e-86 < y < -1.3499999999999999e-120 or 9.50000000000000036e-48 < y < 9.99999999999999967e78Initial program 100.0%
Taylor expanded in b around inf 50.3%
Taylor expanded in t around inf 41.7%
Final simplification42.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.7e+83)
(* y b)
(if (<= y -1.7e-198)
(* t b)
(if (<= y 1.7e-52) z (if (<= y 1.05e+79) (* t b) (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.7e+83) {
tmp = y * b;
} else if (y <= -1.7e-198) {
tmp = t * b;
} else if (y <= 1.7e-52) {
tmp = z;
} else if (y <= 1.05e+79) {
tmp = t * b;
} else {
tmp = y * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-1.7d+83)) then
tmp = y * b
else if (y <= (-1.7d-198)) then
tmp = t * b
else if (y <= 1.7d-52) then
tmp = z
else if (y <= 1.05d+79) then
tmp = t * b
else
tmp = y * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.7e+83) {
tmp = y * b;
} else if (y <= -1.7e-198) {
tmp = t * b;
} else if (y <= 1.7e-52) {
tmp = z;
} else if (y <= 1.05e+79) {
tmp = t * b;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.7e+83: tmp = y * b elif y <= -1.7e-198: tmp = t * b elif y <= 1.7e-52: tmp = z elif y <= 1.05e+79: tmp = t * b else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.7e+83) tmp = Float64(y * b); elseif (y <= -1.7e-198) tmp = Float64(t * b); elseif (y <= 1.7e-52) tmp = z; elseif (y <= 1.05e+79) tmp = Float64(t * b); else tmp = Float64(y * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.7e+83) tmp = y * b; elseif (y <= -1.7e-198) tmp = t * b; elseif (y <= 1.7e-52) tmp = z; elseif (y <= 1.05e+79) tmp = t * b; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.7e+83], N[(y * b), $MachinePrecision], If[LessEqual[y, -1.7e-198], N[(t * b), $MachinePrecision], If[LessEqual[y, 1.7e-52], z, If[LessEqual[y, 1.05e+79], N[(t * b), $MachinePrecision], N[(y * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{+83}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-198}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-52}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+79}:\\
\;\;\;\;t \cdot b\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -1.6999999999999999e83 or 1.05000000000000004e79 < y Initial program 81.0%
Taylor expanded in y around inf 70.0%
Taylor expanded in b around inf 40.1%
if -1.6999999999999999e83 < y < -1.6999999999999999e-198 or 1.70000000000000009e-52 < y < 1.05000000000000004e79Initial program 97.6%
Taylor expanded in b around inf 38.6%
Taylor expanded in t around inf 31.1%
if -1.6999999999999999e-198 < y < 1.70000000000000009e-52Initial program 98.7%
Taylor expanded in z around inf 35.5%
Taylor expanded in y around 0 35.5%
Final simplification35.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -1e+37)
(* t b)
(if (<= t 8.5e-48)
(+ x a)
(if (<= t 2.2e+33) z (if (<= t 2.8e+52) (* y b) (* t b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1e+37) {
tmp = t * b;
} else if (t <= 8.5e-48) {
tmp = x + a;
} else if (t <= 2.2e+33) {
tmp = z;
} else if (t <= 2.8e+52) {
tmp = y * b;
} 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 (t <= (-1d+37)) then
tmp = t * b
else if (t <= 8.5d-48) then
tmp = x + a
else if (t <= 2.2d+33) then
tmp = z
else if (t <= 2.8d+52) then
tmp = y * b
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 (t <= -1e+37) {
tmp = t * b;
} else if (t <= 8.5e-48) {
tmp = x + a;
} else if (t <= 2.2e+33) {
tmp = z;
} else if (t <= 2.8e+52) {
tmp = y * b;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1e+37: tmp = t * b elif t <= 8.5e-48: tmp = x + a elif t <= 2.2e+33: tmp = z elif t <= 2.8e+52: tmp = y * b else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1e+37) tmp = Float64(t * b); elseif (t <= 8.5e-48) tmp = Float64(x + a); elseif (t <= 2.2e+33) tmp = z; elseif (t <= 2.8e+52) tmp = Float64(y * b); else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1e+37) tmp = t * b; elseif (t <= 8.5e-48) tmp = x + a; elseif (t <= 2.2e+33) tmp = z; elseif (t <= 2.8e+52) tmp = y * b; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1e+37], N[(t * b), $MachinePrecision], If[LessEqual[t, 8.5e-48], N[(x + a), $MachinePrecision], If[LessEqual[t, 2.2e+33], z, If[LessEqual[t, 2.8e+52], N[(y * b), $MachinePrecision], N[(t * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+37}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-48}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+33}:\\
\;\;\;\;z\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+52}:\\
\;\;\;\;y \cdot b\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if t < -9.99999999999999954e36 or 2.8e52 < t Initial program 86.3%
Taylor expanded in b around inf 44.3%
Taylor expanded in t around inf 36.7%
if -9.99999999999999954e36 < t < 8.5000000000000004e-48Initial program 95.7%
Taylor expanded in b around 0 73.5%
Taylor expanded in a around inf 41.0%
Taylor expanded in t around 0 39.4%
cancel-sign-sub-inv39.4%
metadata-eval39.4%
*-lft-identity39.4%
Simplified39.4%
if 8.5000000000000004e-48 < t < 2.19999999999999994e33Initial program 99.9%
Taylor expanded in z around inf 42.4%
Taylor expanded in y around 0 28.9%
if 2.19999999999999994e33 < t < 2.8e52Initial program 75.0%
Taylor expanded in y around inf 93.1%
Taylor expanded in b around inf 68.1%
Final simplification37.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -62000000.0)
t_1
(if (<= t 8.5e-83) (+ x a) (if (<= t 4e+25) (+ x z) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -62000000.0) {
tmp = t_1;
} else if (t <= 8.5e-83) {
tmp = x + a;
} else if (t <= 4e+25) {
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 = t * (b - a)
if (t <= (-62000000.0d0)) then
tmp = t_1
else if (t <= 8.5d-83) then
tmp = x + a
else if (t <= 4d+25) 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 = t * (b - a);
double tmp;
if (t <= -62000000.0) {
tmp = t_1;
} else if (t <= 8.5e-83) {
tmp = x + a;
} else if (t <= 4e+25) {
tmp = x + z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -62000000.0: tmp = t_1 elif t <= 8.5e-83: tmp = x + a elif t <= 4e+25: tmp = x + z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -62000000.0) tmp = t_1; elseif (t <= 8.5e-83) tmp = Float64(x + a); elseif (t <= 4e+25) tmp = Float64(x + z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * (b - a); tmp = 0.0; if (t <= -62000000.0) tmp = t_1; elseif (t <= 8.5e-83) tmp = x + a; elseif (t <= 4e+25) tmp = x + z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -62000000.0], t$95$1, If[LessEqual[t, 8.5e-83], N[(x + a), $MachinePrecision], If[LessEqual[t, 4e+25], N[(x + z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -62000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-83}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+25}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -6.2e7 or 4.00000000000000036e25 < t Initial program 87.1%
Taylor expanded in t around inf 65.7%
if -6.2e7 < t < 8.49999999999999938e-83Initial program 94.8%
Taylor expanded in b around 0 73.1%
Taylor expanded in a around inf 41.0%
Taylor expanded in t around 0 41.0%
cancel-sign-sub-inv41.0%
metadata-eval41.0%
*-lft-identity41.0%
Simplified41.0%
if 8.49999999999999938e-83 < t < 4.00000000000000036e25Initial program 100.0%
Taylor expanded in a around 0 94.4%
Taylor expanded in y around 0 65.2%
associate--l+65.2%
sub-neg65.2%
metadata-eval65.2%
neg-mul-165.2%
Simplified65.2%
Taylor expanded in b around 0 43.1%
Final simplification53.3%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.3e+74) x (if (<= x 5.6e-179) z (if (<= x 3.7e+120) a x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.3e+74) {
tmp = x;
} else if (x <= 5.6e-179) {
tmp = z;
} else if (x <= 3.7e+120) {
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 <= (-2.3d+74)) then
tmp = x
else if (x <= 5.6d-179) then
tmp = z
else if (x <= 3.7d+120) 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 <= -2.3e+74) {
tmp = x;
} else if (x <= 5.6e-179) {
tmp = z;
} else if (x <= 3.7e+120) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -2.3e+74: tmp = x elif x <= 5.6e-179: tmp = z elif x <= 3.7e+120: tmp = a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.3e+74) tmp = x; elseif (x <= 5.6e-179) tmp = z; elseif (x <= 3.7e+120) tmp = a; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -2.3e+74) tmp = x; elseif (x <= 5.6e-179) tmp = z; elseif (x <= 3.7e+120) tmp = a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.3e+74], x, If[LessEqual[x, 5.6e-179], z, If[LessEqual[x, 3.7e+120], a, x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.3 \cdot 10^{+74}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-179}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+120}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.2999999999999999e74 or 3.70000000000000024e120 < x Initial program 92.9%
Taylor expanded in x around inf 32.2%
if -2.2999999999999999e74 < x < 5.6000000000000001e-179Initial program 91.6%
Taylor expanded in z around inf 41.5%
Taylor expanded in y around 0 22.4%
if 5.6000000000000001e-179 < x < 3.70000000000000024e120Initial program 90.6%
Taylor expanded in a around inf 37.4%
Taylor expanded in t around 0 20.8%
Final simplification25.2%
(FPCore (x y z t a b) :precision binary64 (if (<= a -1.46e+166) a (if (<= a 95000.0) x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.46e+166) {
tmp = a;
} else if (a <= 95000.0) {
tmp = x;
} else {
tmp = a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= (-1.46d+166)) then
tmp = a
else if (a <= 95000.0d0) then
tmp = x
else
tmp = a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.46e+166) {
tmp = a;
} else if (a <= 95000.0) {
tmp = x;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -1.46e+166: tmp = a elif a <= 95000.0: tmp = x else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -1.46e+166) tmp = a; elseif (a <= 95000.0) tmp = x; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -1.46e+166) tmp = a; elseif (a <= 95000.0) tmp = x; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.46e+166], a, If[LessEqual[a, 95000.0], x, a]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.46 \cdot 10^{+166}:\\
\;\;\;\;a\\
\mathbf{elif}\;a \leq 95000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if a < -1.4600000000000001e166 or 95000 < a Initial program 85.4%
Taylor expanded in a around inf 59.7%
Taylor expanded in t around 0 25.2%
if -1.4600000000000001e166 < a < 95000Initial program 95.2%
Taylor expanded in x around inf 17.3%
Final simplification20.0%
(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 91.8%
Taylor expanded in a around inf 27.3%
Taylor expanded in t around 0 11.3%
Final simplification11.3%
herbie shell --seed 2023297
(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)))