
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
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 * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
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 * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* y b) t))
(t_2 (+ 1.0 (+ a t_1)))
(t_3 (/ (+ x (/ (* y z) t)) (+ t_1 (+ a 1.0))))
(t_4 (* z (+ (/ x (* z t_2)) (/ y (* t t_2))))))
(if (<= t_3 -1e+272)
t_4
(if (<= t_3 -5e-320)
t_3
(if (<= t_3 0.0)
(/ (+ (* t (/ x b)) (* y (/ z b))) y)
(if (<= t_3 2e+299) t_3 (if (<= t_3 INFINITY) t_4 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = 1.0 + (a + t_1);
double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_4 = z * ((x / (z * t_2)) + (y / (t * t_2)));
double tmp;
if (t_3 <= -1e+272) {
tmp = t_4;
} else if (t_3 <= -5e-320) {
tmp = t_3;
} else if (t_3 <= 0.0) {
tmp = ((t * (x / b)) + (y * (z / b))) / y;
} else if (t_3 <= 2e+299) {
tmp = t_3;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = 1.0 + (a + t_1);
double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_4 = z * ((x / (z * t_2)) + (y / (t * t_2)));
double tmp;
if (t_3 <= -1e+272) {
tmp = t_4;
} else if (t_3 <= -5e-320) {
tmp = t_3;
} else if (t_3 <= 0.0) {
tmp = ((t * (x / b)) + (y * (z / b))) / y;
} else if (t_3 <= 2e+299) {
tmp = t_3;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = 1.0 + (a + t_1) t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)) t_4 = z * ((x / (z * t_2)) + (y / (t * t_2))) tmp = 0 if t_3 <= -1e+272: tmp = t_4 elif t_3 <= -5e-320: tmp = t_3 elif t_3 <= 0.0: tmp = ((t * (x / b)) + (y * (z / b))) / y elif t_3 <= 2e+299: tmp = t_3 elif t_3 <= math.inf: tmp = t_4 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(1.0 + Float64(a + t_1)) t_3 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(t_1 + Float64(a + 1.0))) t_4 = Float64(z * Float64(Float64(x / Float64(z * t_2)) + Float64(y / Float64(t * t_2)))) tmp = 0.0 if (t_3 <= -1e+272) tmp = t_4; elseif (t_3 <= -5e-320) tmp = t_3; elseif (t_3 <= 0.0) tmp = Float64(Float64(Float64(t * Float64(x / b)) + Float64(y * Float64(z / b))) / y); elseif (t_3 <= 2e+299) tmp = t_3; elseif (t_3 <= Inf) tmp = t_4; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * b) / t; t_2 = 1.0 + (a + t_1); t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)); t_4 = z * ((x / (z * t_2)) + (y / (t * t_2))); tmp = 0.0; if (t_3 <= -1e+272) tmp = t_4; elseif (t_3 <= -5e-320) tmp = t_3; elseif (t_3 <= 0.0) tmp = ((t * (x / b)) + (y * (z / b))) / y; elseif (t_3 <= 2e+299) tmp = t_3; elseif (t_3 <= Inf) tmp = t_4; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x / N[(z * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -1e+272], t$95$4, If[LessEqual[t$95$3, -5e-320], t$95$3, If[LessEqual[t$95$3, 0.0], N[(N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$3, 2e+299], t$95$3, If[LessEqual[t$95$3, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := 1 + \left(a + t\_1\right)\\
t_3 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\
t_4 := z \cdot \left(\frac{x}{z \cdot t\_2} + \frac{y}{t \cdot t\_2}\right)\\
\mathbf{if}\;t\_3 \leq -1 \cdot 10^{+272}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-320}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\
\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.0000000000000001e272 or 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 36.2%
associate-/l*56.7%
associate-/l*56.6%
Simplified56.6%
Taylor expanded in z around inf 89.3%
if -1.0000000000000001e272 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99994e-320 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299Initial program 99.7%
if -4.99994e-320 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 43.3%
associate-/l*46.0%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in b around inf 39.6%
times-frac59.9%
+-commutative59.9%
associate-*r/59.9%
fma-undefine59.9%
Simplified59.9%
Taylor expanded in y around 0 69.4%
associate-/l*72.2%
associate-/l*69.6%
Simplified69.6%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
associate-/l*0.1%
associate-/l*4.0%
Simplified4.0%
Taylor expanded in y around inf 100.0%
Final simplification94.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
(if (<= t_1 (- INFINITY))
(* (/ y t) (/ z (+ (+ a 1.0) (* b (/ y t)))))
(if (<= t_1 -5e-320)
t_1
(if (<= t_1 0.0)
(/ (+ (* t (/ x b)) (* y (/ z b))) y)
(if (<= t_1 2e+299) t_1 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
} else if (t_1 <= -5e-320) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((t * (x / b)) + (y * (z / b))) / y;
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
} else if (t_1 <= -5e-320) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = ((t * (x / b)) + (y * (z / b))) / y;
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0)) tmp = 0 if t_1 <= -math.inf: tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t)))) elif t_1 <= -5e-320: tmp = t_1 elif t_1 <= 0.0: tmp = ((t * (x / b)) + (y * (z / b))) / y elif t_1 <= 2e+299: tmp = t_1 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(y / t) * Float64(z / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t))))); elseif (t_1 <= -5e-320) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(t * Float64(x / b)) + Float64(y * Float64(z / b))) / y); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0)); tmp = 0.0; if (t_1 <= -Inf) tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t)))); elseif (t_1 <= -5e-320) tmp = t_1; elseif (t_1 <= 0.0) tmp = ((t * (x / b)) + (y * (z / b))) / y; elseif (t_1 <= 2e+299) tmp = t_1; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(y / t), $MachinePrecision] * N[(z / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-320], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-320}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 21.3%
*-commutative21.3%
associate-/l*11.4%
Applied egg-rr11.4%
Taylor expanded in x around 0 51.4%
times-frac84.4%
associate-+r+84.4%
associate-/l*74.3%
Simplified74.3%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99994e-320 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299Initial program 99.7%
if -4.99994e-320 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 43.3%
associate-/l*46.0%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in b around inf 39.6%
times-frac59.9%
+-commutative59.9%
associate-*r/59.9%
fma-undefine59.9%
Simplified59.9%
Taylor expanded in y around 0 69.4%
associate-/l*72.2%
associate-/l*69.6%
Simplified69.6%
if 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 9.0%
associate-/l*20.1%
associate-/l*22.2%
Simplified22.2%
Taylor expanded in y around inf 79.3%
Final simplification91.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* y b) t))
(t_2 (+ 1.0 (+ a t_1)))
(t_3 (/ (+ x (/ (* y z) t)) (+ t_1 (+ a 1.0))))
(t_4 (+ (/ x t_2) (/ (* y z) (* t t_2)))))
(if (<= t_3 -5e-320)
t_4
(if (<= t_3 0.0)
(/ (+ (* t (/ x b)) (* y (/ z b))) y)
(if (<= t_3 INFINITY) t_4 (/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = 1.0 + (a + t_1);
double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_4 = (x / t_2) + ((y * z) / (t * t_2));
double tmp;
if (t_3 <= -5e-320) {
tmp = t_4;
} else if (t_3 <= 0.0) {
tmp = ((t * (x / b)) + (y * (z / b))) / y;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = 1.0 + (a + t_1);
double t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_4 = (x / t_2) + ((y * z) / (t * t_2));
double tmp;
if (t_3 <= -5e-320) {
tmp = t_4;
} else if (t_3 <= 0.0) {
tmp = ((t * (x / b)) + (y * (z / b))) / y;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = 1.0 + (a + t_1) t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)) t_4 = (x / t_2) + ((y * z) / (t * t_2)) tmp = 0 if t_3 <= -5e-320: tmp = t_4 elif t_3 <= 0.0: tmp = ((t * (x / b)) + (y * (z / b))) / y elif t_3 <= math.inf: tmp = t_4 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(1.0 + Float64(a + t_1)) t_3 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(t_1 + Float64(a + 1.0))) t_4 = Float64(Float64(x / t_2) + Float64(Float64(y * z) / Float64(t * t_2))) tmp = 0.0 if (t_3 <= -5e-320) tmp = t_4; elseif (t_3 <= 0.0) tmp = Float64(Float64(Float64(t * Float64(x / b)) + Float64(y * Float64(z / b))) / y); elseif (t_3 <= Inf) tmp = t_4; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * b) / t; t_2 = 1.0 + (a + t_1); t_3 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)); t_4 = (x / t_2) + ((y * z) / (t * t_2)); tmp = 0.0; if (t_3 <= -5e-320) tmp = t_4; elseif (t_3 <= 0.0) tmp = ((t * (x / b)) + (y * (z / b))) / y; elseif (t_3 <= Inf) tmp = t_4; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x / t$95$2), $MachinePrecision] + N[(N[(y * z), $MachinePrecision] / N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -5e-320], t$95$4, If[LessEqual[t$95$3, 0.0], N[(N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(z / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t$95$3, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := 1 + \left(a + t\_1\right)\\
t_3 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\
t_4 := \frac{x}{t\_2} + \frac{y \cdot z}{t \cdot t\_2}\\
\mathbf{if}\;t\_3 \leq -5 \cdot 10^{-320}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;\frac{t \cdot \frac{x}{b} + y \cdot \frac{z}{b}}{y}\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99994e-320 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 87.7%
associate-/l*87.2%
associate-/l*84.2%
Simplified84.2%
Taylor expanded in x around 0 92.9%
if -4.99994e-320 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 43.3%
associate-/l*46.0%
associate-/l*59.6%
Simplified59.6%
Taylor expanded in b around inf 39.6%
times-frac59.9%
+-commutative59.9%
associate-*r/59.9%
fma-undefine59.9%
Simplified59.9%
Taylor expanded in y around 0 69.4%
associate-/l*72.2%
associate-/l*69.6%
Simplified69.6%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
associate-/l*0.1%
associate-/l*4.0%
Simplified4.0%
Taylor expanded in y around inf 100.0%
Final simplification90.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (/ z b) (/ (* x t) (* y b)))) (t_2 (/ (+ x (/ y (/ t z))) a)))
(if (<= a -2.2e+64)
t_2
(if (<= a -2.6e-7)
t_1
(if (<= a -9.5e-180)
(+ x (/ (* y z) t))
(if (<= a -4.4e-265)
t_1
(if (<= a 9e-120)
(+ x (* z (* y (/ 1.0 t))))
(if (<= a 3.2e-76)
t_1
(if (<= a 4.1e-53)
(+ x (* z (/ y t)))
(if (<= a 5.6e+34) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z / b) + ((x * t) / (y * b));
double t_2 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -2.2e+64) {
tmp = t_2;
} else if (a <= -2.6e-7) {
tmp = t_1;
} else if (a <= -9.5e-180) {
tmp = x + ((y * z) / t);
} else if (a <= -4.4e-265) {
tmp = t_1;
} else if (a <= 9e-120) {
tmp = x + (z * (y * (1.0 / t)));
} else if (a <= 3.2e-76) {
tmp = t_1;
} else if (a <= 4.1e-53) {
tmp = x + (z * (y / t));
} else if (a <= 5.6e+34) {
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 = (z / b) + ((x * t) / (y * b))
t_2 = (x + (y / (t / z))) / a
if (a <= (-2.2d+64)) then
tmp = t_2
else if (a <= (-2.6d-7)) then
tmp = t_1
else if (a <= (-9.5d-180)) then
tmp = x + ((y * z) / t)
else if (a <= (-4.4d-265)) then
tmp = t_1
else if (a <= 9d-120) then
tmp = x + (z * (y * (1.0d0 / t)))
else if (a <= 3.2d-76) then
tmp = t_1
else if (a <= 4.1d-53) then
tmp = x + (z * (y / t))
else if (a <= 5.6d+34) 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 = (z / b) + ((x * t) / (y * b));
double t_2 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -2.2e+64) {
tmp = t_2;
} else if (a <= -2.6e-7) {
tmp = t_1;
} else if (a <= -9.5e-180) {
tmp = x + ((y * z) / t);
} else if (a <= -4.4e-265) {
tmp = t_1;
} else if (a <= 9e-120) {
tmp = x + (z * (y * (1.0 / t)));
} else if (a <= 3.2e-76) {
tmp = t_1;
} else if (a <= 4.1e-53) {
tmp = x + (z * (y / t));
} else if (a <= 5.6e+34) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z / b) + ((x * t) / (y * b)) t_2 = (x + (y / (t / z))) / a tmp = 0 if a <= -2.2e+64: tmp = t_2 elif a <= -2.6e-7: tmp = t_1 elif a <= -9.5e-180: tmp = x + ((y * z) / t) elif a <= -4.4e-265: tmp = t_1 elif a <= 9e-120: tmp = x + (z * (y * (1.0 / t))) elif a <= 3.2e-76: tmp = t_1 elif a <= 4.1e-53: tmp = x + (z * (y / t)) elif a <= 5.6e+34: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))) t_2 = Float64(Float64(x + Float64(y / Float64(t / z))) / a) tmp = 0.0 if (a <= -2.2e+64) tmp = t_2; elseif (a <= -2.6e-7) tmp = t_1; elseif (a <= -9.5e-180) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (a <= -4.4e-265) tmp = t_1; elseif (a <= 9e-120) tmp = Float64(x + Float64(z * Float64(y * Float64(1.0 / t)))); elseif (a <= 3.2e-76) tmp = t_1; elseif (a <= 4.1e-53) tmp = Float64(x + Float64(z * Float64(y / t))); elseif (a <= 5.6e+34) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z / b) + ((x * t) / (y * b)); t_2 = (x + (y / (t / z))) / a; tmp = 0.0; if (a <= -2.2e+64) tmp = t_2; elseif (a <= -2.6e-7) tmp = t_1; elseif (a <= -9.5e-180) tmp = x + ((y * z) / t); elseif (a <= -4.4e-265) tmp = t_1; elseif (a <= 9e-120) tmp = x + (z * (y * (1.0 / t))); elseif (a <= 3.2e-76) tmp = t_1; elseif (a <= 4.1e-53) tmp = x + (z * (y / t)); elseif (a <= 5.6e+34) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -2.2e+64], t$95$2, If[LessEqual[a, -2.6e-7], t$95$1, If[LessEqual[a, -9.5e-180], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e-265], t$95$1, If[LessEqual[a, 9e-120], N[(x + N[(z * N[(y * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-76], t$95$1, If[LessEqual[a, 4.1e-53], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e+34], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
t_2 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-180}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-120}:\\
\;\;\;\;x + z \cdot \left(y \cdot \frac{1}{t}\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-53}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.20000000000000002e64 or 5.60000000000000016e34 < a Initial program 74.4%
associate-/l*77.4%
associate-/l*72.4%
Simplified72.4%
clear-num72.4%
un-div-inv73.0%
Applied egg-rr73.0%
Taylor expanded in a around inf 74.0%
if -2.20000000000000002e64 < a < -2.59999999999999999e-7 or -9.49999999999999934e-180 < a < -4.40000000000000021e-265 or 9e-120 < a < 3.1999999999999998e-76 or 4.1000000000000001e-53 < a < 5.60000000000000016e34Initial program 57.1%
associate-/l*55.7%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in b around inf 46.7%
times-frac42.2%
+-commutative42.2%
associate-*r/45.4%
fma-undefine45.4%
Simplified45.4%
Taylor expanded in t around 0 74.7%
*-commutative74.7%
Simplified74.7%
if -2.59999999999999999e-7 < a < -9.49999999999999934e-180Initial program 84.0%
associate-/l*81.7%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in b around 0 67.3%
Taylor expanded in a around 0 64.4%
if -4.40000000000000021e-265 < a < 9e-120Initial program 79.4%
associate-/l*77.5%
associate-/l*79.4%
Simplified79.4%
Taylor expanded in b around 0 69.4%
Taylor expanded in a around 0 69.4%
associate-*r/65.6%
*-commutative65.6%
div-inv65.6%
associate-*l*73.1%
Applied egg-rr73.1%
if 3.1999999999999998e-76 < a < 4.1000000000000001e-53Initial program 84.1%
associate-/l*84.8%
associate-/l*84.8%
Simplified84.8%
Taylor expanded in b around 0 84.1%
Taylor expanded in a around 0 84.1%
*-commutative84.1%
associate-/l*100.0%
Applied egg-rr100.0%
Final simplification73.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ y (/ t z))) a)))
(if (<= a -2.2e+64)
t_1
(if (<= a -0.0058)
(/ z b)
(if (<= a -1.6e-179)
(+ x (/ (* y z) t))
(if (<= a -6.2e-213)
(/ z b)
(if (<= a 8.5e-53)
(+ x (* z (/ y t)))
(if (<= a 24000000000000.0)
(* (/ t b) (+ (/ z t) (/ x y)))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -2.2e+64) {
tmp = t_1;
} else if (a <= -0.0058) {
tmp = z / b;
} else if (a <= -1.6e-179) {
tmp = x + ((y * z) / t);
} else if (a <= -6.2e-213) {
tmp = z / b;
} else if (a <= 8.5e-53) {
tmp = x + (z * (y / t));
} else if (a <= 24000000000000.0) {
tmp = (t / b) * ((z / t) + (x / 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 = (x + (y / (t / z))) / a
if (a <= (-2.2d+64)) then
tmp = t_1
else if (a <= (-0.0058d0)) then
tmp = z / b
else if (a <= (-1.6d-179)) then
tmp = x + ((y * z) / t)
else if (a <= (-6.2d-213)) then
tmp = z / b
else if (a <= 8.5d-53) then
tmp = x + (z * (y / t))
else if (a <= 24000000000000.0d0) then
tmp = (t / b) * ((z / t) + (x / 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 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -2.2e+64) {
tmp = t_1;
} else if (a <= -0.0058) {
tmp = z / b;
} else if (a <= -1.6e-179) {
tmp = x + ((y * z) / t);
} else if (a <= -6.2e-213) {
tmp = z / b;
} else if (a <= 8.5e-53) {
tmp = x + (z * (y / t));
} else if (a <= 24000000000000.0) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y / (t / z))) / a tmp = 0 if a <= -2.2e+64: tmp = t_1 elif a <= -0.0058: tmp = z / b elif a <= -1.6e-179: tmp = x + ((y * z) / t) elif a <= -6.2e-213: tmp = z / b elif a <= 8.5e-53: tmp = x + (z * (y / t)) elif a <= 24000000000000.0: tmp = (t / b) * ((z / t) + (x / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / a) tmp = 0.0 if (a <= -2.2e+64) tmp = t_1; elseif (a <= -0.0058) tmp = Float64(z / b); elseif (a <= -1.6e-179) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (a <= -6.2e-213) tmp = Float64(z / b); elseif (a <= 8.5e-53) tmp = Float64(x + Float64(z * Float64(y / t))); elseif (a <= 24000000000000.0) tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y / (t / z))) / a; tmp = 0.0; if (a <= -2.2e+64) tmp = t_1; elseif (a <= -0.0058) tmp = z / b; elseif (a <= -1.6e-179) tmp = x + ((y * z) / t); elseif (a <= -6.2e-213) tmp = z / b; elseif (a <= 8.5e-53) tmp = x + (z * (y / t)); elseif (a <= 24000000000000.0) tmp = (t / b) * ((z / t) + (x / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -2.2e+64], t$95$1, If[LessEqual[a, -0.0058], N[(z / b), $MachinePrecision], If[LessEqual[a, -1.6e-179], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.2e-213], N[(z / b), $MachinePrecision], If[LessEqual[a, 8.5e-53], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 24000000000000.0], N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -0.0058:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-179}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-213}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-53}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{elif}\;a \leq 24000000000000:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.20000000000000002e64 or 2.4e13 < a Initial program 74.4%
associate-/l*77.4%
associate-/l*72.4%
Simplified72.4%
clear-num72.4%
un-div-inv73.0%
Applied egg-rr73.0%
Taylor expanded in a around inf 74.0%
if -2.20000000000000002e64 < a < -0.0058 or -1.6e-179 < a < -6.1999999999999996e-213Initial program 36.7%
associate-/l*32.4%
associate-/l*36.9%
Simplified36.9%
Taylor expanded in y around inf 82.3%
if -0.0058 < a < -1.6e-179Initial program 84.0%
associate-/l*81.7%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in b around 0 67.3%
Taylor expanded in a around 0 64.4%
if -6.1999999999999996e-213 < a < 8.50000000000000044e-53Initial program 76.9%
associate-/l*75.7%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in b around 0 59.1%
Taylor expanded in a around 0 59.1%
*-commutative59.1%
associate-/l*62.5%
Applied egg-rr62.5%
if 8.50000000000000044e-53 < a < 2.4e13Initial program 65.1%
associate-/l*65.1%
associate-/l*71.9%
Simplified71.9%
Taylor expanded in b around inf 37.4%
times-frac44.7%
+-commutative44.7%
associate-*r/51.4%
fma-undefine51.4%
Simplified51.4%
Taylor expanded in y around inf 51.6%
Final simplification68.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* y (/ z t))) a)))
(if (<= a -2.2e+64)
t_1
(if (<= a -0.00011)
(/ z b)
(if (<= a -3.6e-178)
(+ x (/ (* y z) t))
(if (<= a -2.75e-213)
(/ z b)
(if (<= a 1.05) (+ x (* z (/ y t))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / a;
double tmp;
if (a <= -2.2e+64) {
tmp = t_1;
} else if (a <= -0.00011) {
tmp = z / b;
} else if (a <= -3.6e-178) {
tmp = x + ((y * z) / t);
} else if (a <= -2.75e-213) {
tmp = z / b;
} else if (a <= 1.05) {
tmp = x + (z * (y / t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (y * (z / t))) / a
if (a <= (-2.2d+64)) then
tmp = t_1
else if (a <= (-0.00011d0)) then
tmp = z / b
else if (a <= (-3.6d-178)) then
tmp = x + ((y * z) / t)
else if (a <= (-2.75d-213)) then
tmp = z / b
else if (a <= 1.05d0) then
tmp = x + (z * (y / t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / a;
double tmp;
if (a <= -2.2e+64) {
tmp = t_1;
} else if (a <= -0.00011) {
tmp = z / b;
} else if (a <= -3.6e-178) {
tmp = x + ((y * z) / t);
} else if (a <= -2.75e-213) {
tmp = z / b;
} else if (a <= 1.05) {
tmp = x + (z * (y / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y * (z / t))) / a tmp = 0 if a <= -2.2e+64: tmp = t_1 elif a <= -0.00011: tmp = z / b elif a <= -3.6e-178: tmp = x + ((y * z) / t) elif a <= -2.75e-213: tmp = z / b elif a <= 1.05: tmp = x + (z * (y / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / a) tmp = 0.0 if (a <= -2.2e+64) tmp = t_1; elseif (a <= -0.00011) tmp = Float64(z / b); elseif (a <= -3.6e-178) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (a <= -2.75e-213) tmp = Float64(z / b); elseif (a <= 1.05) tmp = Float64(x + Float64(z * Float64(y / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y * (z / t))) / a; tmp = 0.0; if (a <= -2.2e+64) tmp = t_1; elseif (a <= -0.00011) tmp = z / b; elseif (a <= -3.6e-178) tmp = x + ((y * z) / t); elseif (a <= -2.75e-213) tmp = z / b; elseif (a <= 1.05) tmp = x + (z * (y / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -2.2e+64], t$95$1, If[LessEqual[a, -0.00011], N[(z / b), $MachinePrecision], If[LessEqual[a, -3.6e-178], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.75e-213], N[(z / b), $MachinePrecision], If[LessEqual[a, 1.05], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + y \cdot \frac{z}{t}}{a}\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -0.00011:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-178}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-213}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 1.05:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.20000000000000002e64 or 1.05000000000000004 < a Initial program 75.7%
associate-/l*77.5%
associate-/l*71.8%
Simplified71.8%
Taylor expanded in a around inf 70.8%
if -2.20000000000000002e64 < a < -1.10000000000000004e-4 or -3.59999999999999994e-178 < a < -2.75000000000000004e-213Initial program 36.7%
associate-/l*32.4%
associate-/l*36.9%
Simplified36.9%
Taylor expanded in y around inf 82.3%
if -1.10000000000000004e-4 < a < -3.59999999999999994e-178Initial program 84.0%
associate-/l*81.7%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in b around 0 67.3%
Taylor expanded in a around 0 64.4%
if -2.75000000000000004e-213 < a < 1.05000000000000004Initial program 73.8%
associate-/l*73.9%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in b around 0 55.6%
Taylor expanded in a around 0 55.6%
*-commutative55.6%
associate-/l*58.7%
Applied egg-rr58.7%
Final simplification66.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ y (/ t z))) a)))
(if (<= a -7.5e+64)
t_1
(if (<= a -4.4e-5)
(/ z b)
(if (<= a -2.75e-179)
(+ x (/ (* y z) t))
(if (<= a -5.8e-213)
(/ z b)
(if (<= a 1.05) (+ x (* z (/ y t))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -7.5e+64) {
tmp = t_1;
} else if (a <= -4.4e-5) {
tmp = z / b;
} else if (a <= -2.75e-179) {
tmp = x + ((y * z) / t);
} else if (a <= -5.8e-213) {
tmp = z / b;
} else if (a <= 1.05) {
tmp = x + (z * (y / t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (y / (t / z))) / a
if (a <= (-7.5d+64)) then
tmp = t_1
else if (a <= (-4.4d-5)) then
tmp = z / b
else if (a <= (-2.75d-179)) then
tmp = x + ((y * z) / t)
else if (a <= (-5.8d-213)) then
tmp = z / b
else if (a <= 1.05d0) then
tmp = x + (z * (y / t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y / (t / z))) / a;
double tmp;
if (a <= -7.5e+64) {
tmp = t_1;
} else if (a <= -4.4e-5) {
tmp = z / b;
} else if (a <= -2.75e-179) {
tmp = x + ((y * z) / t);
} else if (a <= -5.8e-213) {
tmp = z / b;
} else if (a <= 1.05) {
tmp = x + (z * (y / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y / (t / z))) / a tmp = 0 if a <= -7.5e+64: tmp = t_1 elif a <= -4.4e-5: tmp = z / b elif a <= -2.75e-179: tmp = x + ((y * z) / t) elif a <= -5.8e-213: tmp = z / b elif a <= 1.05: tmp = x + (z * (y / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y / Float64(t / z))) / a) tmp = 0.0 if (a <= -7.5e+64) tmp = t_1; elseif (a <= -4.4e-5) tmp = Float64(z / b); elseif (a <= -2.75e-179) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (a <= -5.8e-213) tmp = Float64(z / b); elseif (a <= 1.05) tmp = Float64(x + Float64(z * Float64(y / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y / (t / z))) / a; tmp = 0.0; if (a <= -7.5e+64) tmp = t_1; elseif (a <= -4.4e-5) tmp = z / b; elseif (a <= -2.75e-179) tmp = x + ((y * z) / t); elseif (a <= -5.8e-213) tmp = z / b; elseif (a <= 1.05) tmp = x + (z * (y / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -7.5e+64], t$95$1, If[LessEqual[a, -4.4e-5], N[(z / b), $MachinePrecision], If[LessEqual[a, -2.75e-179], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.8e-213], N[(z / b), $MachinePrecision], If[LessEqual[a, 1.05], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y}{\frac{t}{z}}}{a}\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-5}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-179}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-213}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 1.05:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.5000000000000005e64 or 1.05000000000000004 < a Initial program 75.7%
associate-/l*77.5%
associate-/l*71.8%
Simplified71.8%
clear-num71.8%
un-div-inv72.4%
Applied egg-rr72.4%
Taylor expanded in a around inf 70.9%
if -7.5000000000000005e64 < a < -4.3999999999999999e-5 or -2.7500000000000001e-179 < a < -5.7999999999999999e-213Initial program 36.7%
associate-/l*32.4%
associate-/l*36.9%
Simplified36.9%
Taylor expanded in y around inf 82.3%
if -4.3999999999999999e-5 < a < -2.7500000000000001e-179Initial program 84.0%
associate-/l*81.7%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in b around 0 67.3%
Taylor expanded in a around 0 64.4%
if -5.7999999999999999e-213 < a < 1.05000000000000004Initial program 73.8%
associate-/l*73.9%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in b around 0 55.6%
Taylor expanded in a around 0 55.6%
*-commutative55.6%
associate-/l*58.7%
Applied egg-rr58.7%
Final simplification66.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -1.3e+80)
(/ x a)
(if (<= a -0.0058)
(/ z b)
(if (<= a -5e-154)
x
(if (<= a -3.4e-263)
(/ z b)
(if (<= a 2.4e-133) x (if (<= a 2.9e+28) (/ z b) (/ x a))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.3e+80) {
tmp = x / a;
} else if (a <= -0.0058) {
tmp = z / b;
} else if (a <= -5e-154) {
tmp = x;
} else if (a <= -3.4e-263) {
tmp = z / b;
} else if (a <= 2.4e-133) {
tmp = x;
} else if (a <= 2.9e+28) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= (-1.3d+80)) then
tmp = x / a
else if (a <= (-0.0058d0)) then
tmp = z / b
else if (a <= (-5d-154)) then
tmp = x
else if (a <= (-3.4d-263)) then
tmp = z / b
else if (a <= 2.4d-133) then
tmp = x
else if (a <= 2.9d+28) then
tmp = z / b
else
tmp = x / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.3e+80) {
tmp = x / a;
} else if (a <= -0.0058) {
tmp = z / b;
} else if (a <= -5e-154) {
tmp = x;
} else if (a <= -3.4e-263) {
tmp = z / b;
} else if (a <= 2.4e-133) {
tmp = x;
} else if (a <= 2.9e+28) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -1.3e+80: tmp = x / a elif a <= -0.0058: tmp = z / b elif a <= -5e-154: tmp = x elif a <= -3.4e-263: tmp = z / b elif a <= 2.4e-133: tmp = x elif a <= 2.9e+28: tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -1.3e+80) tmp = Float64(x / a); elseif (a <= -0.0058) tmp = Float64(z / b); elseif (a <= -5e-154) tmp = x; elseif (a <= -3.4e-263) tmp = Float64(z / b); elseif (a <= 2.4e-133) tmp = x; elseif (a <= 2.9e+28) tmp = Float64(z / b); else tmp = Float64(x / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -1.3e+80) tmp = x / a; elseif (a <= -0.0058) tmp = z / b; elseif (a <= -5e-154) tmp = x; elseif (a <= -3.4e-263) tmp = z / b; elseif (a <= 2.4e-133) tmp = x; elseif (a <= 2.9e+28) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.3e+80], N[(x / a), $MachinePrecision], If[LessEqual[a, -0.0058], N[(z / b), $MachinePrecision], If[LessEqual[a, -5e-154], x, If[LessEqual[a, -3.4e-263], N[(z / b), $MachinePrecision], If[LessEqual[a, 2.4e-133], x, If[LessEqual[a, 2.9e+28], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+80}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq -0.0058:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-154}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.4 \cdot 10^{-263}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-133}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+28}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -1.29999999999999991e80 or 2.9000000000000001e28 < a Initial program 74.2%
associate-/l*77.2%
associate-/l*72.1%
Simplified72.1%
Taylor expanded in y around 0 50.9%
Taylor expanded in a around inf 50.9%
if -1.29999999999999991e80 < a < -0.0058 or -5.0000000000000002e-154 < a < -3.40000000000000004e-263 or 2.4e-133 < a < 2.9000000000000001e28Initial program 61.1%
associate-/l*60.0%
associate-/l*63.8%
Simplified63.8%
Taylor expanded in y around inf 53.2%
if -0.0058 < a < -5.0000000000000002e-154 or -3.40000000000000004e-263 < a < 2.4e-133Initial program 82.4%
associate-/l*80.0%
associate-/l*82.2%
Simplified82.2%
Taylor expanded in y around 0 53.7%
Taylor expanded in a around 0 52.8%
Final simplification52.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -4e+73)
(/ x a)
(if (<= a -6.5e-7)
(/ z b)
(if (<= a -1.1e-152)
(- x (* x a))
(if (<= a -2.6e-262)
(/ z b)
(if (<= a 7.3e-127) x (if (<= a 1.7e+20) (/ z b) (/ x a))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -4e+73) {
tmp = x / a;
} else if (a <= -6.5e-7) {
tmp = z / b;
} else if (a <= -1.1e-152) {
tmp = x - (x * a);
} else if (a <= -2.6e-262) {
tmp = z / b;
} else if (a <= 7.3e-127) {
tmp = x;
} else if (a <= 1.7e+20) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= (-4d+73)) then
tmp = x / a
else if (a <= (-6.5d-7)) then
tmp = z / b
else if (a <= (-1.1d-152)) then
tmp = x - (x * a)
else if (a <= (-2.6d-262)) then
tmp = z / b
else if (a <= 7.3d-127) then
tmp = x
else if (a <= 1.7d+20) then
tmp = z / b
else
tmp = x / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -4e+73) {
tmp = x / a;
} else if (a <= -6.5e-7) {
tmp = z / b;
} else if (a <= -1.1e-152) {
tmp = x - (x * a);
} else if (a <= -2.6e-262) {
tmp = z / b;
} else if (a <= 7.3e-127) {
tmp = x;
} else if (a <= 1.7e+20) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -4e+73: tmp = x / a elif a <= -6.5e-7: tmp = z / b elif a <= -1.1e-152: tmp = x - (x * a) elif a <= -2.6e-262: tmp = z / b elif a <= 7.3e-127: tmp = x elif a <= 1.7e+20: tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -4e+73) tmp = Float64(x / a); elseif (a <= -6.5e-7) tmp = Float64(z / b); elseif (a <= -1.1e-152) tmp = Float64(x - Float64(x * a)); elseif (a <= -2.6e-262) tmp = Float64(z / b); elseif (a <= 7.3e-127) tmp = x; elseif (a <= 1.7e+20) tmp = Float64(z / b); else tmp = Float64(x / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -4e+73) tmp = x / a; elseif (a <= -6.5e-7) tmp = z / b; elseif (a <= -1.1e-152) tmp = x - (x * a); elseif (a <= -2.6e-262) tmp = z / b; elseif (a <= 7.3e-127) tmp = x; elseif (a <= 1.7e+20) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -4e+73], N[(x / a), $MachinePrecision], If[LessEqual[a, -6.5e-7], N[(z / b), $MachinePrecision], If[LessEqual[a, -1.1e-152], N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.6e-262], N[(z / b), $MachinePrecision], If[LessEqual[a, 7.3e-127], x, If[LessEqual[a, 1.7e+20], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{+73}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-7}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-152}:\\
\;\;\;\;x - x \cdot a\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-262}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 7.3 \cdot 10^{-127}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -3.99999999999999993e73 or 1.7e20 < a Initial program 74.2%
associate-/l*77.2%
associate-/l*72.1%
Simplified72.1%
Taylor expanded in y around 0 50.9%
Taylor expanded in a around inf 50.9%
if -3.99999999999999993e73 < a < -6.50000000000000024e-7 or -1.09999999999999992e-152 < a < -2.5999999999999999e-262 or 7.30000000000000033e-127 < a < 1.7e20Initial program 61.1%
associate-/l*60.0%
associate-/l*63.8%
Simplified63.8%
Taylor expanded in y around inf 53.2%
if -6.50000000000000024e-7 < a < -1.09999999999999992e-152Initial program 86.5%
associate-/l*83.7%
associate-/l*86.1%
Simplified86.1%
Taylor expanded in y around 0 61.1%
Taylor expanded in a around 0 61.1%
mul-1-neg61.1%
unsub-neg61.1%
Simplified61.1%
if -2.5999999999999999e-262 < a < 7.30000000000000033e-127Initial program 79.4%
associate-/l*77.5%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in y around 0 48.4%
Taylor expanded in a around 0 48.4%
Final simplification52.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* y (/ z t))) (+ a 1.0))))
(if (<= t -1.45e-39)
t_1
(if (<= t 1.75e-139)
(+ (/ z b) (/ (* x t) (* y b)))
(if (or (<= t 5e-77) (not (<= t 1.5e-6)))
t_1
(* (/ t b) (+ (/ z t) (/ x y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (y * (z / t))) / (a + 1.0);
double tmp;
if (t <= -1.45e-39) {
tmp = t_1;
} else if (t <= 1.75e-139) {
tmp = (z / b) + ((x * t) / (y * b));
} else if ((t <= 5e-77) || !(t <= 1.5e-6)) {
tmp = t_1;
} else {
tmp = (t / b) * ((z / t) + (x / 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 = (x + (y * (z / t))) / (a + 1.0d0)
if (t <= (-1.45d-39)) then
tmp = t_1
else if (t <= 1.75d-139) then
tmp = (z / b) + ((x * t) / (y * b))
else if ((t <= 5d-77) .or. (.not. (t <= 1.5d-6))) then
tmp = t_1
else
tmp = (t / b) * ((z / t) + (x / 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 = (x + (y * (z / t))) / (a + 1.0);
double tmp;
if (t <= -1.45e-39) {
tmp = t_1;
} else if (t <= 1.75e-139) {
tmp = (z / b) + ((x * t) / (y * b));
} else if ((t <= 5e-77) || !(t <= 1.5e-6)) {
tmp = t_1;
} else {
tmp = (t / b) * ((z / t) + (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (y * (z / t))) / (a + 1.0) tmp = 0 if t <= -1.45e-39: tmp = t_1 elif t <= 1.75e-139: tmp = (z / b) + ((x * t) / (y * b)) elif (t <= 5e-77) or not (t <= 1.5e-6): tmp = t_1 else: tmp = (t / b) * ((z / t) + (x / y)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + 1.0)) tmp = 0.0 if (t <= -1.45e-39) tmp = t_1; elseif (t <= 1.75e-139) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif ((t <= 5e-77) || !(t <= 1.5e-6)) tmp = t_1; else tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (y * (z / t))) / (a + 1.0); tmp = 0.0; if (t <= -1.45e-39) tmp = t_1; elseif (t <= 1.75e-139) tmp = (z / b) + ((x * t) / (y * b)); elseif ((t <= 5e-77) || ~((t <= 1.5e-6))) tmp = t_1; else tmp = (t / b) * ((z / t) + (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e-39], t$95$1, If[LessEqual[t, 1.75e-139], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 5e-77], N[Not[LessEqual[t, 1.5e-6]], $MachinePrecision]], t$95$1, N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + y \cdot \frac{z}{t}}{a + 1}\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-139}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-77} \lor \neg \left(t \leq 1.5 \cdot 10^{-6}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\
\end{array}
\end{array}
if t < -1.44999999999999994e-39 or 1.75000000000000001e-139 < t < 4.99999999999999963e-77 or 1.5e-6 < t Initial program 84.5%
associate-/l*88.1%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in y around 0 78.6%
if -1.44999999999999994e-39 < t < 1.75000000000000001e-139Initial program 50.9%
associate-/l*43.8%
associate-/l*39.0%
Simplified39.0%
Taylor expanded in b around inf 36.9%
times-frac23.1%
+-commutative23.1%
associate-*r/23.1%
fma-undefine23.1%
Simplified23.1%
Taylor expanded in t around 0 67.4%
*-commutative67.4%
Simplified67.4%
if 4.99999999999999963e-77 < t < 1.5e-6Initial program 74.2%
associate-/l*74.1%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in b around inf 40.5%
times-frac55.3%
+-commutative55.3%
associate-*r/55.2%
fma-undefine55.2%
Simplified55.2%
Taylor expanded in y around inf 60.2%
Final simplification73.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* z (/ y t))) (+ a 1.0))))
(if (<= t -1.2e-40)
t_1
(if (<= t 4.2e-138)
(+ (/ z b) (/ (* x t) (* y b)))
(if (or (<= t 6e-77) (not (<= t 2.05e-6)))
t_1
(* (/ t b) (+ (/ z t) (/ x y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (z * (y / t))) / (a + 1.0);
double tmp;
if (t <= -1.2e-40) {
tmp = t_1;
} else if (t <= 4.2e-138) {
tmp = (z / b) + ((x * t) / (y * b));
} else if ((t <= 6e-77) || !(t <= 2.05e-6)) {
tmp = t_1;
} else {
tmp = (t / b) * ((z / t) + (x / 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 = (x + (z * (y / t))) / (a + 1.0d0)
if (t <= (-1.2d-40)) then
tmp = t_1
else if (t <= 4.2d-138) then
tmp = (z / b) + ((x * t) / (y * b))
else if ((t <= 6d-77) .or. (.not. (t <= 2.05d-6))) then
tmp = t_1
else
tmp = (t / b) * ((z / t) + (x / 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 = (x + (z * (y / t))) / (a + 1.0);
double tmp;
if (t <= -1.2e-40) {
tmp = t_1;
} else if (t <= 4.2e-138) {
tmp = (z / b) + ((x * t) / (y * b));
} else if ((t <= 6e-77) || !(t <= 2.05e-6)) {
tmp = t_1;
} else {
tmp = (t / b) * ((z / t) + (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (z * (y / t))) / (a + 1.0) tmp = 0 if t <= -1.2e-40: tmp = t_1 elif t <= 4.2e-138: tmp = (z / b) + ((x * t) / (y * b)) elif (t <= 6e-77) or not (t <= 2.05e-6): tmp = t_1 else: tmp = (t / b) * ((z / t) + (x / y)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)) tmp = 0.0 if (t <= -1.2e-40) tmp = t_1; elseif (t <= 4.2e-138) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif ((t <= 6e-77) || !(t <= 2.05e-6)) tmp = t_1; else tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (z * (y / t))) / (a + 1.0); tmp = 0.0; if (t <= -1.2e-40) tmp = t_1; elseif (t <= 4.2e-138) tmp = (z / b) + ((x * t) / (y * b)); elseif ((t <= 6e-77) || ~((t <= 2.05e-6))) tmp = t_1; else tmp = (t / b) * ((z / t) + (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e-40], t$95$1, If[LessEqual[t, 4.2e-138], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 6e-77], N[Not[LessEqual[t, 2.05e-6]], $MachinePrecision]], t$95$1, N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-138}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-77} \lor \neg \left(t \leq 2.05 \cdot 10^{-6}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\
\end{array}
\end{array}
if t < -1.19999999999999996e-40 or 4.19999999999999972e-138 < t < 6.00000000000000033e-77 or 2.0499999999999999e-6 < t Initial program 84.5%
associate-/l*88.1%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in b around 0 76.2%
*-commutative44.7%
associate-/l*46.6%
Applied egg-rr79.9%
if -1.19999999999999996e-40 < t < 4.19999999999999972e-138Initial program 50.9%
associate-/l*43.8%
associate-/l*39.0%
Simplified39.0%
Taylor expanded in b around inf 36.9%
times-frac23.1%
+-commutative23.1%
associate-*r/23.1%
fma-undefine23.1%
Simplified23.1%
Taylor expanded in t around 0 67.4%
*-commutative67.4%
Simplified67.4%
if 6.00000000000000033e-77 < t < 2.0499999999999999e-6Initial program 74.2%
associate-/l*74.1%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in b around inf 40.5%
times-frac55.3%
+-commutative55.3%
associate-*r/55.2%
fma-undefine55.2%
Simplified55.2%
Taylor expanded in y around inf 60.2%
Final simplification74.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* z (/ y t))) (+ a 1.0))))
(if (<= t -3.4e-41)
t_1
(if (<= t 8e-136)
(+ (/ z b) (/ (* x t) (* y b)))
(if (<= t 4.5e-77)
t_1
(if (<= t 6.9e-6)
(* (/ t b) (+ (/ z t) (/ x y)))
(/ (+ x (/ y (/ t z))) (+ a 1.0))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (z * (y / t))) / (a + 1.0);
double tmp;
if (t <= -3.4e-41) {
tmp = t_1;
} else if (t <= 8e-136) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (t <= 4.5e-77) {
tmp = t_1;
} else if (t <= 6.9e-6) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x + (z * (y / t))) / (a + 1.0d0)
if (t <= (-3.4d-41)) then
tmp = t_1
else if (t <= 8d-136) then
tmp = (z / b) + ((x * t) / (y * b))
else if (t <= 4.5d-77) then
tmp = t_1
else if (t <= 6.9d-6) then
tmp = (t / b) * ((z / t) + (x / y))
else
tmp = (x + (y / (t / z))) / (a + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (z * (y / t))) / (a + 1.0);
double tmp;
if (t <= -3.4e-41) {
tmp = t_1;
} else if (t <= 8e-136) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (t <= 4.5e-77) {
tmp = t_1;
} else if (t <= 6.9e-6) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (z * (y / t))) / (a + 1.0) tmp = 0 if t <= -3.4e-41: tmp = t_1 elif t <= 8e-136: tmp = (z / b) + ((x * t) / (y * b)) elif t <= 4.5e-77: tmp = t_1 elif t <= 6.9e-6: tmp = (t / b) * ((z / t) + (x / y)) else: tmp = (x + (y / (t / z))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)) tmp = 0.0 if (t <= -3.4e-41) tmp = t_1; elseif (t <= 8e-136) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif (t <= 4.5e-77) tmp = t_1; elseif (t <= 6.9e-6) tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (z * (y / t))) / (a + 1.0); tmp = 0.0; if (t <= -3.4e-41) tmp = t_1; elseif (t <= 8e-136) tmp = (z / b) + ((x * t) / (y * b)); elseif (t <= 4.5e-77) tmp = t_1; elseif (t <= 6.9e-6) tmp = (t / b) * ((z / t) + (x / y)); else tmp = (x + (y / (t / z))) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.4e-41], t$95$1, If[LessEqual[t, 8e-136], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-77], t$95$1, If[LessEqual[t, 6.9e-6], N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{if}\;t \leq -3.4 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-136}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.9 \cdot 10^{-6}:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\
\end{array}
\end{array}
if t < -3.3999999999999998e-41 or 8.00000000000000001e-136 < t < 4.5000000000000001e-77Initial program 85.5%
associate-/l*86.6%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in b around 0 76.8%
*-commutative45.4%
associate-/l*45.5%
Applied egg-rr79.1%
if -3.3999999999999998e-41 < t < 8.00000000000000001e-136Initial program 50.9%
associate-/l*43.8%
associate-/l*39.0%
Simplified39.0%
Taylor expanded in b around inf 36.9%
times-frac23.1%
+-commutative23.1%
associate-*r/23.1%
fma-undefine23.1%
Simplified23.1%
Taylor expanded in t around 0 67.4%
*-commutative67.4%
Simplified67.4%
if 4.5000000000000001e-77 < t < 6.9e-6Initial program 74.2%
associate-/l*74.1%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in b around inf 40.5%
times-frac55.3%
+-commutative55.3%
associate-*r/55.2%
fma-undefine55.2%
Simplified55.2%
Taylor expanded in y around inf 60.2%
if 6.9e-6 < t Initial program 83.2%
associate-/l*90.0%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in b around 0 75.4%
associate-*r/48.0%
*-commutative48.0%
div-inv48.0%
associate-*l*47.9%
Applied egg-rr80.9%
*-commutative80.9%
associate-*l/80.9%
*-un-lft-identity80.9%
associate-/r/80.9%
Applied egg-rr80.9%
Final simplification74.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -6.4e-41)
(/ (+ x (* z (/ y t))) (+ a 1.0))
(if (<= t 5.8e-131)
(+ (/ z b) (/ (* x t) (* y b)))
(if (<= t 2.8e-77)
(* (/ y t) (/ z (+ (+ a 1.0) (* b (/ y t)))))
(if (<= t 2.3e-6)
(* (/ t b) (+ (/ z t) (/ x y)))
(/ (+ x (/ y (/ t z))) (+ a 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -6.4e-41) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (t <= 5.8e-131) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (t <= 2.8e-77) {
tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
} else if (t <= 2.3e-6) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-6.4d-41)) then
tmp = (x + (z * (y / t))) / (a + 1.0d0)
else if (t <= 5.8d-131) then
tmp = (z / b) + ((x * t) / (y * b))
else if (t <= 2.8d-77) then
tmp = (y / t) * (z / ((a + 1.0d0) + (b * (y / t))))
else if (t <= 2.3d-6) then
tmp = (t / b) * ((z / t) + (x / y))
else
tmp = (x + (y / (t / z))) / (a + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -6.4e-41) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (t <= 5.8e-131) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (t <= 2.8e-77) {
tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t))));
} else if (t <= 2.3e-6) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -6.4e-41: tmp = (x + (z * (y / t))) / (a + 1.0) elif t <= 5.8e-131: tmp = (z / b) + ((x * t) / (y * b)) elif t <= 2.8e-77: tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t)))) elif t <= 2.3e-6: tmp = (t / b) * ((z / t) + (x / y)) else: tmp = (x + (y / (t / z))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -6.4e-41) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); elseif (t <= 5.8e-131) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif (t <= 2.8e-77) tmp = Float64(Float64(y / t) * Float64(z / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t))))); elseif (t <= 2.3e-6) tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -6.4e-41) tmp = (x + (z * (y / t))) / (a + 1.0); elseif (t <= 5.8e-131) tmp = (z / b) + ((x * t) / (y * b)); elseif (t <= 2.8e-77) tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t)))); elseif (t <= 2.3e-6) tmp = (t / b) * ((z / t) + (x / y)); else tmp = (x + (y / (t / z))) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6.4e-41], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-131], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-77], N[(N[(y / t), $MachinePrecision] * N[(z / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e-6], N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.4 \cdot 10^{-41}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-131}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-77}:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-6}:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\
\end{array}
\end{array}
if t < -6.40000000000000024e-41Initial program 87.0%
associate-/l*88.3%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in b around 0 79.3%
*-commutative46.8%
associate-/l*46.9%
Applied egg-rr81.9%
if -6.40000000000000024e-41 < t < 5.8000000000000004e-131Initial program 51.5%
associate-/l*44.5%
associate-/l*38.6%
Simplified38.6%
Taylor expanded in b around inf 36.5%
times-frac22.9%
+-commutative22.9%
associate-*r/22.9%
fma-undefine22.9%
Simplified22.9%
Taylor expanded in t around 0 66.7%
*-commutative66.7%
Simplified66.7%
if 5.8000000000000004e-131 < t < 2.7999999999999999e-77Initial program 73.5%
*-commutative73.5%
associate-/l*73.4%
Applied egg-rr73.4%
Taylor expanded in x around 0 82.5%
times-frac73.9%
associate-+r+73.9%
associate-/l*74.1%
Simplified74.1%
if 2.7999999999999999e-77 < t < 2.3e-6Initial program 74.2%
associate-/l*74.1%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in b around inf 40.5%
times-frac55.3%
+-commutative55.3%
associate-*r/55.2%
fma-undefine55.2%
Simplified55.2%
Taylor expanded in y around inf 60.2%
if 2.3e-6 < t Initial program 83.2%
associate-/l*90.0%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in b around 0 75.4%
associate-*r/48.0%
*-commutative48.0%
div-inv48.0%
associate-*l*47.9%
Applied egg-rr80.9%
*-commutative80.9%
associate-*l/80.9%
*-un-lft-identity80.9%
associate-/r/80.9%
Applied egg-rr80.9%
Final simplification74.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -1.2e-40)
(/ (+ x (* z (/ y t))) (+ a 1.0))
(if (<= t 1.62e-265)
(+ (/ z b) (/ (* x t) (* y b)))
(if (<= t 5.6e-77)
(/ (* y z) (* t (+ 1.0 (+ a (/ (* y b) t)))))
(if (<= t 0.114)
(* (/ t b) (+ (/ z t) (/ x y)))
(/ (+ x (/ y (/ t z))) (+ a 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.2e-40) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (t <= 1.62e-265) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (t <= 5.6e-77) {
tmp = (y * z) / (t * (1.0 + (a + ((y * b) / t))));
} else if (t <= 0.114) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-1.2d-40)) then
tmp = (x + (z * (y / t))) / (a + 1.0d0)
else if (t <= 1.62d-265) then
tmp = (z / b) + ((x * t) / (y * b))
else if (t <= 5.6d-77) then
tmp = (y * z) / (t * (1.0d0 + (a + ((y * b) / t))))
else if (t <= 0.114d0) then
tmp = (t / b) * ((z / t) + (x / y))
else
tmp = (x + (y / (t / z))) / (a + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1.2e-40) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (t <= 1.62e-265) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (t <= 5.6e-77) {
tmp = (y * z) / (t * (1.0 + (a + ((y * b) / t))));
} else if (t <= 0.114) {
tmp = (t / b) * ((z / t) + (x / y));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1.2e-40: tmp = (x + (z * (y / t))) / (a + 1.0) elif t <= 1.62e-265: tmp = (z / b) + ((x * t) / (y * b)) elif t <= 5.6e-77: tmp = (y * z) / (t * (1.0 + (a + ((y * b) / t)))) elif t <= 0.114: tmp = (t / b) * ((z / t) + (x / y)) else: tmp = (x + (y / (t / z))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1.2e-40) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); elseif (t <= 1.62e-265) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif (t <= 5.6e-77) tmp = Float64(Float64(y * z) / Float64(t * Float64(1.0 + Float64(a + Float64(Float64(y * b) / t))))); elseif (t <= 0.114) tmp = Float64(Float64(t / b) * Float64(Float64(z / t) + Float64(x / y))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1.2e-40) tmp = (x + (z * (y / t))) / (a + 1.0); elseif (t <= 1.62e-265) tmp = (z / b) + ((x * t) / (y * b)); elseif (t <= 5.6e-77) tmp = (y * z) / (t * (1.0 + (a + ((y * b) / t)))); elseif (t <= 0.114) tmp = (t / b) * ((z / t) + (x / y)); else tmp = (x + (y / (t / z))) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.2e-40], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.62e-265], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e-77], N[(N[(y * z), $MachinePrecision] / N[(t * N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.114], N[(N[(t / b), $MachinePrecision] * N[(N[(z / t), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{-40}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{elif}\;t \leq 1.62 \cdot 10^{-265}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-77}:\\
\;\;\;\;\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{elif}\;t \leq 0.114:\\
\;\;\;\;\frac{t}{b} \cdot \left(\frac{z}{t} + \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\
\end{array}
\end{array}
if t < -1.19999999999999996e-40Initial program 87.0%
associate-/l*88.3%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in b around 0 79.3%
*-commutative46.8%
associate-/l*46.9%
Applied egg-rr81.9%
if -1.19999999999999996e-40 < t < 1.62000000000000004e-265Initial program 51.5%
associate-/l*43.5%
associate-/l*38.7%
Simplified38.7%
Taylor expanded in b around inf 42.1%
times-frac25.1%
+-commutative25.1%
associate-*r/25.1%
fma-undefine25.1%
Simplified25.1%
Taylor expanded in t around 0 70.5%
*-commutative70.5%
Simplified70.5%
if 1.62000000000000004e-265 < t < 5.5999999999999999e-77Initial program 58.8%
associate-/l*55.9%
associate-/l*50.0%
Simplified50.0%
Taylor expanded in x around 0 66.1%
if 5.5999999999999999e-77 < t < 0.114000000000000004Initial program 74.2%
associate-/l*74.1%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in b around inf 40.5%
times-frac55.3%
+-commutative55.3%
associate-*r/55.2%
fma-undefine55.2%
Simplified55.2%
Taylor expanded in y around inf 60.2%
if 0.114000000000000004 < t Initial program 83.2%
associate-/l*90.0%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in b around 0 75.4%
associate-*r/48.0%
*-commutative48.0%
div-inv48.0%
associate-*l*47.9%
Applied egg-rr80.9%
*-commutative80.9%
associate-*l/80.9%
*-un-lft-identity80.9%
associate-/r/80.9%
Applied egg-rr80.9%
Final simplification75.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -2.2e+64)
(/ (+ x (* z (/ y t))) (+ a 1.0))
(if (<= a -0.027)
(+ (/ z b) (/ (* x t) (* y b)))
(if (<= a 0.00152)
(/ (+ x (* y (/ z t))) (+ 1.0 (* y (/ b t))))
(/ (+ x (/ y (/ t z))) (+ a 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -2.2e+64) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (a <= -0.027) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (a <= 0.00152) {
tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t)));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (a <= (-2.2d+64)) then
tmp = (x + (z * (y / t))) / (a + 1.0d0)
else if (a <= (-0.027d0)) then
tmp = (z / b) + ((x * t) / (y * b))
else if (a <= 0.00152d0) then
tmp = (x + (y * (z / t))) / (1.0d0 + (y * (b / t)))
else
tmp = (x + (y / (t / z))) / (a + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -2.2e+64) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (a <= -0.027) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (a <= 0.00152) {
tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t)));
} else {
tmp = (x + (y / (t / z))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -2.2e+64: tmp = (x + (z * (y / t))) / (a + 1.0) elif a <= -0.027: tmp = (z / b) + ((x * t) / (y * b)) elif a <= 0.00152: tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t))) else: tmp = (x + (y / (t / z))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -2.2e+64) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); elseif (a <= -0.027) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif (a <= 0.00152) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(1.0 + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -2.2e+64) tmp = (x + (z * (y / t))) / (a + 1.0); elseif (a <= -0.027) tmp = (z / b) + ((x * t) / (y * b)); elseif (a <= 0.00152) tmp = (x + (y * (z / t))) / (1.0 + (y * (b / t))); else tmp = (x + (y / (t / z))) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -2.2e+64], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -0.027], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.00152], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{elif}\;a \leq -0.027:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;a \leq 0.00152:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{1 + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\
\end{array}
\end{array}
if a < -2.20000000000000002e64Initial program 74.2%
associate-/l*76.2%
associate-/l*69.9%
Simplified69.9%
Taylor expanded in b around 0 68.6%
*-commutative2.2%
associate-/l*2.1%
Applied egg-rr70.7%
if -2.20000000000000002e64 < a < -0.0269999999999999997Initial program 23.2%
associate-/l*23.2%
associate-/l*30.5%
Simplified30.5%
Taylor expanded in b around inf 32.4%
times-frac39.8%
+-commutative39.8%
associate-*r/39.8%
fma-undefine39.8%
Simplified39.8%
Taylor expanded in t around 0 91.5%
*-commutative91.5%
Simplified91.5%
if -0.0269999999999999997 < a < 0.0015200000000000001Initial program 75.8%
associate-/l*74.4%
associate-/l*77.7%
Simplified77.7%
Taylor expanded in a around 0 73.6%
associate-*l/76.9%
*-commutative76.9%
Simplified76.9%
if 0.0015200000000000001 < a Initial program 76.9%
associate-/l*78.6%
associate-/l*73.4%
Simplified73.4%
Taylor expanded in b around 0 68.3%
associate-*r/5.5%
*-commutative5.5%
div-inv5.5%
associate-*l*5.4%
Applied egg-rr73.7%
*-commutative73.7%
associate-*l/73.8%
*-un-lft-identity73.8%
associate-/r/73.8%
Applied egg-rr73.8%
Final simplification75.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.9e-74) (not (<= t 2.25e-135))) (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))) (+ (/ z b) (/ (* x t) (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.9e-74) || !(t <= 2.25e-135)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z / b) + ((x * t) / (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 ((t <= (-2.9d-74)) .or. (.not. (t <= 2.25d-135))) then
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (z / b) + ((x * t) / (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 ((t <= -2.9e-74) || !(t <= 2.25e-135)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.9e-74) or not (t <= 2.25e-135): tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) else: tmp = (z / b) + ((x * t) / (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.9e-74) || !(t <= 2.25e-135)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -2.9e-74) || ~((t <= 2.25e-135))) tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); else tmp = (z / b) + ((x * t) / (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.9e-74], N[Not[LessEqual[t, 2.25e-135]], $MachinePrecision]], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-74} \lor \neg \left(t \leq 2.25 \cdot 10^{-135}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\end{array}
\end{array}
if t < -2.9e-74 or 2.24999999999999994e-135 < t Initial program 82.3%
associate-/l*85.4%
associate-/l*88.1%
Simplified88.1%
if -2.9e-74 < t < 2.24999999999999994e-135Initial program 51.3%
associate-/l*43.8%
associate-/l*37.4%
Simplified37.4%
Taylor expanded in b around inf 36.5%
times-frac21.2%
+-commutative21.2%
associate-*r/21.3%
fma-undefine21.3%
Simplified21.3%
Taylor expanded in t around 0 68.0%
*-commutative68.0%
Simplified68.0%
Final simplification82.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -9.5e-222)
(/ (+ x (* z (/ y t))) (+ (/ (* y b) t) (+ a 1.0)))
(if (<= t 9e-133)
(+ (/ z b) (/ (* x t) (* y b)))
(/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -9.5e-222) {
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0));
} else if (t <= 9e-133) {
tmp = (z / b) + ((x * t) / (y * b));
} else {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (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 <= (-9.5d-222)) then
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0d0))
else if (t <= 9d-133) then
tmp = (z / b) + ((x * t) / (y * b))
else
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (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 <= -9.5e-222) {
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0));
} else if (t <= 9e-133) {
tmp = (z / b) + ((x * t) / (y * b));
} else {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -9.5e-222: tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0)) elif t <= 9e-133: tmp = (z / b) + ((x * t) / (y * b)) else: tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -9.5e-222) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))); elseif (t <= 9e-133) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); else tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -9.5e-222) tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0)); elseif (t <= 9e-133) tmp = (z / b) + ((x * t) / (y * b)); else tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9.5e-222], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-133], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{-222}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-133}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if t < -9.5000000000000002e-222Initial program 80.2%
*-commutative37.8%
associate-/l*37.8%
Applied egg-rr83.0%
if -9.5000000000000002e-222 < t < 9.00000000000000019e-133Initial program 46.0%
associate-/l*39.0%
associate-/l*33.6%
Simplified33.6%
Taylor expanded in b around inf 38.0%
times-frac21.8%
+-commutative21.8%
associate-*r/21.9%
fma-undefine21.9%
Simplified21.9%
Taylor expanded in t around 0 71.5%
*-commutative71.5%
Simplified71.5%
if 9.00000000000000019e-133 < t Initial program 80.4%
associate-/l*85.1%
associate-/l*88.0%
Simplified88.0%
Final simplification82.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.4e-221)
(/ (+ x (* z (/ y t))) (+ (/ (* y b) t) (+ a 1.0)))
(if (<= t 2.6e-132)
(+ (/ z b) (/ (* x t) (* y b)))
(/ (+ x (/ y (/ t z))) (+ (+ a 1.0) (* y (/ b t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.4e-221) {
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0));
} else if (t <= 2.6e-132) {
tmp = (z / b) + ((x * t) / (y * b));
} else {
tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (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 <= (-2.4d-221)) then
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0d0))
else if (t <= 2.6d-132) then
tmp = (z / b) + ((x * t) / (y * b))
else
tmp = (x + (y / (t / z))) / ((a + 1.0d0) + (y * (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 <= -2.4e-221) {
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0));
} else if (t <= 2.6e-132) {
tmp = (z / b) + ((x * t) / (y * b));
} else {
tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -2.4e-221: tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0)) elif t <= 2.6e-132: tmp = (z / b) + ((x * t) / (y * b)) else: tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.4e-221) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))); elseif (t <= 2.6e-132) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -2.4e-221) tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0)); elseif (t <= 2.6e-132) tmp = (z / b) + ((x * t) / (y * b)); else tmp = (x + (y / (t / z))) / ((a + 1.0) + (y * (b / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.4e-221], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-132], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{-221}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-132}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\end{array}
\end{array}
if t < -2.40000000000000024e-221Initial program 80.2%
*-commutative37.8%
associate-/l*37.8%
Applied egg-rr83.0%
if -2.40000000000000024e-221 < t < 2.6000000000000001e-132Initial program 46.0%
associate-/l*39.0%
associate-/l*33.6%
Simplified33.6%
Taylor expanded in b around inf 38.0%
times-frac21.8%
+-commutative21.8%
associate-*r/21.9%
fma-undefine21.9%
Simplified21.9%
Taylor expanded in t around 0 71.5%
*-commutative71.5%
Simplified71.5%
if 2.6000000000000001e-132 < t Initial program 80.4%
associate-/l*85.1%
associate-/l*88.0%
Simplified88.0%
clear-num88.1%
un-div-inv88.1%
Applied egg-rr88.1%
Final simplification82.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -4.2e-40) (not (<= t 1.3e-29))) (/ x (+ 1.0 (+ a (/ (* y b) t)))) (+ (/ z b) (/ (* x t) (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -4.2e-40) || !(t <= 1.3e-29)) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else {
tmp = (z / b) + ((x * t) / (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 ((t <= (-4.2d-40)) .or. (.not. (t <= 1.3d-29))) then
tmp = x / (1.0d0 + (a + ((y * b) / t)))
else
tmp = (z / b) + ((x * t) / (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 ((t <= -4.2e-40) || !(t <= 1.3e-29)) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -4.2e-40) or not (t <= 1.3e-29): tmp = x / (1.0 + (a + ((y * b) / t))) else: tmp = (z / b) + ((x * t) / (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -4.2e-40) || !(t <= 1.3e-29)) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -4.2e-40) || ~((t <= 1.3e-29))) tmp = x / (1.0 + (a + ((y * b) / t))); else tmp = (z / b) + ((x * t) / (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.2e-40], N[Not[LessEqual[t, 1.3e-29]], $MachinePrecision]], N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{-40} \lor \neg \left(t \leq 1.3 \cdot 10^{-29}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\end{array}
\end{array}
if t < -4.20000000000000036e-40 or 1.3000000000000001e-29 < t Initial program 85.2%
associate-/l*89.0%
associate-/l*92.1%
Simplified92.1%
Taylor expanded in x around inf 69.2%
if -4.20000000000000036e-40 < t < 1.3000000000000001e-29Initial program 55.6%
associate-/l*50.1%
associate-/l*45.6%
Simplified45.6%
Taylor expanded in b around inf 35.1%
times-frac26.2%
+-commutative26.2%
associate-*r/26.2%
fma-undefine26.2%
Simplified26.2%
Taylor expanded in t around 0 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification66.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.4e-41) (not (<= t 2.3e-28))) (/ x (+ (+ a 1.0) (* b (/ y t)))) (+ (/ z b) (/ (* x t) (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.4e-41) || !(t <= 2.3e-28)) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else {
tmp = (z / b) + ((x * t) / (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 ((t <= (-3.4d-41)) .or. (.not. (t <= 2.3d-28))) then
tmp = x / ((a + 1.0d0) + (b * (y / t)))
else
tmp = (z / b) + ((x * t) / (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 ((t <= -3.4e-41) || !(t <= 2.3e-28)) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.4e-41) or not (t <= 2.3e-28): tmp = x / ((a + 1.0) + (b * (y / t))) else: tmp = (z / b) + ((x * t) / (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.4e-41) || !(t <= 2.3e-28)) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.4e-41) || ~((t <= 2.3e-28))) tmp = x / ((a + 1.0) + (b * (y / t))); else tmp = (z / b) + ((x * t) / (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.4e-41], N[Not[LessEqual[t, 2.3e-28]], $MachinePrecision]], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{-41} \lor \neg \left(t \leq 2.3 \cdot 10^{-28}\right):\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\end{array}
\end{array}
if t < -3.3999999999999998e-41 or 2.29999999999999986e-28 < t Initial program 85.2%
*-commutative85.2%
associate-/l*88.4%
Applied egg-rr88.4%
Taylor expanded in x around inf 69.2%
associate-+r+69.2%
associate-/l*71.7%
Simplified71.7%
if -3.3999999999999998e-41 < t < 2.29999999999999986e-28Initial program 55.6%
associate-/l*50.1%
associate-/l*45.6%
Simplified45.6%
Taylor expanded in b around inf 35.1%
times-frac26.2%
+-commutative26.2%
associate-*r/26.2%
fma-undefine26.2%
Simplified26.2%
Taylor expanded in t around 0 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification68.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.15e-39) (not (<= t 6.3e-18))) (/ x (+ a 1.0)) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.15e-39) || !(t <= 6.3e-18)) {
tmp = x / (a + 1.0);
} else {
tmp = z / 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.15d-39)) .or. (.not. (t <= 6.3d-18))) then
tmp = x / (a + 1.0d0)
else
tmp = z / 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.15e-39) || !(t <= 6.3e-18)) {
tmp = x / (a + 1.0);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.15e-39) or not (t <= 6.3e-18): tmp = x / (a + 1.0) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.15e-39) || !(t <= 6.3e-18)) tmp = Float64(x / Float64(a + 1.0)); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.15e-39) || ~((t <= 6.3e-18))) tmp = x / (a + 1.0); else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.15e-39], N[Not[LessEqual[t, 6.3e-18]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-39} \lor \neg \left(t \leq 6.3 \cdot 10^{-18}\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if t < -1.15000000000000004e-39 or 6.3000000000000004e-18 < t Initial program 84.9%
associate-/l*88.8%
associate-/l*92.0%
Simplified92.0%
Taylor expanded in y around 0 63.1%
if -1.15000000000000004e-39 < t < 6.3000000000000004e-18Initial program 56.8%
associate-/l*51.5%
associate-/l*47.0%
Simplified47.0%
Taylor expanded in y around inf 54.4%
Final simplification59.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -2.2e+64) (not (<= a 2.3))) (/ x a) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -2.2e+64) || !(a <= 2.3)) {
tmp = x / 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 ((a <= (-2.2d+64)) .or. (.not. (a <= 2.3d0))) then
tmp = x / 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 ((a <= -2.2e+64) || !(a <= 2.3)) {
tmp = x / a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -2.2e+64) or not (a <= 2.3): tmp = x / a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -2.2e+64) || !(a <= 2.3)) tmp = Float64(x / a); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -2.2e+64) || ~((a <= 2.3))) tmp = x / a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -2.2e+64], N[Not[LessEqual[a, 2.3]], $MachinePrecision]], N[(x / a), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+64} \lor \neg \left(a \leq 2.3\right):\\
\;\;\;\;\frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.20000000000000002e64 or 2.2999999999999998 < a Initial program 75.4%
associate-/l*77.3%
associate-/l*71.5%
Simplified71.5%
Taylor expanded in y around 0 49.5%
Taylor expanded in a around inf 48.8%
if -2.20000000000000002e64 < a < 2.2999999999999998Initial program 71.6%
associate-/l*70.4%
associate-/l*74.0%
Simplified74.0%
Taylor expanded in y around 0 39.6%
Taylor expanded in a around 0 39.2%
Final simplification42.9%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 73.1%
associate-/l*73.0%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in y around 0 43.4%
Taylor expanded in a around 0 25.8%
Final simplification25.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(if (< t -1.3659085366310088e-271)
t_1
(if (< t 3.036967103737246e-130) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / 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 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
if (t < (-1.3659085366310088d-271)) then
tmp = t_1
else if (t < 3.036967103737246d-130) then
tmp = z / 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 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))) tmp = 0 if t < -1.3659085366310088e-271: tmp = t_1 elif t < 3.036967103737246e-130: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b))))) tmp = 0.0 if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))); tmp = 0.0; if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
\mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024077
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(if (< t -1.3659085366310088e-271) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b))))) (if (< t 3.036967103737246e-130) (/ z b) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))