
(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 19 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 (+ (+ a 1.0) t_1))
(t_3 (+ x (/ (* y z) t)))
(t_4 (/ t_3 t_2))
(t_5 (+ 1.0 (+ a t_1))))
(if (<= t_4 (- INFINITY))
(* z (+ (/ x (* z t_5)) (/ y (* t t_5))))
(if (<= t_4 1e+291)
(/ t_3 (+ (+ a 1.0) (* b (/ y t))))
(if (<= t_4 INFINITY)
(* z (+ (/ x (* z t_2)) (/ (/ y t) t_2)))
(/ 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 = (a + 1.0) + t_1;
double t_3 = x + ((y * z) / t);
double t_4 = t_3 / t_2;
double t_5 = 1.0 + (a + t_1);
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = z * ((x / (z * t_5)) + (y / (t * t_5)));
} else if (t_4 <= 1e+291) {
tmp = t_3 / ((a + 1.0) + (b * (y / t)));
} else if (t_4 <= ((double) INFINITY)) {
tmp = z * ((x / (z * t_2)) + ((y / t) / t_2));
} 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 = (a + 1.0) + t_1;
double t_3 = x + ((y * z) / t);
double t_4 = t_3 / t_2;
double t_5 = 1.0 + (a + t_1);
double tmp;
if (t_4 <= -Double.POSITIVE_INFINITY) {
tmp = z * ((x / (z * t_5)) + (y / (t * t_5)));
} else if (t_4 <= 1e+291) {
tmp = t_3 / ((a + 1.0) + (b * (y / t)));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = z * ((x / (z * t_2)) + ((y / t) / t_2));
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = (a + 1.0) + t_1 t_3 = x + ((y * z) / t) t_4 = t_3 / t_2 t_5 = 1.0 + (a + t_1) tmp = 0 if t_4 <= -math.inf: tmp = z * ((x / (z * t_5)) + (y / (t * t_5))) elif t_4 <= 1e+291: tmp = t_3 / ((a + 1.0) + (b * (y / t))) elif t_4 <= math.inf: tmp = z * ((x / (z * t_2)) + ((y / t) / t_2)) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(Float64(a + 1.0) + t_1) t_3 = Float64(x + Float64(Float64(y * z) / t)) t_4 = Float64(t_3 / t_2) t_5 = Float64(1.0 + Float64(a + t_1)) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(x / Float64(z * t_5)) + Float64(y / Float64(t * t_5)))); elseif (t_4 <= 1e+291) tmp = Float64(t_3 / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); elseif (t_4 <= Inf) tmp = Float64(z * Float64(Float64(x / Float64(z * t_2)) + Float64(Float64(y / t) / t_2))); 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 = (a + 1.0) + t_1; t_3 = x + ((y * z) / t); t_4 = t_3 / t_2; t_5 = 1.0 + (a + t_1); tmp = 0.0; if (t_4 <= -Inf) tmp = z * ((x / (z * t_5)) + (y / (t * t_5))); elseif (t_4 <= 1e+291) tmp = t_3 / ((a + 1.0) + (b * (y / t))); elseif (t_4 <= Inf) tmp = z * ((x / (z * t_2)) + ((y / t) / t_2)); 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[(N[(a + 1.0), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 / t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], N[(z * N[(N[(x / N[(z * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 1e+291], N[(t$95$3 / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[(z * N[(N[(x / N[(z * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := \left(a + 1\right) + t\_1\\
t_3 := x + \frac{y \cdot z}{t}\\
t_4 := \frac{t\_3}{t\_2}\\
t_5 := 1 + \left(a + t\_1\right)\\
\mathbf{if}\;t\_4 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{x}{z \cdot t\_5} + \frac{y}{t \cdot t\_5}\right)\\
\mathbf{elif}\;t\_4 \leq 10^{+291}:\\
\;\;\;\;\frac{t\_3}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;z \cdot \left(\frac{x}{z \cdot t\_2} + \frac{\frac{y}{t}}{t\_2}\right)\\
\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 23.7%
+-commutative23.7%
associate-/l*42.7%
fma-define42.7%
+-commutative42.7%
associate-/l*42.7%
fma-define42.7%
Simplified42.7%
Taylor expanded in z around inf 89.4%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 9.9999999999999996e290Initial program 89.7%
*-commutative89.7%
associate-/l*91.1%
Applied egg-rr91.1%
if 9.9999999999999996e290 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 28.4%
associate-/l*52.8%
associate-/l*52.6%
Simplified52.6%
clear-num52.6%
un-div-inv52.7%
Applied egg-rr52.7%
Taylor expanded in z around inf 81.3%
associate-+r+81.3%
*-commutative81.3%
associate-/r*87.3%
associate-+r+87.3%
*-commutative87.3%
Simplified87.3%
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%
+-commutative0.0%
associate-/l*0.3%
fma-define0.3%
+-commutative0.3%
associate-/l*4.1%
fma-define4.1%
Simplified4.1%
Taylor expanded in y around inf 100.0%
Final simplification91.6%
(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_4 (/ t_3 (+ (+ a 1.0) t_1)))
(t_5 (* z (+ (/ x (* z t_2)) (/ y (* t t_2))))))
(if (<= t_4 (- INFINITY))
t_5
(if (<= t_4 1e+291)
(/ t_3 (+ (+ a 1.0) (* b (/ y t))))
(if (<= t_4 INFINITY) t_5 (/ 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);
double t_4 = t_3 / ((a + 1.0) + t_1);
double t_5 = z * ((x / (z * t_2)) + (y / (t * t_2)));
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = t_5;
} else if (t_4 <= 1e+291) {
tmp = t_3 / ((a + 1.0) + (b * (y / t)));
} else if (t_4 <= ((double) INFINITY)) {
tmp = t_5;
} 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);
double t_4 = t_3 / ((a + 1.0) + t_1);
double t_5 = z * ((x / (z * t_2)) + (y / (t * t_2)));
double tmp;
if (t_4 <= -Double.POSITIVE_INFINITY) {
tmp = t_5;
} else if (t_4 <= 1e+291) {
tmp = t_3 / ((a + 1.0) + (b * (y / t)));
} else if (t_4 <= Double.POSITIVE_INFINITY) {
tmp = t_5;
} 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_4 = t_3 / ((a + 1.0) + t_1) t_5 = z * ((x / (z * t_2)) + (y / (t * t_2))) tmp = 0 if t_4 <= -math.inf: tmp = t_5 elif t_4 <= 1e+291: tmp = t_3 / ((a + 1.0) + (b * (y / t))) elif t_4 <= math.inf: tmp = t_5 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(x + Float64(Float64(y * z) / t)) t_4 = Float64(t_3 / Float64(Float64(a + 1.0) + t_1)) t_5 = Float64(z * Float64(Float64(x / Float64(z * t_2)) + Float64(y / Float64(t * t_2)))) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = t_5; elseif (t_4 <= 1e+291) tmp = Float64(t_3 / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); elseif (t_4 <= Inf) tmp = t_5; 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_4 = t_3 / ((a + 1.0) + t_1); t_5 = z * ((x / (z * t_2)) + (y / (t * t_2))); tmp = 0.0; if (t_4 <= -Inf) tmp = t_5; elseif (t_4 <= 1e+291) tmp = t_3 / ((a + 1.0) + (b * (y / t))); elseif (t_4 <= Inf) tmp = t_5; 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[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 / N[(N[(a + 1.0), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = 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$4, (-Infinity)], t$95$5, If[LessEqual[t$95$4, 1e+291], N[(t$95$3 / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, Infinity], t$95$5, 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 := x + \frac{y \cdot z}{t}\\
t_4 := \frac{t\_3}{\left(a + 1\right) + t\_1}\\
t_5 := z \cdot \left(\frac{x}{z \cdot t\_2} + \frac{y}{t \cdot t\_2}\right)\\
\mathbf{if}\;t\_4 \leq -\infty:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t\_4 \leq 10^{+291}:\\
\;\;\;\;\frac{t\_3}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;t\_5\\
\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.0 or 9.9999999999999996e290 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 26.6%
+-commutative26.6%
associate-/l*48.9%
fma-define48.9%
+-commutative48.9%
associate-/l*48.8%
fma-define48.8%
Simplified48.8%
Taylor expanded in z around inf 84.4%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 9.9999999999999996e290Initial program 89.7%
*-commutative89.7%
associate-/l*91.1%
Applied egg-rr91.1%
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%
+-commutative0.0%
associate-/l*0.3%
fma-define0.3%
+-commutative0.3%
associate-/l*4.1%
fma-define4.1%
Simplified4.1%
Taylor expanded in y around inf 100.0%
Final simplification91.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t))) (t_2 (/ t_1 (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_2 (- INFINITY))
(* y (/ z (+ (* y b) (* t a))))
(if (<= t_2 2e+300) (/ t_1 (+ (+ a 1.0) (* b (/ y t)))) (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double t_2 = t_1 / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = y * (z / ((y * b) + (t * a)));
} else if (t_2 <= 2e+300) {
tmp = t_1 / ((a + 1.0) + (b * (y / t)));
} 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);
double t_2 = t_1 / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = y * (z / ((y * b) + (t * a)));
} else if (t_2 <= 2e+300) {
tmp = t_1 / ((a + 1.0) + (b * (y / t)));
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + ((y * z) / t) t_2 = t_1 / ((a + 1.0) + ((y * b) / t)) tmp = 0 if t_2 <= -math.inf: tmp = y * (z / ((y * b) + (t * a))) elif t_2 <= 2e+300: tmp = t_1 / ((a + 1.0) + (b * (y / t))) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) t_2 = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(y * Float64(z / Float64(Float64(y * b) + Float64(t * a)))); elseif (t_2 <= 2e+300) tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); 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); t_2 = t_1 / ((a + 1.0) + ((y * b) / t)); tmp = 0.0; if (t_2 <= -Inf) tmp = y * (z / ((y * b) + (t * a))); elseif (t_2 <= 2e+300) tmp = t_1 / ((a + 1.0) + (b * (y / t))); else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(y * N[(z / N[(N[(y * b), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+300], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := \frac{t\_1}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;y \cdot \frac{z}{y \cdot b + t \cdot a}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+300}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\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 23.7%
associate-/l*42.7%
associate-/l*42.7%
Simplified42.7%
clear-num42.5%
un-div-inv42.5%
Applied egg-rr42.5%
Taylor expanded in a around inf 24.2%
Taylor expanded in x around 0 32.4%
associate-/l*71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around 0 71.1%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e300Initial program 89.8%
*-commutative89.8%
associate-/l*91.1%
Applied egg-rr91.1%
if 2.0000000000000001e300 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 8.9%
+-commutative8.9%
associate-/l*21.0%
fma-define21.0%
+-commutative21.0%
associate-/l*23.3%
fma-define23.3%
Simplified23.3%
Taylor expanded in y around inf 80.7%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ a (/ (* y b) t)))))
(if (<= t -2.4e-23)
(/ x (+ (+ a 1.0) (* y (/ b t))))
(if (<= t -4.2e-121)
t_1
(if (<= t 7.2e-137)
(/ (+ z (/ (* x t) y)) b)
(if (<= t 5.2e-34) t_1 (/ (+ x (* z (/ y t))) (+ a 1.0))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / (a + ((y * b) / t));
double tmp;
if (t <= -2.4e-23) {
tmp = x / ((a + 1.0) + (y * (b / t)));
} else if (t <= -4.2e-121) {
tmp = t_1;
} else if (t <= 7.2e-137) {
tmp = (z + ((x * t) / y)) / b;
} else if (t <= 5.2e-34) {
tmp = t_1;
} else {
tmp = (x + (z * (y / t))) / (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 + ((y * z) / t)) / (a + ((y * b) / t))
if (t <= (-2.4d-23)) then
tmp = x / ((a + 1.0d0) + (y * (b / t)))
else if (t <= (-4.2d-121)) then
tmp = t_1
else if (t <= 7.2d-137) then
tmp = (z + ((x * t) / y)) / b
else if (t <= 5.2d-34) then
tmp = t_1
else
tmp = (x + (z * (y / t))) / (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 + ((y * z) / t)) / (a + ((y * b) / t));
double tmp;
if (t <= -2.4e-23) {
tmp = x / ((a + 1.0) + (y * (b / t)));
} else if (t <= -4.2e-121) {
tmp = t_1;
} else if (t <= 7.2e-137) {
tmp = (z + ((x * t) / y)) / b;
} else if (t <= 5.2e-34) {
tmp = t_1;
} else {
tmp = (x + (z * (y / t))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / (a + ((y * b) / t)) tmp = 0 if t <= -2.4e-23: tmp = x / ((a + 1.0) + (y * (b / t))) elif t <= -4.2e-121: tmp = t_1 elif t <= 7.2e-137: tmp = (z + ((x * t) / y)) / b elif t <= 5.2e-34: tmp = t_1 else: tmp = (x + (z * (y / t))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + Float64(Float64(y * b) / t))) tmp = 0.0 if (t <= -2.4e-23) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); elseif (t <= -4.2e-121) tmp = t_1; elseif (t <= 7.2e-137) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); elseif (t <= 5.2e-34) tmp = t_1; else tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + ((y * z) / t)) / (a + ((y * b) / t)); tmp = 0.0; if (t <= -2.4e-23) tmp = x / ((a + 1.0) + (y * (b / t))); elseif (t <= -4.2e-121) tmp = t_1; elseif (t <= 7.2e-137) tmp = (z + ((x * t) / y)) / b; elseif (t <= 5.2e-34) tmp = t_1; else tmp = (x + (z * (y / t))) / (a + 1.0); 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[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e-23], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.2e-121], t$95$1, If[LessEqual[t, 7.2e-137], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t, 5.2e-34], t$95$1, N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{a + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{-23}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-121}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-137}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\end{array}
\end{array}
if t < -2.39999999999999996e-23Initial program 82.8%
associate-/l*87.4%
associate-/l*92.1%
Simplified92.1%
clear-num92.1%
un-div-inv92.1%
Applied egg-rr92.1%
Taylor expanded in x around inf 78.7%
if -2.39999999999999996e-23 < t < -4.1999999999999997e-121 or 7.20000000000000013e-137 < t < 5.1999999999999999e-34Initial program 86.3%
Taylor expanded in a around inf 78.1%
if -4.1999999999999997e-121 < t < 7.20000000000000013e-137Initial program 44.8%
+-commutative44.8%
associate-/l*42.8%
fma-define42.8%
+-commutative42.8%
associate-/l*38.0%
fma-define38.0%
Simplified38.0%
Taylor expanded in y around -inf 52.5%
Taylor expanded in b around inf 73.1%
if 5.1999999999999999e-34 < t Initial program 84.6%
+-commutative84.6%
associate-/l*87.0%
fma-define87.0%
+-commutative87.0%
associate-/l*90.5%
fma-define90.5%
Simplified90.5%
Taylor expanded in b around 0 79.5%
*-commutative84.6%
associate-/l*89.4%
Applied egg-rr84.3%
Final simplification79.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (/ b t))) (t_2 (+ x (/ y (/ t z)))))
(if (<= (+ a 1.0) -4000000.0)
(/ (+ x (* z (/ y t))) (+ a (/ (* y b) t)))
(if (<= (+ a 1.0) 2.0) (/ t_2 (+ 1.0 t_1)) (/ t_2 (+ a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double t_2 = x + (y / (t / z));
double tmp;
if ((a + 1.0) <= -4000000.0) {
tmp = (x + (z * (y / t))) / (a + ((y * b) / t));
} else if ((a + 1.0) <= 2.0) {
tmp = t_2 / (1.0 + t_1);
} else {
tmp = t_2 / (a + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (b / t)
t_2 = x + (y / (t / z))
if ((a + 1.0d0) <= (-4000000.0d0)) then
tmp = (x + (z * (y / t))) / (a + ((y * b) / t))
else if ((a + 1.0d0) <= 2.0d0) then
tmp = t_2 / (1.0d0 + t_1)
else
tmp = t_2 / (a + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double t_2 = x + (y / (t / z));
double tmp;
if ((a + 1.0) <= -4000000.0) {
tmp = (x + (z * (y / t))) / (a + ((y * b) / t));
} else if ((a + 1.0) <= 2.0) {
tmp = t_2 / (1.0 + t_1);
} else {
tmp = t_2 / (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b / t) t_2 = x + (y / (t / z)) tmp = 0 if (a + 1.0) <= -4000000.0: tmp = (x + (z * (y / t))) / (a + ((y * b) / t)) elif (a + 1.0) <= 2.0: tmp = t_2 / (1.0 + t_1) else: tmp = t_2 / (a + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b / t)) t_2 = Float64(x + Float64(y / Float64(t / z))) tmp = 0.0 if (Float64(a + 1.0) <= -4000000.0) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + Float64(Float64(y * b) / t))); elseif (Float64(a + 1.0) <= 2.0) tmp = Float64(t_2 / Float64(1.0 + t_1)); else tmp = Float64(t_2 / Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b / t); t_2 = x + (y / (t / z)); tmp = 0.0; if ((a + 1.0) <= -4000000.0) tmp = (x + (z * (y / t))) / (a + ((y * b) / t)); elseif ((a + 1.0) <= 2.0) tmp = t_2 / (1.0 + t_1); else tmp = t_2 / (a + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a + 1.0), $MachinePrecision], -4000000.0], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a + 1.0), $MachinePrecision], 2.0], N[(t$95$2 / N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(t$95$2 / N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{b}{t}\\
t_2 := x + \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;a + 1 \leq -4000000:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + \frac{y \cdot b}{t}}\\
\mathbf{elif}\;a + 1 \leq 2:\\
\;\;\;\;\frac{t\_2}{1 + t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_2}{a + t\_1}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -4e6Initial program 84.5%
*-commutative84.5%
associate-/l*84.0%
Applied egg-rr84.0%
Taylor expanded in a around inf 82.6%
if -4e6 < (+.f64 a #s(literal 1 binary64)) < 2Initial program 75.3%
associate-/l*77.8%
associate-/l*78.6%
Simplified78.6%
clear-num78.6%
un-div-inv78.7%
Applied egg-rr78.7%
Taylor expanded in a around 0 77.3%
if 2 < (+.f64 a #s(literal 1 binary64)) Initial program 65.3%
associate-/l*66.6%
associate-/l*67.6%
Simplified67.6%
clear-num67.6%
un-div-inv67.7%
Applied egg-rr67.7%
Taylor expanded in a around inf 67.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (/ b t))))
(if (<= (+ a 1.0) -4000000.0)
(/ (+ x (* z (/ y t))) (+ a (/ (* y b) t)))
(if (<= (+ a 1.0) 500.0)
(/ (+ x (/ y (/ t z))) (+ 1.0 t_1))
(/ (+ x (* y (/ z t))) (+ a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double tmp;
if ((a + 1.0) <= -4000000.0) {
tmp = (x + (z * (y / t))) / (a + ((y * b) / t));
} else if ((a + 1.0) <= 500.0) {
tmp = (x + (y / (t / z))) / (1.0 + t_1);
} else {
tmp = (x + (y * (z / t))) / (a + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = y * (b / t)
if ((a + 1.0d0) <= (-4000000.0d0)) then
tmp = (x + (z * (y / t))) / (a + ((y * b) / t))
else if ((a + 1.0d0) <= 500.0d0) then
tmp = (x + (y / (t / z))) / (1.0d0 + t_1)
else
tmp = (x + (y * (z / t))) / (a + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double tmp;
if ((a + 1.0) <= -4000000.0) {
tmp = (x + (z * (y / t))) / (a + ((y * b) / t));
} else if ((a + 1.0) <= 500.0) {
tmp = (x + (y / (t / z))) / (1.0 + t_1);
} else {
tmp = (x + (y * (z / t))) / (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b / t) tmp = 0 if (a + 1.0) <= -4000000.0: tmp = (x + (z * (y / t))) / (a + ((y * b) / t)) elif (a + 1.0) <= 500.0: tmp = (x + (y / (t / z))) / (1.0 + t_1) else: tmp = (x + (y * (z / t))) / (a + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b / t)) tmp = 0.0 if (Float64(a + 1.0) <= -4000000.0) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + Float64(Float64(y * b) / t))); elseif (Float64(a + 1.0) <= 500.0) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(1.0 + t_1)); else tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b / t); tmp = 0.0; if ((a + 1.0) <= -4000000.0) tmp = (x + (z * (y / t))) / (a + ((y * b) / t)); elseif ((a + 1.0) <= 500.0) tmp = (x + (y / (t / z))) / (1.0 + t_1); else tmp = (x + (y * (z / t))) / (a + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a + 1.0), $MachinePrecision], -4000000.0], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a + 1.0), $MachinePrecision], 500.0], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{b}{t}\\
\mathbf{if}\;a + 1 \leq -4000000:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + \frac{y \cdot b}{t}}\\
\mathbf{elif}\;a + 1 \leq 500:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{1 + t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + t\_1}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -4e6Initial program 84.5%
*-commutative84.5%
associate-/l*84.0%
Applied egg-rr84.0%
Taylor expanded in a around inf 82.6%
if -4e6 < (+.f64 a #s(literal 1 binary64)) < 500Initial program 75.5%
associate-/l*78.0%
associate-/l*78.0%
Simplified78.0%
clear-num78.0%
un-div-inv78.0%
Applied egg-rr78.0%
Taylor expanded in a around 0 76.7%
if 500 < (+.f64 a #s(literal 1 binary64)) Initial program 64.8%
associate-/l*66.2%
associate-/l*68.5%
Simplified68.5%
Taylor expanded in a around inf 68.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (/ b t))) (t_2 (+ x (* y (/ z t)))))
(if (<= (+ a 1.0) -4000000.0)
(/ (+ x (* z (/ y t))) (+ a (/ (* y b) t)))
(if (<= (+ a 1.0) 500.0) (/ t_2 (+ 1.0 t_1)) (/ t_2 (+ a t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double t_2 = x + (y * (z / t));
double tmp;
if ((a + 1.0) <= -4000000.0) {
tmp = (x + (z * (y / t))) / (a + ((y * b) / t));
} else if ((a + 1.0) <= 500.0) {
tmp = t_2 / (1.0 + t_1);
} else {
tmp = t_2 / (a + t_1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (b / t)
t_2 = x + (y * (z / t))
if ((a + 1.0d0) <= (-4000000.0d0)) then
tmp = (x + (z * (y / t))) / (a + ((y * b) / t))
else if ((a + 1.0d0) <= 500.0d0) then
tmp = t_2 / (1.0d0 + t_1)
else
tmp = t_2 / (a + t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b / t);
double t_2 = x + (y * (z / t));
double tmp;
if ((a + 1.0) <= -4000000.0) {
tmp = (x + (z * (y / t))) / (a + ((y * b) / t));
} else if ((a + 1.0) <= 500.0) {
tmp = t_2 / (1.0 + t_1);
} else {
tmp = t_2 / (a + t_1);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * (b / t) t_2 = x + (y * (z / t)) tmp = 0 if (a + 1.0) <= -4000000.0: tmp = (x + (z * (y / t))) / (a + ((y * b) / t)) elif (a + 1.0) <= 500.0: tmp = t_2 / (1.0 + t_1) else: tmp = t_2 / (a + t_1) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b / t)) t_2 = Float64(x + Float64(y * Float64(z / t))) tmp = 0.0 if (Float64(a + 1.0) <= -4000000.0) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + Float64(Float64(y * b) / t))); elseif (Float64(a + 1.0) <= 500.0) tmp = Float64(t_2 / Float64(1.0 + t_1)); else tmp = Float64(t_2 / Float64(a + t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * (b / t); t_2 = x + (y * (z / t)); tmp = 0.0; if ((a + 1.0) <= -4000000.0) tmp = (x + (z * (y / t))) / (a + ((y * b) / t)); elseif ((a + 1.0) <= 500.0) tmp = t_2 / (1.0 + t_1); else tmp = t_2 / (a + t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a + 1.0), $MachinePrecision], -4000000.0], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a + 1.0), $MachinePrecision], 500.0], N[(t$95$2 / N[(1.0 + t$95$1), $MachinePrecision]), $MachinePrecision], N[(t$95$2 / N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{b}{t}\\
t_2 := x + y \cdot \frac{z}{t}\\
\mathbf{if}\;a + 1 \leq -4000000:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + \frac{y \cdot b}{t}}\\
\mathbf{elif}\;a + 1 \leq 500:\\
\;\;\;\;\frac{t\_2}{1 + t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_2}{a + t\_1}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < -4e6Initial program 84.5%
*-commutative84.5%
associate-/l*84.0%
Applied egg-rr84.0%
Taylor expanded in a around inf 82.6%
if -4e6 < (+.f64 a #s(literal 1 binary64)) < 500Initial program 75.5%
associate-/l*78.0%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in a around 0 76.6%
if 500 < (+.f64 a #s(literal 1 binary64)) Initial program 64.8%
associate-/l*66.2%
associate-/l*68.5%
Simplified68.5%
Taylor expanded in a around inf 68.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.5e+93) (not (<= y 5e+157))) (/ (+ z (/ (* x t) y)) b) (/ (+ x (* z (/ y t))) (+ (+ a 1.0) (/ (* y b) t)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.5e+93) || !(y <= 5e+157)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + (z * (y / 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 ((y <= (-3.5d+93)) .or. (.not. (y <= 5d+157))) then
tmp = (z + ((x * t) / y)) / b
else
tmp = (x + (z * (y / 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 ((y <= -3.5e+93) || !(y <= 5e+157)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + (z * (y / t))) / ((a + 1.0) + ((y * b) / t));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.5e+93) or not (y <= 5e+157): tmp = (z + ((x * t) / y)) / b else: tmp = (x + (z * (y / t))) / ((a + 1.0) + ((y * b) / t)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.5e+93) || !(y <= 5e+157)) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.5e+93) || ~((y <= 5e+157))) tmp = (z + ((x * t) / y)) / b; else tmp = (x + (z * (y / t))) / ((a + 1.0) + ((y * b) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.5e+93], N[Not[LessEqual[y, 5e+157]], $MachinePrecision]], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+93} \lor \neg \left(y \leq 5 \cdot 10^{+157}\right):\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\end{array}
\end{array}
if y < -3.49999999999999998e93 or 4.99999999999999976e157 < y Initial program 35.1%
+-commutative35.1%
associate-/l*39.5%
fma-define39.5%
+-commutative39.5%
associate-/l*46.4%
fma-define46.4%
Simplified46.4%
Taylor expanded in y around -inf 43.2%
Taylor expanded in b around inf 68.6%
if -3.49999999999999998e93 < y < 4.99999999999999976e157Initial program 88.8%
*-commutative88.8%
associate-/l*90.6%
Applied egg-rr90.6%
Final simplification84.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.5e-126) (not (<= t 2.3e-131))) (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.5e-126) || !(t <= 2.3e-131)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z + ((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 <= (-7.5d-126)) .or. (.not. (t <= 2.3d-131))) then
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (z + ((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 <= -7.5e-126) || !(t <= 2.3e-131)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.5e-126) or not (t <= 2.3e-131): tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.5e-126) || !(t <= 2.3e-131)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -7.5e-126) || ~((t <= 2.3e-131))) tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.5e-126], N[Not[LessEqual[t, 2.3e-131]], $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 + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{-126} \lor \neg \left(t \leq 2.3 \cdot 10^{-131}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -7.49999999999999976e-126 or 2.30000000000000022e-131 < t Initial program 84.3%
associate-/l*86.8%
associate-/l*88.3%
Simplified88.3%
if -7.49999999999999976e-126 < t < 2.30000000000000022e-131Initial program 46.5%
+-commutative46.5%
associate-/l*44.5%
fma-define44.5%
+-commutative44.5%
associate-/l*38.5%
fma-define38.5%
Simplified38.5%
Taylor expanded in y around -inf 52.4%
Taylor expanded in b around inf 72.6%
Final simplification84.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.8e-66) (not (<= t 2.9e-59))) (/ x (+ (+ a 1.0) (* y (/ b t)))) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.8e-66) || !(t <= 2.9e-59)) {
tmp = x / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z + ((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.8d-66)) .or. (.not. (t <= 2.9d-59))) then
tmp = x / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (z + ((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.8e-66) || !(t <= 2.9e-59)) {
tmp = x / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.8e-66) or not (t <= 2.9e-59): tmp = x / ((a + 1.0) + (y * (b / t))) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.8e-66) || !(t <= 2.9e-59)) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.8e-66) || ~((t <= 2.9e-59))) tmp = x / ((a + 1.0) + (y * (b / t))); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.8e-66], N[Not[LessEqual[t, 2.9e-59]], $MachinePrecision]], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{-66} \lor \neg \left(t \leq 2.9 \cdot 10^{-59}\right):\\
\;\;\;\;\frac{x}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -3.7999999999999998e-66 or 2.90000000000000016e-59 < t Initial program 83.6%
associate-/l*86.5%
associate-/l*89.3%
Simplified89.3%
clear-num89.3%
un-div-inv89.3%
Applied egg-rr89.3%
Taylor expanded in x around inf 73.0%
if -3.7999999999999998e-66 < t < 2.90000000000000016e-59Initial program 56.6%
+-commutative56.6%
associate-/l*55.0%
fma-define55.0%
+-commutative55.0%
associate-/l*48.2%
fma-define48.2%
Simplified48.2%
Taylor expanded in y around -inf 48.5%
Taylor expanded in b around inf 68.9%
Final simplification71.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -9.6e-73) (not (<= t 8.6e-60))) (/ x (+ 1.0 (+ a (/ (* y b) t)))) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -9.6e-73) || !(t <= 8.6e-60)) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else {
tmp = (z + ((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 <= (-9.6d-73)) .or. (.not. (t <= 8.6d-60))) then
tmp = x / (1.0d0 + (a + ((y * b) / t)))
else
tmp = (z + ((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 <= -9.6e-73) || !(t <= 8.6e-60)) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -9.6e-73) or not (t <= 8.6e-60): tmp = x / (1.0 + (a + ((y * b) / t))) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -9.6e-73) || !(t <= 8.6e-60)) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -9.6e-73) || ~((t <= 8.6e-60))) tmp = x / (1.0 + (a + ((y * b) / t))); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -9.6e-73], N[Not[LessEqual[t, 8.6e-60]], $MachinePrecision]], N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.6 \cdot 10^{-73} \lor \neg \left(t \leq 8.6 \cdot 10^{-60}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -9.60000000000000022e-73 or 8.6000000000000001e-60 < t Initial program 83.8%
+-commutative83.8%
associate-/l*86.6%
fma-define86.7%
+-commutative86.7%
associate-/l*88.8%
fma-define88.8%
Simplified88.8%
Taylor expanded in z around 0 71.1%
if -9.60000000000000022e-73 < t < 8.6000000000000001e-60Initial program 55.6%
+-commutative55.6%
associate-/l*54.0%
fma-define54.0%
+-commutative54.0%
associate-/l*48.2%
fma-define48.2%
Simplified48.2%
Taylor expanded in y around -inf 48.5%
Taylor expanded in b around inf 69.2%
Final simplification70.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -2.9e-66)
(/ x (+ (+ a 1.0) (* y (/ b t))))
(if (<= t 1.02e-57)
(/ (+ z (/ (* x t) y)) b)
(/ (+ x (* z (/ y t))) (+ a 1.0)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2.9e-66) {
tmp = x / ((a + 1.0) + (y * (b / t)));
} else if (t <= 1.02e-57) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + (z * (y / t))) / (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 <= (-2.9d-66)) then
tmp = x / ((a + 1.0d0) + (y * (b / t)))
else if (t <= 1.02d-57) then
tmp = (z + ((x * t) / y)) / b
else
tmp = (x + (z * (y / t))) / (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 <= -2.9e-66) {
tmp = x / ((a + 1.0) + (y * (b / t)));
} else if (t <= 1.02e-57) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = (x + (z * (y / t))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -2.9e-66: tmp = x / ((a + 1.0) + (y * (b / t))) elif t <= 1.02e-57: tmp = (z + ((x * t) / y)) / b else: tmp = (x + (z * (y / t))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2.9e-66) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); elseif (t <= 1.02e-57) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -2.9e-66) tmp = x / ((a + 1.0) + (y * (b / t))); elseif (t <= 1.02e-57) tmp = (z + ((x * t) / y)) / b; else tmp = (x + (z * (y / t))) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2.9e-66], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-57], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-66}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-57}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\end{array}
\end{array}
if t < -2.90000000000000011e-66Initial program 83.1%
associate-/l*86.7%
associate-/l*90.3%
Simplified90.3%
clear-num90.3%
un-div-inv90.4%
Applied egg-rr90.4%
Taylor expanded in x around inf 73.9%
if -2.90000000000000011e-66 < t < 1.02e-57Initial program 57.1%
+-commutative57.1%
associate-/l*55.6%
fma-define55.6%
+-commutative55.6%
associate-/l*48.8%
fma-define48.8%
Simplified48.8%
Taylor expanded in y around -inf 49.1%
Taylor expanded in b around inf 69.2%
if 1.02e-57 < t Initial program 83.9%
+-commutative83.9%
associate-/l*86.1%
fma-define86.1%
+-commutative86.1%
associate-/l*88.2%
fma-define88.2%
Simplified88.2%
Taylor expanded in b around 0 77.0%
*-commutative83.9%
associate-/l*88.2%
Applied egg-rr81.4%
Final simplification74.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -8.2e-49)
t_1
(if (<= t -4.1e-128)
(/ x (+ a (/ (* y b) t)))
(if (<= t 2.2e-57) (/ z b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -8.2e-49) {
tmp = t_1;
} else if (t <= -4.1e-128) {
tmp = x / (a + ((y * b) / t));
} else if (t <= 2.2e-57) {
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 = x / (a + 1.0d0)
if (t <= (-8.2d-49)) then
tmp = t_1
else if (t <= (-4.1d-128)) then
tmp = x / (a + ((y * b) / t))
else if (t <= 2.2d-57) 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 = x / (a + 1.0);
double tmp;
if (t <= -8.2e-49) {
tmp = t_1;
} else if (t <= -4.1e-128) {
tmp = x / (a + ((y * b) / t));
} else if (t <= 2.2e-57) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -8.2e-49: tmp = t_1 elif t <= -4.1e-128: tmp = x / (a + ((y * b) / t)) elif t <= 2.2e-57: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -8.2e-49) tmp = t_1; elseif (t <= -4.1e-128) tmp = Float64(x / Float64(a + Float64(Float64(y * b) / t))); elseif (t <= 2.2e-57) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -8.2e-49) tmp = t_1; elseif (t <= -4.1e-128) tmp = x / (a + ((y * b) / t)); elseif (t <= 2.2e-57) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.2e-49], t$95$1, If[LessEqual[t, -4.1e-128], N[(x / N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-57], N[(z / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -8.2 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.1 \cdot 10^{-128}:\\
\;\;\;\;\frac{x}{a + \frac{y \cdot b}{t}}\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-57}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.2000000000000003e-49 or 2.19999999999999999e-57 < t Initial program 83.5%
+-commutative83.5%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*89.4%
fma-define89.4%
Simplified89.4%
Taylor expanded in y around 0 65.5%
if -8.2000000000000003e-49 < t < -4.1e-128Initial program 94.2%
associate-/l*94.1%
associate-/l*81.9%
Simplified81.9%
clear-num81.8%
un-div-inv81.9%
Applied egg-rr81.9%
Taylor expanded in a around inf 68.7%
Taylor expanded in x around inf 52.6%
*-commutative52.6%
Simplified52.6%
if -4.1e-128 < t < 2.19999999999999999e-57Initial program 51.6%
+-commutative51.6%
associate-/l*49.8%
fma-define49.8%
+-commutative49.8%
associate-/l*44.7%
fma-define44.7%
Simplified44.7%
Taylor expanded in y around inf 65.0%
Final simplification64.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -2.6e-49)
t_1
(if (<= t -6e-127) (/ (* x t) (* y b)) (if (<= t 3.2e-56) (/ z b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -2.6e-49) {
tmp = t_1;
} else if (t <= -6e-127) {
tmp = (x * t) / (y * b);
} else if (t <= 3.2e-56) {
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 = x / (a + 1.0d0)
if (t <= (-2.6d-49)) then
tmp = t_1
else if (t <= (-6d-127)) then
tmp = (x * t) / (y * b)
else if (t <= 3.2d-56) 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 = x / (a + 1.0);
double tmp;
if (t <= -2.6e-49) {
tmp = t_1;
} else if (t <= -6e-127) {
tmp = (x * t) / (y * b);
} else if (t <= 3.2e-56) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -2.6e-49: tmp = t_1 elif t <= -6e-127: tmp = (x * t) / (y * b) elif t <= 3.2e-56: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -2.6e-49) tmp = t_1; elseif (t <= -6e-127) tmp = Float64(Float64(x * t) / Float64(y * b)); elseif (t <= 3.2e-56) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -2.6e-49) tmp = t_1; elseif (t <= -6e-127) tmp = (x * t) / (y * b); elseif (t <= 3.2e-56) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e-49], t$95$1, If[LessEqual[t, -6e-127], N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-56], N[(z / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-127}:\\
\;\;\;\;\frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-56}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.59999999999999995e-49 or 3.19999999999999986e-56 < t Initial program 83.5%
+-commutative83.5%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*89.4%
fma-define89.4%
Simplified89.4%
Taylor expanded in y around 0 65.5%
if -2.59999999999999995e-49 < t < -6.00000000000000017e-127Initial program 94.2%
+-commutative94.2%
associate-/l*94.1%
fma-define94.1%
+-commutative94.1%
associate-/l*81.9%
fma-define81.9%
Simplified81.9%
Taylor expanded in b around inf 53.0%
Taylor expanded in t around inf 46.4%
if -6.00000000000000017e-127 < t < 3.19999999999999986e-56Initial program 51.6%
+-commutative51.6%
associate-/l*49.8%
fma-define49.8%
+-commutative49.8%
associate-/l*44.7%
fma-define44.7%
Simplified44.7%
Taylor expanded in y around inf 65.0%
Final simplification64.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -2.6e-49)
t_1
(if (<= t -6.2e-127)
(* t (/ x (* y b)))
(if (<= t 2.35e-55) (/ z b) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -2.6e-49) {
tmp = t_1;
} else if (t <= -6.2e-127) {
tmp = t * (x / (y * b));
} else if (t <= 2.35e-55) {
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 = x / (a + 1.0d0)
if (t <= (-2.6d-49)) then
tmp = t_1
else if (t <= (-6.2d-127)) then
tmp = t * (x / (y * b))
else if (t <= 2.35d-55) 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 = x / (a + 1.0);
double tmp;
if (t <= -2.6e-49) {
tmp = t_1;
} else if (t <= -6.2e-127) {
tmp = t * (x / (y * b));
} else if (t <= 2.35e-55) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -2.6e-49: tmp = t_1 elif t <= -6.2e-127: tmp = t * (x / (y * b)) elif t <= 2.35e-55: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -2.6e-49) tmp = t_1; elseif (t <= -6.2e-127) tmp = Float64(t * Float64(x / Float64(y * b))); elseif (t <= 2.35e-55) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -2.6e-49) tmp = t_1; elseif (t <= -6.2e-127) tmp = t * (x / (y * b)); elseif (t <= 2.35e-55) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e-49], t$95$1, If[LessEqual[t, -6.2e-127], N[(t * N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.35e-55], N[(z / b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-127}:\\
\;\;\;\;t \cdot \frac{x}{y \cdot b}\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{-55}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.59999999999999995e-49 or 2.35e-55 < t Initial program 83.5%
+-commutative83.5%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*89.4%
fma-define89.4%
Simplified89.4%
Taylor expanded in y around 0 65.5%
if -2.59999999999999995e-49 < t < -6.2e-127Initial program 94.2%
+-commutative94.2%
associate-/l*94.1%
fma-define94.1%
+-commutative94.1%
associate-/l*81.9%
fma-define81.9%
Simplified81.9%
Taylor expanded in b around inf 53.0%
Taylor expanded in t around 0 53.0%
Taylor expanded in t around inf 46.4%
associate-/l*46.2%
*-commutative46.2%
Simplified46.2%
if -6.2e-127 < t < 2.35e-55Initial program 51.6%
+-commutative51.6%
associate-/l*49.8%
fma-define49.8%
+-commutative49.8%
associate-/l*44.7%
fma-define44.7%
Simplified44.7%
Taylor expanded in y around inf 65.0%
Final simplification64.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.05e-47) (not (<= t 8.2e-58))) (/ x (+ a 1.0)) (/ (+ z (/ (* x t) y)) b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.05e-47) || !(t <= 8.2e-58)) {
tmp = x / (a + 1.0);
} else {
tmp = (z + ((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 <= (-1.05d-47)) .or. (.not. (t <= 8.2d-58))) then
tmp = x / (a + 1.0d0)
else
tmp = (z + ((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 <= -1.05e-47) || !(t <= 8.2e-58)) {
tmp = x / (a + 1.0);
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.05e-47) or not (t <= 8.2e-58): tmp = x / (a + 1.0) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.05e-47) || !(t <= 8.2e-58)) tmp = Float64(x / Float64(a + 1.0)); else tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.05e-47) || ~((t <= 8.2e-58))) tmp = x / (a + 1.0); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.05e-47], N[Not[LessEqual[t, 8.2e-58]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{-47} \lor \neg \left(t \leq 8.2 \cdot 10^{-58}\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -1.05e-47 or 8.20000000000000056e-58 < t Initial program 83.5%
+-commutative83.5%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*89.4%
fma-define89.4%
Simplified89.4%
Taylor expanded in y around 0 65.5%
if -1.05e-47 < t < 8.20000000000000056e-58Initial program 58.9%
+-commutative58.9%
associate-/l*57.4%
fma-define57.4%
+-commutative57.4%
associate-/l*51.1%
fma-define51.1%
Simplified51.1%
Taylor expanded in y around -inf 49.3%
Taylor expanded in b around inf 68.1%
Final simplification66.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.8e-49) (not (<= t 1.95e-56))) (/ x (+ a 1.0)) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.8e-49) || !(t <= 1.95e-56)) {
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 <= (-2.8d-49)) .or. (.not. (t <= 1.95d-56))) 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 <= -2.8e-49) || !(t <= 1.95e-56)) {
tmp = x / (a + 1.0);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.8e-49) or not (t <= 1.95e-56): tmp = x / (a + 1.0) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.8e-49) || !(t <= 1.95e-56)) 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 <= -2.8e-49) || ~((t <= 1.95e-56))) 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, -2.8e-49], N[Not[LessEqual[t, 1.95e-56]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{-49} \lor \neg \left(t \leq 1.95 \cdot 10^{-56}\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if t < -2.79999999999999997e-49 or 1.95e-56 < t Initial program 83.5%
+-commutative83.5%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*89.4%
fma-define89.4%
Simplified89.4%
Taylor expanded in y around 0 65.5%
if -2.79999999999999997e-49 < t < 1.95e-56Initial program 58.9%
+-commutative58.9%
associate-/l*57.4%
fma-define57.4%
+-commutative57.4%
associate-/l*51.1%
fma-define51.1%
Simplified51.1%
Taylor expanded in y around inf 56.9%
Final simplification62.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.8e-85) (not (<= y 9.2e+16))) (/ z b) (/ x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.8e-85) || !(y <= 9.2e+16)) {
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 ((y <= (-4.8d-85)) .or. (.not. (y <= 9.2d+16))) 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 ((y <= -4.8e-85) || !(y <= 9.2e+16)) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.8e-85) or not (y <= 9.2e+16): tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.8e-85) || !(y <= 9.2e+16)) 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 ((y <= -4.8e-85) || ~((y <= 9.2e+16))) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.8e-85], N[Not[LessEqual[y, 9.2e+16]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{-85} \lor \neg \left(y \leq 9.2 \cdot 10^{+16}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if y < -4.8000000000000001e-85 or 9.2e16 < y Initial program 58.5%
+-commutative58.5%
associate-/l*62.0%
fma-define62.0%
+-commutative62.0%
associate-/l*66.8%
fma-define66.8%
Simplified66.8%
Taylor expanded in y around inf 48.1%
if -4.8000000000000001e-85 < y < 9.2e16Initial program 93.7%
associate-/l*92.5%
associate-/l*85.9%
Simplified85.9%
clear-num85.9%
un-div-inv86.7%
Applied egg-rr86.7%
Taylor expanded in a around inf 54.2%
Taylor expanded in y around 0 39.2%
Final simplification44.1%
(FPCore (x y z t a b) :precision binary64 (/ x a))
double code(double x, double y, double z, double t, double a, double b) {
return x / a;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / a;
}
def code(x, y, z, t, a, b): return x / a
function code(x, y, z, t, a, b) return Float64(x / a) end
function tmp = code(x, y, z, t, a, b) tmp = x / a; end
code[x_, y_, z_, t_, a_, b_] := N[(x / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a}
\end{array}
Initial program 74.5%
associate-/l*75.9%
associate-/l*75.5%
Simplified75.5%
clear-num75.5%
un-div-inv75.9%
Applied egg-rr75.9%
Taylor expanded in a around inf 50.7%
Taylor expanded in y around 0 28.1%
(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 2024144
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1707385670788761/12500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))) (if (< t 1518483551868623/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ z b) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))