
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.62e+212) (fma (+ y (+ t -2.0)) b (+ x (fma z (- 1.0 y) (* a (- 1.0 t))))) (* b (- (+ y t) 2.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.62e+212) {
tmp = fma((y + (t + -2.0)), b, (x + fma(z, (1.0 - y), (a * (1.0 - t)))));
} else {
tmp = b * ((y + t) - 2.0);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.62e+212) tmp = fma(Float64(y + Float64(t + -2.0)), b, Float64(x + fma(z, Float64(1.0 - y), Float64(a * Float64(1.0 - t))))); else tmp = Float64(b * Float64(Float64(y + t) - 2.0)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.62e+212], N[(N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] * b + N[(x + N[(z * N[(1.0 - y), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.62 \cdot 10^{+212}:\\
\;\;\;\;\mathsf{fma}\left(y + \left(t + -2\right), b, x + \mathsf{fma}\left(z, 1 - y, a \cdot \left(1 - t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\
\end{array}
\end{array}
if b < 1.61999999999999994e212Initial program 95.2%
+-commutative95.2%
fma-define97.8%
associate--l+97.8%
sub-neg97.8%
metadata-eval97.8%
sub-neg97.8%
associate--l+97.8%
*-commutative97.8%
distribute-rgt-neg-in97.8%
fma-neg98.2%
neg-sub098.2%
sub-neg98.2%
+-commutative98.2%
associate--r+98.2%
metadata-eval98.2%
metadata-eval98.2%
*-commutative98.2%
distribute-rgt-neg-in98.2%
neg-sub098.2%
sub-neg98.2%
+-commutative98.2%
associate--r+98.2%
Simplified98.2%
if 1.61999999999999994e212 < b Initial program 81.5%
Taylor expanded in b around inf 96.5%
Final simplification98.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+ (* b (- (+ y t) 2.0)) (- (* a (- 1.0 t)) (- (* 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 * (1.0 - t)) - ((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 * (1.0 - t)) - ((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 * (1.0 - t)) - ((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(1.0 - t)) - 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 * (1.0 - t)) - ((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[(1.0 - t), $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(1 - t\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 57.1%
Final simplification97.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- y 2.0))) (t_2 (* t (- b a))))
(if (<= t -5.2e+35)
t_2
(if (<= t -7.2e-144)
(+ x a)
(if (<= t -7.1e-261)
t_1
(if (<= t 5.7e-229)
(+ x a)
(if (<= t 1.5e-71)
t_1
(if (<= t 5.8e-64)
(+ x a)
(if (<= t 2.95e-46)
(* y (- z))
(if (<= t 3.3e+16) (+ x a) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (y - 2.0);
double t_2 = t * (b - a);
double tmp;
if (t <= -5.2e+35) {
tmp = t_2;
} else if (t <= -7.2e-144) {
tmp = x + a;
} else if (t <= -7.1e-261) {
tmp = t_1;
} else if (t <= 5.7e-229) {
tmp = x + a;
} else if (t <= 1.5e-71) {
tmp = t_1;
} else if (t <= 5.8e-64) {
tmp = x + a;
} else if (t <= 2.95e-46) {
tmp = y * -z;
} else if (t <= 3.3e+16) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (y - 2.0d0)
t_2 = t * (b - a)
if (t <= (-5.2d+35)) then
tmp = t_2
else if (t <= (-7.2d-144)) then
tmp = x + a
else if (t <= (-7.1d-261)) then
tmp = t_1
else if (t <= 5.7d-229) then
tmp = x + a
else if (t <= 1.5d-71) then
tmp = t_1
else if (t <= 5.8d-64) then
tmp = x + a
else if (t <= 2.95d-46) then
tmp = y * -z
else if (t <= 3.3d+16) then
tmp = x + a
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * (y - 2.0);
double t_2 = t * (b - a);
double tmp;
if (t <= -5.2e+35) {
tmp = t_2;
} else if (t <= -7.2e-144) {
tmp = x + a;
} else if (t <= -7.1e-261) {
tmp = t_1;
} else if (t <= 5.7e-229) {
tmp = x + a;
} else if (t <= 1.5e-71) {
tmp = t_1;
} else if (t <= 5.8e-64) {
tmp = x + a;
} else if (t <= 2.95e-46) {
tmp = y * -z;
} else if (t <= 3.3e+16) {
tmp = x + a;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * (y - 2.0) t_2 = t * (b - a) tmp = 0 if t <= -5.2e+35: tmp = t_2 elif t <= -7.2e-144: tmp = x + a elif t <= -7.1e-261: tmp = t_1 elif t <= 5.7e-229: tmp = x + a elif t <= 1.5e-71: tmp = t_1 elif t <= 5.8e-64: tmp = x + a elif t <= 2.95e-46: tmp = y * -z elif t <= 3.3e+16: tmp = x + a else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(y - 2.0)) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -5.2e+35) tmp = t_2; elseif (t <= -7.2e-144) tmp = Float64(x + a); elseif (t <= -7.1e-261) tmp = t_1; elseif (t <= 5.7e-229) tmp = Float64(x + a); elseif (t <= 1.5e-71) tmp = t_1; elseif (t <= 5.8e-64) tmp = Float64(x + a); elseif (t <= 2.95e-46) tmp = Float64(y * Float64(-z)); elseif (t <= 3.3e+16) tmp = Float64(x + a); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * (y - 2.0); t_2 = t * (b - a); tmp = 0.0; if (t <= -5.2e+35) tmp = t_2; elseif (t <= -7.2e-144) tmp = x + a; elseif (t <= -7.1e-261) tmp = t_1; elseif (t <= 5.7e-229) tmp = x + a; elseif (t <= 1.5e-71) tmp = t_1; elseif (t <= 5.8e-64) tmp = x + a; elseif (t <= 2.95e-46) tmp = y * -z; elseif (t <= 3.3e+16) tmp = x + a; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e+35], t$95$2, If[LessEqual[t, -7.2e-144], N[(x + a), $MachinePrecision], If[LessEqual[t, -7.1e-261], t$95$1, If[LessEqual[t, 5.7e-229], N[(x + a), $MachinePrecision], If[LessEqual[t, 1.5e-71], t$95$1, If[LessEqual[t, 5.8e-64], N[(x + a), $MachinePrecision], If[LessEqual[t, 2.95e-46], N[(y * (-z)), $MachinePrecision], If[LessEqual[t, 3.3e+16], N[(x + a), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y - 2\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-144}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq -7.1 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{-229}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-64}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 2.95 \cdot 10^{-46}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+16}:\\
\;\;\;\;x + a\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -5.20000000000000013e35 or 3.3e16 < t Initial program 91.6%
Taylor expanded in t around inf 71.2%
if -5.20000000000000013e35 < t < -7.2000000000000001e-144 or -7.10000000000000021e-261 < t < 5.70000000000000023e-229 or 1.5000000000000001e-71 < t < 5.7999999999999998e-64 or 2.95e-46 < t < 3.3e16Initial program 97.4%
Taylor expanded in z around 0 76.2%
Taylor expanded in b around 0 52.9%
Taylor expanded in t around 0 48.7%
neg-mul-148.7%
Simplified48.7%
if -7.2000000000000001e-144 < t < -7.10000000000000021e-261 or 5.70000000000000023e-229 < t < 1.5000000000000001e-71Initial program 92.3%
Taylor expanded in b around inf 44.9%
Taylor expanded in t around 0 44.9%
if 5.7999999999999998e-64 < t < 2.95e-46Initial program 100.0%
Taylor expanded in z around inf 86.0%
Taylor expanded in y around inf 86.0%
mul-1-neg86.0%
distribute-lft-neg-out86.0%
*-commutative86.0%
Simplified86.0%
Final simplification59.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -5e+35)
t_1
(if (<= t 5.6e-64)
(+ x (* b (- y 2.0)))
(if (<= t 1.8e-35)
(* y (- b z))
(if (<= t 16000.0)
(+ x (* a (- 1.0 t)))
(if (<= t 1.8e+17) (* z (- (/ x z) y)) 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 <= -5e+35) {
tmp = t_1;
} else if (t <= 5.6e-64) {
tmp = x + (b * (y - 2.0));
} else if (t <= 1.8e-35) {
tmp = y * (b - z);
} else if (t <= 16000.0) {
tmp = x + (a * (1.0 - t));
} else if (t <= 1.8e+17) {
tmp = z * ((x / z) - y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b - a)
if (t <= (-5d+35)) then
tmp = t_1
else if (t <= 5.6d-64) then
tmp = x + (b * (y - 2.0d0))
else if (t <= 1.8d-35) then
tmp = y * (b - z)
else if (t <= 16000.0d0) then
tmp = x + (a * (1.0d0 - t))
else if (t <= 1.8d+17) then
tmp = z * ((x / z) - y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -5e+35) {
tmp = t_1;
} else if (t <= 5.6e-64) {
tmp = x + (b * (y - 2.0));
} else if (t <= 1.8e-35) {
tmp = y * (b - z);
} else if (t <= 16000.0) {
tmp = x + (a * (1.0 - t));
} else if (t <= 1.8e+17) {
tmp = z * ((x / z) - y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -5e+35: tmp = t_1 elif t <= 5.6e-64: tmp = x + (b * (y - 2.0)) elif t <= 1.8e-35: tmp = y * (b - z) elif t <= 16000.0: tmp = x + (a * (1.0 - t)) elif t <= 1.8e+17: tmp = z * ((x / z) - y) 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 <= -5e+35) tmp = t_1; elseif (t <= 5.6e-64) tmp = Float64(x + Float64(b * Float64(y - 2.0))); elseif (t <= 1.8e-35) tmp = Float64(y * Float64(b - z)); elseif (t <= 16000.0) tmp = Float64(x + Float64(a * Float64(1.0 - t))); elseif (t <= 1.8e+17) tmp = Float64(z * Float64(Float64(x / z) - y)); 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 <= -5e+35) tmp = t_1; elseif (t <= 5.6e-64) tmp = x + (b * (y - 2.0)); elseif (t <= 1.8e-35) tmp = y * (b - z); elseif (t <= 16000.0) tmp = x + (a * (1.0 - t)); elseif (t <= 1.8e+17) tmp = z * ((x / z) - y); 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, -5e+35], t$95$1, If[LessEqual[t, 5.6e-64], N[(x + N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-35], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 16000.0], N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+17], N[(z * N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -5 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-64}:\\
\;\;\;\;x + b \cdot \left(y - 2\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-35}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;t \leq 16000:\\
\;\;\;\;x + a \cdot \left(1 - t\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+17}:\\
\;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.00000000000000021e35 or 1.8e17 < t Initial program 91.6%
Taylor expanded in t around inf 71.2%
if -5.00000000000000021e35 < t < 5.60000000000000008e-64Initial program 94.6%
Taylor expanded in z around 0 73.9%
Taylor expanded in a around 0 59.5%
Taylor expanded in t around 0 59.5%
if 5.60000000000000008e-64 < t < 1.80000000000000009e-35Initial program 100.0%
Taylor expanded in y around inf 73.2%
if 1.80000000000000009e-35 < t < 16000Initial program 100.0%
Taylor expanded in z around 0 82.1%
Taylor expanded in b around 0 63.3%
if 16000 < t < 1.8e17Initial program 100.0%
Taylor expanded in b around 0 100.0%
Taylor expanded in y around inf 76.5%
Taylor expanded in z around inf 76.5%
Final simplification66.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))) (t_2 (* t (- b a))))
(if (<= t -1.05e+35)
t_2
(if (<= t -3.6e-151)
(+ x a)
(if (<= t -9e-304)
t_1
(if (<= t 8.5e-246) (+ x a) (if (<= t 1.55e+17) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = t * (b - a);
double tmp;
if (t <= -1.05e+35) {
tmp = t_2;
} else if (t <= -3.6e-151) {
tmp = x + a;
} else if (t <= -9e-304) {
tmp = t_1;
} else if (t <= 8.5e-246) {
tmp = x + a;
} else if (t <= 1.55e+17) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (b - z)
t_2 = t * (b - a)
if (t <= (-1.05d+35)) then
tmp = t_2
else if (t <= (-3.6d-151)) then
tmp = x + a
else if (t <= (-9d-304)) then
tmp = t_1
else if (t <= 8.5d-246) then
tmp = x + a
else if (t <= 1.55d+17) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double t_2 = t * (b - a);
double tmp;
if (t <= -1.05e+35) {
tmp = t_2;
} else if (t <= -3.6e-151) {
tmp = x + a;
} else if (t <= -9e-304) {
tmp = t_1;
} else if (t <= 8.5e-246) {
tmp = x + a;
} else if (t <= 1.55e+17) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) t_2 = t * (b - a) tmp = 0 if t <= -1.05e+35: tmp = t_2 elif t <= -3.6e-151: tmp = x + a elif t <= -9e-304: tmp = t_1 elif t <= 8.5e-246: tmp = x + a elif t <= 1.55e+17: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.05e+35) tmp = t_2; elseif (t <= -3.6e-151) tmp = Float64(x + a); elseif (t <= -9e-304) tmp = t_1; elseif (t <= 8.5e-246) tmp = Float64(x + a); elseif (t <= 1.55e+17) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); t_2 = t * (b - a); tmp = 0.0; if (t <= -1.05e+35) tmp = t_2; elseif (t <= -3.6e-151) tmp = x + a; elseif (t <= -9e-304) tmp = t_1; elseif (t <= 8.5e-246) tmp = x + a; elseif (t <= 1.55e+17) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+35], t$95$2, If[LessEqual[t, -3.6e-151], N[(x + a), $MachinePrecision], If[LessEqual[t, -9e-304], t$95$1, If[LessEqual[t, 8.5e-246], N[(x + a), $MachinePrecision], If[LessEqual[t, 1.55e+17], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.6 \cdot 10^{-151}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-246}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.0499999999999999e35 or 1.55e17 < t Initial program 91.6%
Taylor expanded in t around inf 71.2%
if -1.0499999999999999e35 < t < -3.60000000000000032e-151 or -8.9999999999999995e-304 < t < 8.4999999999999998e-246Initial program 97.8%
Taylor expanded in z around 0 78.9%
Taylor expanded in b around 0 53.9%
Taylor expanded in t around 0 50.1%
neg-mul-150.1%
Simplified50.1%
if -3.60000000000000032e-151 < t < -8.9999999999999995e-304 or 8.4999999999999998e-246 < t < 1.55e17Initial program 94.5%
Taylor expanded in y around inf 50.8%
Final simplification60.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- a))))
(if (<= x -8.6e+157)
x
(if (<= x -2.4e-73)
t_1
(if (<= x 7.6e-252)
(* b y)
(if (<= x 3.6e-186) a (if (<= x 5.8e+140) t_1 x)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * -a;
double tmp;
if (x <= -8.6e+157) {
tmp = x;
} else if (x <= -2.4e-73) {
tmp = t_1;
} else if (x <= 7.6e-252) {
tmp = b * y;
} else if (x <= 3.6e-186) {
tmp = a;
} else if (x <= 5.8e+140) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * -a
if (x <= (-8.6d+157)) then
tmp = x
else if (x <= (-2.4d-73)) then
tmp = t_1
else if (x <= 7.6d-252) then
tmp = b * y
else if (x <= 3.6d-186) then
tmp = a
else if (x <= 5.8d+140) then
tmp = t_1
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 t_1 = t * -a;
double tmp;
if (x <= -8.6e+157) {
tmp = x;
} else if (x <= -2.4e-73) {
tmp = t_1;
} else if (x <= 7.6e-252) {
tmp = b * y;
} else if (x <= 3.6e-186) {
tmp = a;
} else if (x <= 5.8e+140) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * -a tmp = 0 if x <= -8.6e+157: tmp = x elif x <= -2.4e-73: tmp = t_1 elif x <= 7.6e-252: tmp = b * y elif x <= 3.6e-186: tmp = a elif x <= 5.8e+140: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(-a)) tmp = 0.0 if (x <= -8.6e+157) tmp = x; elseif (x <= -2.4e-73) tmp = t_1; elseif (x <= 7.6e-252) tmp = Float64(b * y); elseif (x <= 3.6e-186) tmp = a; elseif (x <= 5.8e+140) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t * -a; tmp = 0.0; if (x <= -8.6e+157) tmp = x; elseif (x <= -2.4e-73) tmp = t_1; elseif (x <= 7.6e-252) tmp = b * y; elseif (x <= 3.6e-186) tmp = a; elseif (x <= 5.8e+140) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * (-a)), $MachinePrecision]}, If[LessEqual[x, -8.6e+157], x, If[LessEqual[x, -2.4e-73], t$95$1, If[LessEqual[x, 7.6e-252], N[(b * y), $MachinePrecision], If[LessEqual[x, 3.6e-186], a, If[LessEqual[x, 5.8e+140], t$95$1, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-a\right)\\
\mathbf{if}\;x \leq -8.6 \cdot 10^{+157}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{-252}:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-186}:\\
\;\;\;\;a\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8.6e157 or 5.7999999999999998e140 < x Initial program 97.3%
Taylor expanded in x around inf 52.8%
if -8.6e157 < x < -2.40000000000000006e-73 or 3.5999999999999998e-186 < x < 5.7999999999999998e140Initial program 93.4%
Taylor expanded in b around 0 70.6%
Taylor expanded in t around inf 32.7%
mul-1-neg32.7%
*-commutative32.7%
distribute-rgt-neg-in32.7%
Simplified32.7%
if -2.40000000000000006e-73 < x < 7.6e-252Initial program 87.7%
Taylor expanded in z around 0 72.8%
Taylor expanded in y around inf 26.0%
if 7.6e-252 < x < 3.5999999999999998e-186Initial program 100.0%
Taylor expanded in a around inf 39.7%
Taylor expanded in t around 0 34.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (+ z (* a (- 1.0 t))))) (t_2 (+ x (* b (- (+ y t) 2.0)))))
(if (<= b -8e-15)
t_2
(if (<= b -1.5e-207)
t_1
(if (<= b 9.6e-294)
(- (* z (- 1.0 y)) (* t a))
(if (<= b 8e-25) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z + (a * (1.0 - t)));
double t_2 = x + (b * ((y + t) - 2.0));
double tmp;
if (b <= -8e-15) {
tmp = t_2;
} else if (b <= -1.5e-207) {
tmp = t_1;
} else if (b <= 9.6e-294) {
tmp = (z * (1.0 - y)) - (t * a);
} else if (b <= 8e-25) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (z + (a * (1.0d0 - t)))
t_2 = x + (b * ((y + t) - 2.0d0))
if (b <= (-8d-15)) then
tmp = t_2
else if (b <= (-1.5d-207)) then
tmp = t_1
else if (b <= 9.6d-294) then
tmp = (z * (1.0d0 - y)) - (t * a)
else if (b <= 8d-25) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z + (a * (1.0 - t)));
double t_2 = x + (b * ((y + t) - 2.0));
double tmp;
if (b <= -8e-15) {
tmp = t_2;
} else if (b <= -1.5e-207) {
tmp = t_1;
} else if (b <= 9.6e-294) {
tmp = (z * (1.0 - y)) - (t * a);
} else if (b <= 8e-25) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z + (a * (1.0 - t))) t_2 = x + (b * ((y + t) - 2.0)) tmp = 0 if b <= -8e-15: tmp = t_2 elif b <= -1.5e-207: tmp = t_1 elif b <= 9.6e-294: tmp = (z * (1.0 - y)) - (t * a) elif b <= 8e-25: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z + Float64(a * Float64(1.0 - t)))) t_2 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (b <= -8e-15) tmp = t_2; elseif (b <= -1.5e-207) tmp = t_1; elseif (b <= 9.6e-294) tmp = Float64(Float64(z * Float64(1.0 - y)) - Float64(t * a)); elseif (b <= 8e-25) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z + (a * (1.0 - t))); t_2 = x + (b * ((y + t) - 2.0)); tmp = 0.0; if (b <= -8e-15) tmp = t_2; elseif (b <= -1.5e-207) tmp = t_1; elseif (b <= 9.6e-294) tmp = (z * (1.0 - y)) - (t * a); elseif (b <= 8e-25) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e-15], t$95$2, If[LessEqual[b, -1.5e-207], t$95$1, If[LessEqual[b, 9.6e-294], N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-25], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-207}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.6 \cdot 10^{-294}:\\
\;\;\;\;z \cdot \left(1 - y\right) - t \cdot a\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8.0000000000000006e-15 or 8.00000000000000031e-25 < b Initial program 87.4%
Taylor expanded in z around 0 85.3%
Taylor expanded in a around 0 76.2%
if -8.0000000000000006e-15 < b < -1.5e-207 or 9.59999999999999988e-294 < b < 8.00000000000000031e-25Initial program 100.0%
Taylor expanded in b around 0 92.4%
Taylor expanded in y around 0 71.1%
+-commutative71.1%
sub-neg71.1%
metadata-eval71.1%
neg-mul-171.1%
unsub-neg71.1%
Simplified71.1%
if -1.5e-207 < b < 9.59999999999999988e-294Initial program 100.0%
Taylor expanded in b around 0 95.1%
Taylor expanded in t around inf 85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in x around 0 80.4%
mul-1-neg80.4%
sub-neg80.4%
metadata-eval80.4%
*-commutative80.4%
+-commutative80.4%
distribute-neg-in80.4%
sub-neg80.4%
distribute-rgt-neg-in80.4%
*-commutative80.4%
+-commutative80.4%
distribute-neg-in80.4%
metadata-eval80.4%
sub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Final simplification74.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (+ z (* a (- 1.0 t))))) (t_2 (+ x (* b (- (+ y t) 2.0)))))
(if (<= b -9e-15)
t_2
(if (<= b -2e-297)
t_1
(if (<= b 8.5e-294) (- x (* y z)) (if (<= b 3.7e-25) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z + (a * (1.0 - t)));
double t_2 = x + (b * ((y + t) - 2.0));
double tmp;
if (b <= -9e-15) {
tmp = t_2;
} else if (b <= -2e-297) {
tmp = t_1;
} else if (b <= 8.5e-294) {
tmp = x - (y * z);
} else if (b <= 3.7e-25) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (z + (a * (1.0d0 - t)))
t_2 = x + (b * ((y + t) - 2.0d0))
if (b <= (-9d-15)) then
tmp = t_2
else if (b <= (-2d-297)) then
tmp = t_1
else if (b <= 8.5d-294) then
tmp = x - (y * z)
else if (b <= 3.7d-25) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z + (a * (1.0 - t)));
double t_2 = x + (b * ((y + t) - 2.0));
double tmp;
if (b <= -9e-15) {
tmp = t_2;
} else if (b <= -2e-297) {
tmp = t_1;
} else if (b <= 8.5e-294) {
tmp = x - (y * z);
} else if (b <= 3.7e-25) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z + (a * (1.0 - t))) t_2 = x + (b * ((y + t) - 2.0)) tmp = 0 if b <= -9e-15: tmp = t_2 elif b <= -2e-297: tmp = t_1 elif b <= 8.5e-294: tmp = x - (y * z) elif b <= 3.7e-25: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z + Float64(a * Float64(1.0 - t)))) t_2 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) tmp = 0.0 if (b <= -9e-15) tmp = t_2; elseif (b <= -2e-297) tmp = t_1; elseif (b <= 8.5e-294) tmp = Float64(x - Float64(y * z)); elseif (b <= 3.7e-25) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z + (a * (1.0 - t))); t_2 = x + (b * ((y + t) - 2.0)); tmp = 0.0; if (b <= -9e-15) tmp = t_2; elseif (b <= -2e-297) tmp = t_1; elseif (b <= 8.5e-294) tmp = x - (y * z); elseif (b <= 3.7e-25) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-15], t$95$2, If[LessEqual[b, -2e-297], t$95$1, If[LessEqual[b, 8.5e-294], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-25], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z + a \cdot \left(1 - t\right)\right)\\
t_2 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-294}:\\
\;\;\;\;x - y \cdot z\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8.9999999999999995e-15 or 3.70000000000000009e-25 < b Initial program 87.4%
Taylor expanded in z around 0 85.3%
Taylor expanded in a around 0 76.2%
if -8.9999999999999995e-15 < b < -2.00000000000000008e-297 or 8.4999999999999999e-294 < b < 3.70000000000000009e-25Initial program 100.0%
Taylor expanded in b around 0 92.5%
Taylor expanded in y around 0 70.4%
+-commutative70.4%
sub-neg70.4%
metadata-eval70.4%
neg-mul-170.4%
unsub-neg70.4%
Simplified70.4%
if -2.00000000000000008e-297 < b < 8.4999999999999999e-294Initial program 100.0%
Taylor expanded in b around 0 100.0%
Taylor expanded in y around inf 97.7%
Final simplification73.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* b (- (+ y t) 2.0)))) (t_2 (+ x (* a (- 1.0 t)))))
(if (<= a -1.16e+128)
t_2
(if (<= a -1.05e-60)
t_1
(if (<= a -7.5e-125)
(* z (- (/ x z) y))
(if (<= a 7.8e+147) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (b * ((y + t) - 2.0));
double t_2 = x + (a * (1.0 - t));
double tmp;
if (a <= -1.16e+128) {
tmp = t_2;
} else if (a <= -1.05e-60) {
tmp = t_1;
} else if (a <= -7.5e-125) {
tmp = z * ((x / z) - y);
} else if (a <= 7.8e+147) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (b * ((y + t) - 2.0d0))
t_2 = x + (a * (1.0d0 - t))
if (a <= (-1.16d+128)) then
tmp = t_2
else if (a <= (-1.05d-60)) then
tmp = t_1
else if (a <= (-7.5d-125)) then
tmp = z * ((x / z) - y)
else if (a <= 7.8d+147) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (b * ((y + t) - 2.0));
double t_2 = x + (a * (1.0 - t));
double tmp;
if (a <= -1.16e+128) {
tmp = t_2;
} else if (a <= -1.05e-60) {
tmp = t_1;
} else if (a <= -7.5e-125) {
tmp = z * ((x / z) - y);
} else if (a <= 7.8e+147) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (b * ((y + t) - 2.0)) t_2 = x + (a * (1.0 - t)) tmp = 0 if a <= -1.16e+128: tmp = t_2 elif a <= -1.05e-60: tmp = t_1 elif a <= -7.5e-125: tmp = z * ((x / z) - y) elif a <= 7.8e+147: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) t_2 = Float64(x + Float64(a * Float64(1.0 - t))) tmp = 0.0 if (a <= -1.16e+128) tmp = t_2; elseif (a <= -1.05e-60) tmp = t_1; elseif (a <= -7.5e-125) tmp = Float64(z * Float64(Float64(x / z) - y)); elseif (a <= 7.8e+147) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (b * ((y + t) - 2.0)); t_2 = x + (a * (1.0 - t)); tmp = 0.0; if (a <= -1.16e+128) tmp = t_2; elseif (a <= -1.05e-60) tmp = t_1; elseif (a <= -7.5e-125) tmp = z * ((x / z) - y); elseif (a <= 7.8e+147) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.16e+128], t$95$2, If[LessEqual[a, -1.05e-60], t$95$1, If[LessEqual[a, -7.5e-125], N[(z * N[(N[(x / z), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+147], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + b \cdot \left(\left(y + t\right) - 2\right)\\
t_2 := x + a \cdot \left(1 - t\right)\\
\mathbf{if}\;a \leq -1.16 \cdot 10^{+128}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-125}:\\
\;\;\;\;z \cdot \left(\frac{x}{z} - y\right)\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.1600000000000001e128 or 7.80000000000000033e147 < a Initial program 92.2%
Taylor expanded in z around 0 77.4%
Taylor expanded in b around 0 70.1%
if -1.1600000000000001e128 < a < -1.04999999999999996e-60 or -7.5e-125 < a < 7.80000000000000033e147Initial program 95.1%
Taylor expanded in z around 0 76.7%
Taylor expanded in a around 0 70.0%
if -1.04999999999999996e-60 < a < -7.5e-125Initial program 87.5%
Taylor expanded in b around 0 87.5%
Taylor expanded in y around inf 54.5%
Taylor expanded in z around inf 60.3%
Final simplification69.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))))
(if (<= y -2.6e+126)
t_1
(if (<= y -6.2e+57)
(- x (* t a))
(if (or (<= y -1.6e+37) (not (<= y 1.6e+32))) t_1 (+ x (* b t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -2.6e+126) {
tmp = t_1;
} else if (y <= -6.2e+57) {
tmp = x - (t * a);
} else if ((y <= -1.6e+37) || !(y <= 1.6e+32)) {
tmp = t_1;
} else {
tmp = x + (b * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * (b - z)
if (y <= (-2.6d+126)) then
tmp = t_1
else if (y <= (-6.2d+57)) then
tmp = x - (t * a)
else if ((y <= (-1.6d+37)) .or. (.not. (y <= 1.6d+32))) then
tmp = t_1
else
tmp = x + (b * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -2.6e+126) {
tmp = t_1;
} else if (y <= -6.2e+57) {
tmp = x - (t * a);
} else if ((y <= -1.6e+37) || !(y <= 1.6e+32)) {
tmp = t_1;
} else {
tmp = x + (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b - z) tmp = 0 if y <= -2.6e+126: tmp = t_1 elif y <= -6.2e+57: tmp = x - (t * a) elif (y <= -1.6e+37) or not (y <= 1.6e+32): tmp = t_1 else: tmp = x + (b * t) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -2.6e+126) tmp = t_1; elseif (y <= -6.2e+57) tmp = Float64(x - Float64(t * a)); elseif ((y <= -1.6e+37) || !(y <= 1.6e+32)) tmp = t_1; else tmp = Float64(x + Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b - z); tmp = 0.0; if (y <= -2.6e+126) tmp = t_1; elseif (y <= -6.2e+57) tmp = x - (t * a); elseif ((y <= -1.6e+37) || ~((y <= 1.6e+32))) tmp = t_1; else tmp = x + (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+126], t$95$1, If[LessEqual[y, -6.2e+57], N[(x - N[(t * a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.6e+37], N[Not[LessEqual[y, 1.6e+32]], $MachinePrecision]], t$95$1, N[(x + N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{+57}:\\
\;\;\;\;x - t \cdot a\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{+37} \lor \neg \left(y \leq 1.6 \cdot 10^{+32}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot t\\
\end{array}
\end{array}
if y < -2.6e126 or -6.20000000000000026e57 < y < -1.60000000000000007e37 or 1.5999999999999999e32 < y Initial program 88.7%
Taylor expanded in y around inf 75.0%
if -2.6e126 < y < -6.20000000000000026e57Initial program 92.9%
Taylor expanded in z around 0 86.1%
Taylor expanded in b around 0 71.4%
Taylor expanded in t around inf 58.4%
*-commutative65.2%
Simplified58.4%
if -1.60000000000000007e37 < y < 1.5999999999999999e32Initial program 97.2%
Taylor expanded in z around 0 85.6%
Taylor expanded in a around 0 61.5%
Taylor expanded in t around inf 48.7%
Final simplification59.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (* y z))) (t_2 (* t (- b a))))
(if (<= t -10200.0)
t_2
(if (<= t 4e-229)
t_1
(if (<= t 7.8e-132) (* y (- b z)) (if (<= t 1.08e+21) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (y * z);
double t_2 = t * (b - a);
double tmp;
if (t <= -10200.0) {
tmp = t_2;
} else if (t <= 4e-229) {
tmp = t_1;
} else if (t <= 7.8e-132) {
tmp = y * (b - z);
} else if (t <= 1.08e+21) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - (y * z)
t_2 = t * (b - a)
if (t <= (-10200.0d0)) then
tmp = t_2
else if (t <= 4d-229) then
tmp = t_1
else if (t <= 7.8d-132) then
tmp = y * (b - z)
else if (t <= 1.08d+21) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - (y * z);
double t_2 = t * (b - a);
double tmp;
if (t <= -10200.0) {
tmp = t_2;
} else if (t <= 4e-229) {
tmp = t_1;
} else if (t <= 7.8e-132) {
tmp = y * (b - z);
} else if (t <= 1.08e+21) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (y * z) t_2 = t * (b - a) tmp = 0 if t <= -10200.0: tmp = t_2 elif t <= 4e-229: tmp = t_1 elif t <= 7.8e-132: tmp = y * (b - z) elif t <= 1.08e+21: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(y * z)) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -10200.0) tmp = t_2; elseif (t <= 4e-229) tmp = t_1; elseif (t <= 7.8e-132) tmp = Float64(y * Float64(b - z)); elseif (t <= 1.08e+21) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - (y * z); t_2 = t * (b - a); tmp = 0.0; if (t <= -10200.0) tmp = t_2; elseif (t <= 4e-229) tmp = t_1; elseif (t <= 7.8e-132) tmp = y * (b - z); elseif (t <= 1.08e+21) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -10200.0], t$95$2, If[LessEqual[t, 4e-229], t$95$1, If[LessEqual[t, 7.8e-132], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.08e+21], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot z\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -10200:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-132}:\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -10200 or 1.08e21 < t Initial program 91.9%
Taylor expanded in t around inf 69.3%
if -10200 < t < 4.00000000000000028e-229 or 7.79999999999999964e-132 < t < 1.08e21Initial program 95.7%
Taylor expanded in b around 0 74.0%
Taylor expanded in y around inf 50.9%
if 4.00000000000000028e-229 < t < 7.79999999999999964e-132Initial program 92.9%
Taylor expanded in y around inf 64.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= x -3.9e+158)
(+ x a)
(if (<= x -1.22e-73)
t_1
(if (<= x 5e-300) (* b (- y 2.0)) (if (<= x 1.4e+140) t_1 (+ x a)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (x <= -3.9e+158) {
tmp = x + a;
} else if (x <= -1.22e-73) {
tmp = t_1;
} else if (x <= 5e-300) {
tmp = b * (y - 2.0);
} else if (x <= 1.4e+140) {
tmp = t_1;
} else {
tmp = x + a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if (x <= (-3.9d+158)) then
tmp = x + a
else if (x <= (-1.22d-73)) then
tmp = t_1
else if (x <= 5d-300) then
tmp = b * (y - 2.0d0)
else if (x <= 1.4d+140) then
tmp = t_1
else
tmp = x + a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (x <= -3.9e+158) {
tmp = x + a;
} else if (x <= -1.22e-73) {
tmp = t_1;
} else if (x <= 5e-300) {
tmp = b * (y - 2.0);
} else if (x <= 1.4e+140) {
tmp = t_1;
} else {
tmp = x + a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if x <= -3.9e+158: tmp = x + a elif x <= -1.22e-73: tmp = t_1 elif x <= 5e-300: tmp = b * (y - 2.0) elif x <= 1.4e+140: tmp = t_1 else: tmp = x + a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (x <= -3.9e+158) tmp = Float64(x + a); elseif (x <= -1.22e-73) tmp = t_1; elseif (x <= 5e-300) tmp = Float64(b * Float64(y - 2.0)); elseif (x <= 1.4e+140) tmp = t_1; else tmp = Float64(x + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (x <= -3.9e+158) tmp = x + a; elseif (x <= -1.22e-73) tmp = t_1; elseif (x <= 5e-300) tmp = b * (y - 2.0); elseif (x <= 1.4e+140) tmp = t_1; else tmp = x + a; 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[x, -3.9e+158], N[(x + a), $MachinePrecision], If[LessEqual[x, -1.22e-73], t$95$1, If[LessEqual[x, 5e-300], N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+140], t$95$1, N[(x + a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+158}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;x \leq -1.22 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-300}:\\
\;\;\;\;b \cdot \left(y - 2\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + a\\
\end{array}
\end{array}
if x < -3.9e158 or 1.39999999999999991e140 < x Initial program 97.3%
Taylor expanded in z around 0 87.9%
Taylor expanded in b around 0 62.8%
Taylor expanded in t around 0 55.6%
neg-mul-155.6%
Simplified55.6%
if -3.9e158 < x < -1.22e-73 or 4.99999999999999996e-300 < x < 1.39999999999999991e140Initial program 92.0%
Taylor expanded in a around inf 41.8%
if -1.22e-73 < x < 4.99999999999999996e-300Initial program 93.5%
Taylor expanded in b around inf 58.9%
Taylor expanded in t around 0 42.0%
Final simplification45.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (<= x -7e+158)
(+ x a)
(if (<= x -3.5e-62)
t_1
(if (<= x -2.15e-186) (* y (- z)) (if (<= x 2e+139) t_1 (+ x a)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (x <= -7e+158) {
tmp = x + a;
} else if (x <= -3.5e-62) {
tmp = t_1;
} else if (x <= -2.15e-186) {
tmp = y * -z;
} else if (x <= 2e+139) {
tmp = t_1;
} else {
tmp = x + a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (1.0d0 - t)
if (x <= (-7d+158)) then
tmp = x + a
else if (x <= (-3.5d-62)) then
tmp = t_1
else if (x <= (-2.15d-186)) then
tmp = y * -z
else if (x <= 2d+139) then
tmp = t_1
else
tmp = x + a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (1.0 - t);
double tmp;
if (x <= -7e+158) {
tmp = x + a;
} else if (x <= -3.5e-62) {
tmp = t_1;
} else if (x <= -2.15e-186) {
tmp = y * -z;
} else if (x <= 2e+139) {
tmp = t_1;
} else {
tmp = x + a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (1.0 - t) tmp = 0 if x <= -7e+158: tmp = x + a elif x <= -3.5e-62: tmp = t_1 elif x <= -2.15e-186: tmp = y * -z elif x <= 2e+139: tmp = t_1 else: tmp = x + a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(1.0 - t)) tmp = 0.0 if (x <= -7e+158) tmp = Float64(x + a); elseif (x <= -3.5e-62) tmp = t_1; elseif (x <= -2.15e-186) tmp = Float64(y * Float64(-z)); elseif (x <= 2e+139) tmp = t_1; else tmp = Float64(x + a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (1.0 - t); tmp = 0.0; if (x <= -7e+158) tmp = x + a; elseif (x <= -3.5e-62) tmp = t_1; elseif (x <= -2.15e-186) tmp = y * -z; elseif (x <= 2e+139) tmp = t_1; else tmp = x + a; 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[x, -7e+158], N[(x + a), $MachinePrecision], If[LessEqual[x, -3.5e-62], t$95$1, If[LessEqual[x, -2.15e-186], N[(y * (-z)), $MachinePrecision], If[LessEqual[x, 2e+139], t$95$1, N[(x + a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(1 - t\right)\\
\mathbf{if}\;x \leq -7 \cdot 10^{+158}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.15 \cdot 10^{-186}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + a\\
\end{array}
\end{array}
if x < -7.0000000000000003e158 or 2.00000000000000007e139 < x Initial program 97.3%
Taylor expanded in z around 0 87.9%
Taylor expanded in b around 0 62.8%
Taylor expanded in t around 0 55.6%
neg-mul-155.6%
Simplified55.6%
if -7.0000000000000003e158 < x < -3.5000000000000001e-62 or -2.14999999999999995e-186 < x < 2.00000000000000007e139Initial program 93.1%
Taylor expanded in a around inf 38.9%
if -3.5000000000000001e-62 < x < -2.14999999999999995e-186Initial program 87.5%
Taylor expanded in z around inf 46.7%
Taylor expanded in y around inf 38.9%
mul-1-neg38.9%
distribute-lft-neg-out38.9%
*-commutative38.9%
Simplified38.9%
Final simplification43.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (- 1.0 t))))
(if (or (<= b -6.8e-15) (not (<= b 1.05e-51)))
(+ (+ x (* b (- (+ y t) 2.0))) 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 <= -6.8e-15) || !(b <= 1.05e-51)) {
tmp = (x + (b * ((y + t) - 2.0))) + 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 <= (-6.8d-15)) .or. (.not. (b <= 1.05d-51))) then
tmp = (x + (b * ((y + t) - 2.0d0))) + 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 <= -6.8e-15) || !(b <= 1.05e-51)) {
tmp = (x + (b * ((y + t) - 2.0))) + 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 <= -6.8e-15) or not (b <= 1.05e-51): tmp = (x + (b * ((y + t) - 2.0))) + 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 <= -6.8e-15) || !(b <= 1.05e-51)) tmp = Float64(Float64(x + Float64(b * Float64(Float64(y + t) - 2.0))) + 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 <= -6.8e-15) || ~((b <= 1.05e-51))) tmp = (x + (b * ((y + t) - 2.0))) + 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, -6.8e-15], N[Not[LessEqual[b, 1.05e-51]], $MachinePrecision]], N[(N[(x + N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $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 -6.8 \cdot 10^{-15} \lor \neg \left(b \leq 1.05 \cdot 10^{-51}\right):\\
\;\;\;\;\left(x + b \cdot \left(\left(y + t\right) - 2\right)\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(t\_1 + z \cdot \left(1 - y\right)\right)\\
\end{array}
\end{array}
if b < -6.8000000000000001e-15 or 1.05000000000000001e-51 < b Initial program 88.2%
Taylor expanded in z around 0 86.2%
if -6.8000000000000001e-15 < b < 1.05000000000000001e-51Initial program 100.0%
Taylor expanded in b around 0 93.1%
Final simplification89.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- z))))
(if (<= y -1.65e+40)
t_1
(if (<= y 2.6e-113)
(* b t)
(if (<= y 2.4e-37) x (if (<= y 2e+32) a 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.65e+40) {
tmp = t_1;
} else if (y <= 2.6e-113) {
tmp = b * t;
} else if (y <= 2.4e-37) {
tmp = x;
} else if (y <= 2e+32) {
tmp = a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * -z
if (y <= (-1.65d+40)) then
tmp = t_1
else if (y <= 2.6d-113) then
tmp = b * t
else if (y <= 2.4d-37) then
tmp = x
else if (y <= 2d+32) then
tmp = a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (y <= -1.65e+40) {
tmp = t_1;
} else if (y <= 2.6e-113) {
tmp = b * t;
} else if (y <= 2.4e-37) {
tmp = x;
} else if (y <= 2e+32) {
tmp = a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * -z tmp = 0 if y <= -1.65e+40: tmp = t_1 elif y <= 2.6e-113: tmp = b * t elif y <= 2.4e-37: tmp = x elif y <= 2e+32: tmp = a 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.65e+40) tmp = t_1; elseif (y <= 2.6e-113) tmp = Float64(b * t); elseif (y <= 2.4e-37) tmp = x; elseif (y <= 2e+32) tmp = a; 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.65e+40) tmp = t_1; elseif (y <= 2.6e-113) tmp = b * t; elseif (y <= 2.4e-37) tmp = x; elseif (y <= 2e+32) tmp = a; 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.65e+40], t$95$1, If[LessEqual[y, 2.6e-113], N[(b * t), $MachinePrecision], If[LessEqual[y, 2.4e-37], x, If[LessEqual[y, 2e+32], a, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(-z\right)\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-113}:\\
\;\;\;\;b \cdot t\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+32}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.6499999999999999e40 or 2.00000000000000011e32 < y Initial program 89.2%
Taylor expanded in z around inf 43.9%
Taylor expanded in y around inf 43.9%
mul-1-neg43.9%
distribute-lft-neg-out43.9%
*-commutative43.9%
Simplified43.9%
if -1.6499999999999999e40 < y < 2.5999999999999999e-113Initial program 97.5%
Taylor expanded in b around inf 42.7%
Taylor expanded in t around inf 29.8%
if 2.5999999999999999e-113 < y < 2.39999999999999991e-37Initial program 100.0%
Taylor expanded in x around inf 44.9%
if 2.39999999999999991e-37 < y < 2.00000000000000011e32Initial program 92.2%
Taylor expanded in a around inf 40.0%
Taylor expanded in t around 0 25.5%
Final simplification36.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -9e+44)
(* b t)
(if (<= t 1.6e-229)
x
(if (<= t 1.05e-132) (* b y) (if (<= t 1.45e+17) x (* b t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9e+44) {
tmp = b * t;
} else if (t <= 1.6e-229) {
tmp = x;
} else if (t <= 1.05e-132) {
tmp = b * y;
} else if (t <= 1.45e+17) {
tmp = x;
} else {
tmp = b * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-9d+44)) then
tmp = b * t
else if (t <= 1.6d-229) then
tmp = x
else if (t <= 1.05d-132) then
tmp = b * y
else if (t <= 1.45d+17) then
tmp = x
else
tmp = b * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9e+44) {
tmp = b * t;
} else if (t <= 1.6e-229) {
tmp = x;
} else if (t <= 1.05e-132) {
tmp = b * y;
} else if (t <= 1.45e+17) {
tmp = x;
} else {
tmp = b * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -9e+44: tmp = b * t elif t <= 1.6e-229: tmp = x elif t <= 1.05e-132: tmp = b * y elif t <= 1.45e+17: tmp = x else: tmp = b * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -9e+44) tmp = Float64(b * t); elseif (t <= 1.6e-229) tmp = x; elseif (t <= 1.05e-132) tmp = Float64(b * y); elseif (t <= 1.45e+17) tmp = x; else tmp = Float64(b * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -9e+44) tmp = b * t; elseif (t <= 1.6e-229) tmp = x; elseif (t <= 1.05e-132) tmp = b * y; elseif (t <= 1.45e+17) tmp = x; else tmp = b * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9e+44], N[(b * t), $MachinePrecision], If[LessEqual[t, 1.6e-229], x, If[LessEqual[t, 1.05e-132], N[(b * y), $MachinePrecision], If[LessEqual[t, 1.45e+17], x, N[(b * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+44}:\\
\;\;\;\;b \cdot t\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-229}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-132}:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+17}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\\
\end{array}
\end{array}
if t < -9e44 or 1.45e17 < t Initial program 91.1%
Taylor expanded in b around inf 47.2%
Taylor expanded in t around inf 41.3%
if -9e44 < t < 1.60000000000000007e-229 or 1.05e-132 < t < 1.45e17Initial program 96.1%
Taylor expanded in x around inf 27.2%
if 1.60000000000000007e-229 < t < 1.05e-132Initial program 92.9%
Taylor expanded in z around 0 72.8%
Taylor expanded in y around inf 43.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -9e-15)
(+ x t_1)
(if (<= b 4e+145) (+ x (+ (* a (- 1.0 t)) (* z (- 1.0 y)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -9e-15) {
tmp = x + t_1;
} else if (b <= 4e+145) {
tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((y + t) - 2.0d0)
if (b <= (-9d-15)) then
tmp = x + t_1
else if (b <= 4d+145) then
tmp = x + ((a * (1.0d0 - t)) + (z * (1.0d0 - y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -9e-15) {
tmp = x + t_1;
} else if (b <= 4e+145) {
tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = b * ((y + t) - 2.0) tmp = 0 if b <= -9e-15: tmp = x + t_1 elif b <= 4e+145: tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(b * Float64(Float64(y + t) - 2.0)) tmp = 0.0 if (b <= -9e-15) tmp = Float64(x + t_1); elseif (b <= 4e+145) tmp = Float64(x + Float64(Float64(a * Float64(1.0 - t)) + Float64(z * Float64(1.0 - y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = b * ((y + t) - 2.0); tmp = 0.0; if (b <= -9e-15) tmp = x + t_1; elseif (b <= 4e+145) tmp = x + ((a * (1.0 - t)) + (z * (1.0 - y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e-15], N[(x + t$95$1), $MachinePrecision], If[LessEqual[b, 4e+145], N[(x + N[(N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.0 - y), $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 -9 \cdot 10^{-15}:\\
\;\;\;\;x + t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+145}:\\
\;\;\;\;x + \left(a \cdot \left(1 - t\right) + z \cdot \left(1 - y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.9999999999999995e-15Initial program 87.7%
Taylor expanded in z around 0 88.0%
Taylor expanded in a around 0 76.1%
if -8.9999999999999995e-15 < b < 4e145Initial program 99.3%
Taylor expanded in b around 0 88.2%
if 4e145 < b Initial program 82.1%
Taylor expanded in b around inf 88.8%
Final simplification85.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -2000000000000.0)
t_1
(if (<= b 7.5e-235) (- x (* y z)) (if (<= b 2e+40) (- x (* t a)) 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 <= -2000000000000.0) {
tmp = t_1;
} else if (b <= 7.5e-235) {
tmp = x - (y * z);
} else if (b <= 2e+40) {
tmp = x - (t * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((y + t) - 2.0d0)
if (b <= (-2000000000000.0d0)) then
tmp = t_1
else if (b <= 7.5d-235) then
tmp = x - (y * z)
else if (b <= 2d+40) then
tmp = x - (t * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -2000000000000.0) {
tmp = t_1;
} else if (b <= 7.5e-235) {
tmp = x - (y * z);
} else if (b <= 2e+40) {
tmp = x - (t * a);
} 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 <= -2000000000000.0: tmp = t_1 elif b <= 7.5e-235: tmp = x - (y * z) elif b <= 2e+40: tmp = x - (t * a) 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 <= -2000000000000.0) tmp = t_1; elseif (b <= 7.5e-235) tmp = Float64(x - Float64(y * z)); elseif (b <= 2e+40) tmp = Float64(x - Float64(t * a)); 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 <= -2000000000000.0) tmp = t_1; elseif (b <= 7.5e-235) tmp = x - (y * z); elseif (b <= 2e+40) tmp = x - (t * a); 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, -2000000000000.0], t$95$1, If[LessEqual[b, 7.5e-235], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+40], N[(x - N[(t * a), $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 -2000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-235}:\\
\;\;\;\;x - y \cdot z\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+40}:\\
\;\;\;\;x - t \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2e12 or 2.00000000000000006e40 < b Initial program 86.5%
Taylor expanded in b around inf 72.3%
if -2e12 < b < 7.49999999999999968e-235Initial program 100.0%
Taylor expanded in b around 0 90.6%
Taylor expanded in y around inf 57.6%
if 7.49999999999999968e-235 < b < 2.00000000000000006e40Initial program 98.3%
Taylor expanded in z around 0 80.3%
Taylor expanded in b around 0 69.2%
Taylor expanded in t around inf 62.1%
*-commutative80.2%
Simplified62.1%
Final simplification65.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* b (- (+ y t) 2.0))))
(if (<= b -9e-15)
(+ x t_1)
(if (<= b 4.3e+136) (+ x (- (* z (- 1.0 y)) (* t a))) 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 <= -9e-15) {
tmp = x + t_1;
} else if (b <= 4.3e+136) {
tmp = x + ((z * (1.0 - y)) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((y + t) - 2.0d0)
if (b <= (-9d-15)) then
tmp = x + t_1
else if (b <= 4.3d+136) then
tmp = x + ((z * (1.0d0 - y)) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = b * ((y + t) - 2.0);
double tmp;
if (b <= -9e-15) {
tmp = x + t_1;
} else if (b <= 4.3e+136) {
tmp = x + ((z * (1.0 - y)) - (t * a));
} 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 <= -9e-15: tmp = x + t_1 elif b <= 4.3e+136: tmp = x + ((z * (1.0 - y)) - (t * a)) 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 <= -9e-15) tmp = Float64(x + t_1); elseif (b <= 4.3e+136) tmp = Float64(x + Float64(Float64(z * Float64(1.0 - y)) - Float64(t * a))); 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 <= -9e-15) tmp = x + t_1; elseif (b <= 4.3e+136) tmp = x + ((z * (1.0 - y)) - (t * a)); 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, -9e-15], N[(x + t$95$1), $MachinePrecision], If[LessEqual[b, 4.3e+136], N[(x + N[(N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision] - N[(t * a), $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 -9 \cdot 10^{-15}:\\
\;\;\;\;x + t\_1\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{+136}:\\
\;\;\;\;x + \left(z \cdot \left(1 - y\right) - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.9999999999999995e-15Initial program 87.7%
Taylor expanded in z around 0 88.0%
Taylor expanded in a around 0 76.1%
if -8.9999999999999995e-15 < b < 4.2999999999999999e136Initial program 99.3%
Taylor expanded in b around 0 88.2%
Taylor expanded in t around inf 78.5%
*-commutative78.5%
Simplified78.5%
if 4.2999999999999999e136 < b Initial program 82.1%
Taylor expanded in b around inf 88.8%
Final simplification79.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -2.1e+35)
t_1
(if (<= t 1.6e-64)
(+ x (* b (- y 2.0)))
(if (<= t 1.08e+18) (- x (* y 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 <= -2.1e+35) {
tmp = t_1;
} else if (t <= 1.6e-64) {
tmp = x + (b * (y - 2.0));
} else if (t <= 1.08e+18) {
tmp = x - (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 = t * (b - a)
if (t <= (-2.1d+35)) then
tmp = t_1
else if (t <= 1.6d-64) then
tmp = x + (b * (y - 2.0d0))
else if (t <= 1.08d+18) then
tmp = x - (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 = t * (b - a);
double tmp;
if (t <= -2.1e+35) {
tmp = t_1;
} else if (t <= 1.6e-64) {
tmp = x + (b * (y - 2.0));
} else if (t <= 1.08e+18) {
tmp = x - (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t * (b - a) tmp = 0 if t <= -2.1e+35: tmp = t_1 elif t <= 1.6e-64: tmp = x + (b * (y - 2.0)) elif t <= 1.08e+18: tmp = x - (y * 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 <= -2.1e+35) tmp = t_1; elseif (t <= 1.6e-64) tmp = Float64(x + Float64(b * Float64(y - 2.0))); elseif (t <= 1.08e+18) tmp = Float64(x - Float64(y * 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 <= -2.1e+35) tmp = t_1; elseif (t <= 1.6e-64) tmp = x + (b * (y - 2.0)); elseif (t <= 1.08e+18) tmp = x - (y * 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, -2.1e+35], t$95$1, If[LessEqual[t, 1.6e-64], N[(x + N[(b * N[(y - 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.08e+18], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-64}:\\
\;\;\;\;x + b \cdot \left(y - 2\right)\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{+18}:\\
\;\;\;\;x - y \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.0999999999999999e35 or 1.08e18 < t Initial program 91.6%
Taylor expanded in t around inf 71.2%
if -2.0999999999999999e35 < t < 1.59999999999999988e-64Initial program 94.5%
Taylor expanded in z around 0 73.7%
Taylor expanded in a around 0 59.2%
Taylor expanded in t around 0 59.2%
if 1.59999999999999988e-64 < t < 1.08e18Initial program 100.0%
Taylor expanded in b around 0 88.7%
Taylor expanded in y around inf 53.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- z))))
(if (<= z -2e+98)
t_1
(if (<= z 5.8e-99) (+ x a) (if (<= z 3.05e+155) (* t (- a)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (z <= -2e+98) {
tmp = t_1;
} else if (z <= 5.8e-99) {
tmp = x + a;
} else if (z <= 3.05e+155) {
tmp = t * -a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * -z
if (z <= (-2d+98)) then
tmp = t_1
else if (z <= 5.8d-99) then
tmp = x + a
else if (z <= 3.05d+155) then
tmp = t * -a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * -z;
double tmp;
if (z <= -2e+98) {
tmp = t_1;
} else if (z <= 5.8e-99) {
tmp = x + a;
} else if (z <= 3.05e+155) {
tmp = t * -a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * -z tmp = 0 if z <= -2e+98: tmp = t_1 elif z <= 5.8e-99: tmp = x + a elif z <= 3.05e+155: tmp = t * -a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(-z)) tmp = 0.0 if (z <= -2e+98) tmp = t_1; elseif (z <= 5.8e-99) tmp = Float64(x + a); elseif (z <= 3.05e+155) tmp = Float64(t * Float64(-a)); 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 (z <= -2e+98) tmp = t_1; elseif (z <= 5.8e-99) tmp = x + a; elseif (z <= 3.05e+155) tmp = t * -a; 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[z, -2e+98], t$95$1, If[LessEqual[z, 5.8e-99], N[(x + a), $MachinePrecision], If[LessEqual[z, 3.05e+155], N[(t * (-a)), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(-z\right)\\
\mathbf{if}\;z \leq -2 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-99}:\\
\;\;\;\;x + a\\
\mathbf{elif}\;z \leq 3.05 \cdot 10^{+155}:\\
\;\;\;\;t \cdot \left(-a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2e98 or 3.04999999999999978e155 < z Initial program 88.2%
Taylor expanded in z around inf 65.2%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
distribute-lft-neg-out50.5%
*-commutative50.5%
Simplified50.5%
if -2e98 < z < 5.79999999999999971e-99Initial program 96.1%
Taylor expanded in z around 0 92.4%
Taylor expanded in b around 0 57.0%
Taylor expanded in t around 0 37.8%
neg-mul-137.8%
Simplified37.8%
if 5.79999999999999971e-99 < z < 3.04999999999999978e155Initial program 96.0%
Taylor expanded in b around 0 67.3%
Taylor expanded in t around inf 29.8%
mul-1-neg29.8%
*-commutative29.8%
distribute-rgt-neg-in29.8%
Simplified29.8%
Final simplification39.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -9.5e+37) (not (<= y 7.5e+29))) (* y (- b z)) (+ x (* b t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.5e+37) || !(y <= 7.5e+29)) {
tmp = y * (b - z);
} else {
tmp = x + (b * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-9.5d+37)) .or. (.not. (y <= 7.5d+29))) then
tmp = y * (b - z)
else
tmp = x + (b * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -9.5e+37) || !(y <= 7.5e+29)) {
tmp = y * (b - z);
} else {
tmp = x + (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -9.5e+37) or not (y <= 7.5e+29): tmp = y * (b - z) else: tmp = x + (b * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -9.5e+37) || !(y <= 7.5e+29)) tmp = Float64(y * Float64(b - z)); else tmp = Float64(x + Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -9.5e+37) || ~((y <= 7.5e+29))) tmp = y * (b - z); else tmp = x + (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -9.5e+37], N[Not[LessEqual[y, 7.5e+29]], $MachinePrecision]], N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+37} \lor \neg \left(y \leq 7.5 \cdot 10^{+29}\right):\\
\;\;\;\;y \cdot \left(b - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot t\\
\end{array}
\end{array}
if y < -9.4999999999999995e37 or 7.49999999999999945e29 < y Initial program 89.2%
Taylor expanded in y around inf 68.4%
if -9.4999999999999995e37 < y < 7.49999999999999945e29Initial program 97.2%
Taylor expanded in z around 0 85.6%
Taylor expanded in a around 0 61.5%
Taylor expanded in t around inf 48.7%
Final simplification57.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.2e+44) (not (<= t 8.4e+17))) (* b t) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.2e+44) || !(t <= 8.4e+17)) {
tmp = b * t;
} 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 <= (-5.2d+44)) .or. (.not. (t <= 8.4d+17))) then
tmp = b * t
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 <= -5.2e+44) || !(t <= 8.4e+17)) {
tmp = b * t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.2e+44) or not (t <= 8.4e+17): tmp = b * t else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.2e+44) || !(t <= 8.4e+17)) tmp = Float64(b * t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -5.2e+44) || ~((t <= 8.4e+17))) tmp = b * t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.2e+44], N[Not[LessEqual[t, 8.4e+17]], $MachinePrecision]], N[(b * t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{+44} \lor \neg \left(t \leq 8.4 \cdot 10^{+17}\right):\\
\;\;\;\;b \cdot t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -5.1999999999999998e44 or 8.4e17 < t Initial program 91.1%
Taylor expanded in b around inf 47.2%
Taylor expanded in t around inf 41.3%
if -5.1999999999999998e44 < t < 8.4e17Initial program 95.8%
Taylor expanded in x around inf 24.8%
Final simplification32.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= x -1.15e-14) (not (<= x 1.55e+140))) x a))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x <= -1.15e-14) || !(x <= 1.55e+140)) {
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 ((x <= (-1.15d-14)) .or. (.not. (x <= 1.55d+140))) 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 ((x <= -1.15e-14) || !(x <= 1.55e+140)) {
tmp = x;
} else {
tmp = a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (x <= -1.15e-14) or not (x <= 1.55e+140): tmp = x else: tmp = a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((x <= -1.15e-14) || !(x <= 1.55e+140)) tmp = x; else tmp = a; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((x <= -1.15e-14) || ~((x <= 1.55e+140))) tmp = x; else tmp = a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -1.15e-14], N[Not[LessEqual[x, 1.55e+140]], $MachinePrecision]], x, a]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.15 \cdot 10^{-14} \lor \neg \left(x \leq 1.55 \cdot 10^{+140}\right):\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;a\\
\end{array}
\end{array}
if x < -1.14999999999999999e-14 or 1.55e140 < x Initial program 96.1%
Taylor expanded in x around inf 41.6%
if -1.14999999999999999e-14 < x < 1.55e140Initial program 92.2%
Taylor expanded in a around inf 36.0%
Taylor expanded in t around 0 12.8%
Final simplification24.4%
(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 93.7%
Taylor expanded in a around inf 28.4%
Taylor expanded in t around 0 9.9%
herbie shell --seed 2024096
(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)))