
(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 11 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 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))) (if (<= t_1 (- INFINITY)) (/ z b) (if (<= t_1 5e+280) 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)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = z / b;
} else if (t_1 <= 5e+280) {
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)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = z / b;
} else if (t_1 <= 5e+280) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)) tmp = 0 if t_1 <= -math.inf: tmp = z / b elif t_1 <= 5e+280: 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(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(z / b); elseif (t_1 <= 5e+280) 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)) / ((a + 1.0) + ((y * b) / t)); tmp = 0.0; if (t_1 <= -Inf) tmp = z / b; elseif (t_1 <= 5e+280) 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[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(z / b), $MachinePrecision], If[LessEqual[t$95$1, 5e+280], t$95$1, N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+280}:\\
\;\;\;\;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.0 or 5.0000000000000002e280 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 11.4%
Taylor expanded in y around inf
/-lowering-/.f6479.2%
Simplified79.2%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 5.0000000000000002e280Initial program 90.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* z (/ y t)))))
(if (<= t -5.5e-178)
(/ t_1 (+ a 1.0))
(if (<= t 2.65e-132)
(/ z b)
(if (<= t 1.4e+58)
(/ t_1 (+ a (/ (* y b) t)))
(/ x (+ (+ a 1.0) (* b (/ y t)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y / t));
double tmp;
if (t <= -5.5e-178) {
tmp = t_1 / (a + 1.0);
} else if (t <= 2.65e-132) {
tmp = z / b;
} else if (t <= 1.4e+58) {
tmp = t_1 / (a + ((y * b) / t));
} else {
tmp = x / ((a + 1.0) + (b * (y / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (z * (y / t))
if (t <= (-5.5d-178)) then
tmp = t_1 / (a + 1.0d0)
else if (t <= 2.65d-132) then
tmp = z / b
else if (t <= 1.4d+58) then
tmp = t_1 / (a + ((y * b) / t))
else
tmp = x / ((a + 1.0d0) + (b * (y / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y / t));
double tmp;
if (t <= -5.5e-178) {
tmp = t_1 / (a + 1.0);
} else if (t <= 2.65e-132) {
tmp = z / b;
} else if (t <= 1.4e+58) {
tmp = t_1 / (a + ((y * b) / t));
} else {
tmp = x / ((a + 1.0) + (b * (y / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * (y / t)) tmp = 0 if t <= -5.5e-178: tmp = t_1 / (a + 1.0) elif t <= 2.65e-132: tmp = z / b elif t <= 1.4e+58: tmp = t_1 / (a + ((y * b) / t)) else: tmp = x / ((a + 1.0) + (b * (y / t))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * Float64(y / t))) tmp = 0.0 if (t <= -5.5e-178) tmp = Float64(t_1 / Float64(a + 1.0)); elseif (t <= 2.65e-132) tmp = Float64(z / b); elseif (t <= 1.4e+58) tmp = Float64(t_1 / Float64(a + Float64(Float64(y * b) / t))); else tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * (y / t)); tmp = 0.0; if (t <= -5.5e-178) tmp = t_1 / (a + 1.0); elseif (t <= 2.65e-132) tmp = z / b; elseif (t <= 1.4e+58) tmp = t_1 / (a + ((y * b) / t)); else tmp = x / ((a + 1.0) + (b * (y / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e-178], N[(t$95$1 / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.65e-132], N[(z / b), $MachinePrecision], If[LessEqual[t, 1.4e+58], N[(t$95$1 / N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{t}\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{-178}:\\
\;\;\;\;\frac{t\_1}{a + 1}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{-132}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+58}:\\
\;\;\;\;\frac{t\_1}{a + \frac{y \cdot b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\end{array}
\end{array}
if t < -5.50000000000000028e-178Initial program 78.4%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6480.7%
Applied egg-rr80.7%
Taylor expanded in y around 0
+-lowering-+.f6466.6%
Simplified66.6%
if -5.50000000000000028e-178 < t < 2.65000000000000015e-132Initial program 44.3%
Taylor expanded in y around inf
/-lowering-/.f6478.4%
Simplified78.4%
if 2.65000000000000015e-132 < t < 1.3999999999999999e58Initial program 89.2%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6484.7%
Applied egg-rr84.7%
Taylor expanded in a around inf
Simplified71.4%
if 1.3999999999999999e58 < t Initial program 86.4%
Taylor expanded in x around inf
Simplified79.7%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6479.7%
Applied egg-rr79.7%
Final simplification72.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* z (/ y t)))))
(if (<= t -2.55e-211)
(/ t_1 (+ (+ a 1.0) (/ (* y b) t)))
(if (<= t 6.8e-106) (/ z b) (/ t_1 (+ (+ a 1.0) (/ y (/ t b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y / t));
double tmp;
if (t <= -2.55e-211) {
tmp = t_1 / ((a + 1.0) + ((y * b) / t));
} else if (t <= 6.8e-106) {
tmp = z / b;
} else {
tmp = t_1 / ((a + 1.0) + (y / (t / b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (z * (y / t))
if (t <= (-2.55d-211)) then
tmp = t_1 / ((a + 1.0d0) + ((y * b) / t))
else if (t <= 6.8d-106) then
tmp = z / b
else
tmp = t_1 / ((a + 1.0d0) + (y / (t / b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y / t));
double tmp;
if (t <= -2.55e-211) {
tmp = t_1 / ((a + 1.0) + ((y * b) / t));
} else if (t <= 6.8e-106) {
tmp = z / b;
} else {
tmp = t_1 / ((a + 1.0) + (y / (t / b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * (y / t)) tmp = 0 if t <= -2.55e-211: tmp = t_1 / ((a + 1.0) + ((y * b) / t)) elif t <= 6.8e-106: tmp = z / b else: tmp = t_1 / ((a + 1.0) + (y / (t / b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * Float64(y / t))) tmp = 0.0 if (t <= -2.55e-211) tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))); elseif (t <= 6.8e-106) tmp = Float64(z / b); else tmp = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(y / Float64(t / b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * (y / t)); tmp = 0.0; if (t <= -2.55e-211) tmp = t_1 / ((a + 1.0) + ((y * b) / t)); elseif (t <= 6.8e-106) tmp = z / b; else tmp = t_1 / ((a + 1.0) + (y / (t / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.55e-211], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e-106], N[(z / b), $MachinePrecision], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{t}\\
\mathbf{if}\;t \leq -2.55 \cdot 10^{-211}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-106}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if t < -2.55000000000000006e-211Initial program 78.2%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6480.5%
Applied egg-rr80.5%
if -2.55000000000000006e-211 < t < 6.79999999999999965e-106Initial program 47.0%
Taylor expanded in y around inf
/-lowering-/.f6478.8%
Simplified78.8%
if 6.79999999999999965e-106 < t Initial program 87.0%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6487.9%
Applied egg-rr87.9%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6491.4%
Applied egg-rr91.4%
Final simplification84.2%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (+ x (* z (/ y t))) (+ (+ a 1.0) (/ (* y b) t))))) (if (<= t -3.4e-212) t_1 (if (<= t 4.7e-129) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (z * (y / t))) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t <= -3.4e-212) {
tmp = t_1;
} else if (t <= 4.7e-129) {
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 + (z * (y / t))) / ((a + 1.0d0) + ((y * b) / t))
if (t <= (-3.4d-212)) then
tmp = t_1
else if (t <= 4.7d-129) 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 + (z * (y / t))) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t <= -3.4e-212) {
tmp = t_1;
} else if (t <= 4.7e-129) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (z * (y / t))) / ((a + 1.0) + ((y * b) / t)) tmp = 0 if t <= -3.4e-212: tmp = t_1 elif t <= 4.7e-129: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t <= -3.4e-212) tmp = t_1; elseif (t <= 4.7e-129) 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 + (z * (y / t))) / ((a + 1.0) + ((y * b) / t)); tmp = 0.0; if (t <= -3.4e-212) tmp = t_1; elseif (t <= 4.7e-129) tmp = z / b; else tmp = t_1; 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[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.4e-212], t$95$1, If[LessEqual[t, 4.7e-129], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + z \cdot \frac{y}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t \leq -3.4 \cdot 10^{-212}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-129}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.39999999999999998e-212 or 4.7000000000000002e-129 < t Initial program 82.9%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6484.0%
Applied egg-rr84.0%
if -3.39999999999999998e-212 < t < 4.7000000000000002e-129Initial program 42.0%
Taylor expanded in y around inf
/-lowering-/.f6480.4%
Simplified80.4%
Final simplification83.3%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ x (* z (/ y t)))) (t_2 (/ t_1 (+ a (/ (* y b) t))))) (if (<= a -28000.0) t_2 (if (<= a 0.6) (/ t_1 (+ 1.0 (/ y (/ t b)))) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y / t));
double t_2 = t_1 / (a + ((y * b) / t));
double tmp;
if (a <= -28000.0) {
tmp = t_2;
} else if (a <= 0.6) {
tmp = t_1 / (1.0 + (y / (t / b)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (z * (y / t))
t_2 = t_1 / (a + ((y * b) / t))
if (a <= (-28000.0d0)) then
tmp = t_2
else if (a <= 0.6d0) then
tmp = t_1 / (1.0d0 + (y / (t / b)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (z * (y / t));
double t_2 = t_1 / (a + ((y * b) / t));
double tmp;
if (a <= -28000.0) {
tmp = t_2;
} else if (a <= 0.6) {
tmp = t_1 / (1.0 + (y / (t / b)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (z * (y / t)) t_2 = t_1 / (a + ((y * b) / t)) tmp = 0 if a <= -28000.0: tmp = t_2 elif a <= 0.6: tmp = t_1 / (1.0 + (y / (t / b))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(z * Float64(y / t))) t_2 = Float64(t_1 / Float64(a + Float64(Float64(y * b) / t))) tmp = 0.0 if (a <= -28000.0) tmp = t_2; elseif (a <= 0.6) tmp = Float64(t_1 / Float64(1.0 + Float64(y / Float64(t / b)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (z * (y / t)); t_2 = t_1 / (a + ((y * b) / t)); tmp = 0.0; if (a <= -28000.0) tmp = t_2; elseif (a <= 0.6) tmp = t_1 / (1.0 + (y / (t / b))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -28000.0], t$95$2, If[LessEqual[a, 0.6], N[(t$95$1 / N[(1.0 + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{t}\\
t_2 := \frac{t\_1}{a + \frac{y \cdot b}{t}}\\
\mathbf{if}\;a \leq -28000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 0.6:\\
\;\;\;\;\frac{t\_1}{1 + \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -28000 or 0.599999999999999978 < a Initial program 77.7%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6478.3%
Applied egg-rr78.3%
Taylor expanded in a around inf
Simplified77.2%
if -28000 < a < 0.599999999999999978Initial program 71.5%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.8%
Applied egg-rr69.8%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6467.6%
Applied egg-rr67.6%
Taylor expanded in a around 0
Simplified66.5%
Final simplification71.6%
(FPCore (x y z t a b) :precision binary64 (if (<= t -5.5e-178) (/ (+ x (* z (/ y t))) (+ a 1.0)) (if (<= t 1.2e+22) (/ z b) (/ x (+ (+ a 1.0) (* b (/ y t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -5.5e-178) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (t <= 1.2e+22) {
tmp = z / b;
} else {
tmp = x / ((a + 1.0) + (b * (y / 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 <= (-5.5d-178)) then
tmp = (x + (z * (y / t))) / (a + 1.0d0)
else if (t <= 1.2d+22) then
tmp = z / b
else
tmp = x / ((a + 1.0d0) + (b * (y / 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 <= -5.5e-178) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (t <= 1.2e+22) {
tmp = z / b;
} else {
tmp = x / ((a + 1.0) + (b * (y / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -5.5e-178: tmp = (x + (z * (y / t))) / (a + 1.0) elif t <= 1.2e+22: tmp = z / b else: tmp = x / ((a + 1.0) + (b * (y / t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -5.5e-178) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); elseif (t <= 1.2e+22) tmp = Float64(z / b); else tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -5.5e-178) tmp = (x + (z * (y / t))) / (a + 1.0); elseif (t <= 1.2e+22) tmp = z / b; else tmp = x / ((a + 1.0) + (b * (y / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -5.5e-178], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e+22], N[(z / b), $MachinePrecision], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{-178}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+22}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\end{array}
\end{array}
if t < -5.50000000000000028e-178Initial program 78.4%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f6480.7%
Applied egg-rr80.7%
Taylor expanded in y around 0
+-lowering-+.f6466.6%
Simplified66.6%
if -5.50000000000000028e-178 < t < 1.2e22Initial program 60.6%
Taylor expanded in y around inf
/-lowering-/.f6468.1%
Simplified68.1%
if 1.2e22 < t Initial program 88.4%
Taylor expanded in x around inf
Simplified76.8%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6476.8%
Applied egg-rr76.8%
Final simplification69.7%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ (+ a 1.0) (* b (/ y t)))))) (if (<= t -1.8e-115) t_1 (if (<= t 1.2e+22) (/ 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) + (b * (y / t)));
double tmp;
if (t <= -1.8e-115) {
tmp = t_1;
} else if (t <= 1.2e+22) {
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) + (b * (y / t)))
if (t <= (-1.8d-115)) then
tmp = t_1
else if (t <= 1.2d+22) 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) + (b * (y / t)));
double tmp;
if (t <= -1.8e-115) {
tmp = t_1;
} else if (t <= 1.2e+22) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / ((a + 1.0) + (b * (y / t))) tmp = 0 if t <= -1.8e-115: tmp = t_1 elif t <= 1.2e+22: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))) tmp = 0.0 if (t <= -1.8e-115) tmp = t_1; elseif (t <= 1.2e+22) 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) + (b * (y / t))); tmp = 0.0; if (t <= -1.8e-115) tmp = t_1; elseif (t <= 1.2e+22) 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[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e-115], t$95$1, If[LessEqual[t, 1.2e+22], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+22}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.80000000000000005e-115 or 1.2e22 < t Initial program 84.6%
Taylor expanded in x around inf
Simplified71.3%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6471.9%
Applied egg-rr71.9%
if -1.80000000000000005e-115 < t < 1.2e22Initial program 60.4%
Taylor expanded in y around inf
/-lowering-/.f6464.3%
Simplified64.3%
Final simplification68.7%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ 1.0 (+ a (* y (/ b t))))))) (if (<= t -6.6e-113) t_1 (if (<= t 1.2e+22) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 + (a + (y * (b / t))));
double tmp;
if (t <= -6.6e-113) {
tmp = t_1;
} else if (t <= 1.2e+22) {
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 / (1.0d0 + (a + (y * (b / t))))
if (t <= (-6.6d-113)) then
tmp = t_1
else if (t <= 1.2d+22) 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 / (1.0 + (a + (y * (b / t))));
double tmp;
if (t <= -6.6e-113) {
tmp = t_1;
} else if (t <= 1.2e+22) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 + (a + (y * (b / t)))) tmp = 0 if t <= -6.6e-113: tmp = t_1 elif t <= 1.2e+22: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))) tmp = 0.0 if (t <= -6.6e-113) tmp = t_1; elseif (t <= 1.2e+22) 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 / (1.0 + (a + (y * (b / t)))); tmp = 0.0; if (t <= -6.6e-113) tmp = t_1; elseif (t <= 1.2e+22) 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[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.6e-113], t$95$1, If[LessEqual[t, 1.2e+22], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;t \leq -6.6 \cdot 10^{-113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+22}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.60000000000000041e-113 or 1.2e22 < t Initial program 84.6%
Taylor expanded in x around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6471.3%
Simplified71.3%
if -6.60000000000000041e-113 < t < 1.2e22Initial program 60.4%
Taylor expanded in y around inf
/-lowering-/.f6464.3%
Simplified64.3%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ a 1.0)))) (if (<= t -3.3e-13) t_1 (if (<= t 4.5e+62) (/ 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 <= -3.3e-13) {
tmp = t_1;
} else if (t <= 4.5e+62) {
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 <= (-3.3d-13)) then
tmp = t_1
else if (t <= 4.5d+62) 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 <= -3.3e-13) {
tmp = t_1;
} else if (t <= 4.5e+62) {
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 <= -3.3e-13: tmp = t_1 elif t <= 4.5e+62: 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 <= -3.3e-13) tmp = t_1; elseif (t <= 4.5e+62) 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 <= -3.3e-13) tmp = t_1; elseif (t <= 4.5e+62) 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, -3.3e-13], t$95$1, If[LessEqual[t, 4.5e+62], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -3.3 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+62}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.3000000000000001e-13 or 4.49999999999999999e62 < t Initial program 85.7%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f6467.9%
Simplified67.9%
if -3.3000000000000001e-13 < t < 4.49999999999999999e62Initial program 64.7%
Taylor expanded in y around inf
/-lowering-/.f6458.9%
Simplified58.9%
Final simplification63.0%
(FPCore (x y z t a b) :precision binary64 (if (<= t -66.0) (/ x a) (if (<= t 7.5e+66) (/ z b) (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -66.0) {
tmp = x / a;
} else if (t <= 7.5e+66) {
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 (t <= (-66.0d0)) then
tmp = x / a
else if (t <= 7.5d+66) 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 (t <= -66.0) {
tmp = x / a;
} else if (t <= 7.5e+66) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -66.0: tmp = x / a elif t <= 7.5e+66: tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -66.0) tmp = Float64(x / a); elseif (t <= 7.5e+66) 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 (t <= -66.0) tmp = x / a; elseif (t <= 7.5e+66) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -66.0], N[(x / a), $MachinePrecision], If[LessEqual[t, 7.5e+66], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -66:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+66}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if t < -66 or 7.50000000000000024e66 < t Initial program 85.5%
Taylor expanded in x around inf
Simplified75.9%
Taylor expanded in a around inf
/-lowering-/.f6439.7%
Simplified39.7%
if -66 < t < 7.50000000000000024e66Initial program 65.0%
Taylor expanded in y around inf
/-lowering-/.f6458.4%
Simplified58.4%
(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.4%
Taylor expanded in x around inf
Simplified53.7%
Taylor expanded in a around inf
/-lowering-/.f6426.5%
Simplified26.5%
(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 2024164
(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))))