
(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 (/ (* 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 5e+259)
(/ 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 <= 5e+259) {
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 <= 5e+259) {
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 <= 5e+259: 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 <= 5e+259) 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 <= 5e+259) 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, 5e+259], 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 5 \cdot 10^{+259}:\\
\;\;\;\;\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 5.00000000000000033e259 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 38.0%
+-commutative38.0%
associate-/l*70.2%
fma-define70.2%
+-commutative70.2%
associate-/l*70.0%
fma-define70.0%
Simplified70.0%
Taylor expanded in z around inf 91.9%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 5.00000000000000033e259Initial program 86.8%
*-commutative86.8%
associate-/l*89.7%
Applied egg-rr89.7%
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*12.2%
fma-define12.2%
Simplified12.2%
Taylor expanded in y around inf 96.3%
Final simplification90.7%
(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))))
(t_3 (* b (/ y t))))
(if (<= t_2 (- INFINITY))
(* (/ y t) (/ z (+ 1.0 (+ a t_3))))
(if (<= t_2 INFINITY) (/ t_1 (+ (+ a 1.0) t_3)) (/ 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 t_3 = b * (y / t);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (y / t) * (z / (1.0 + (a + t_3)));
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_1 / ((a + 1.0) + t_3);
} 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 t_3 = b * (y / t);
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = (y / t) * (z / (1.0 + (a + t_3)));
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_1 / ((a + 1.0) + t_3);
} 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)) t_3 = b * (y / t) tmp = 0 if t_2 <= -math.inf: tmp = (y / t) * (z / (1.0 + (a + t_3))) elif t_2 <= math.inf: tmp = t_1 / ((a + 1.0) + t_3) 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))) t_3 = Float64(b * Float64(y / t)) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(Float64(y / t) * Float64(z / Float64(1.0 + Float64(a + t_3)))); elseif (t_2 <= Inf) tmp = Float64(t_1 / Float64(Float64(a + 1.0) + t_3)); 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)); t_3 = b * (y / t); tmp = 0.0; if (t_2 <= -Inf) tmp = (y / t) * (z / (1.0 + (a + t_3))); elseif (t_2 <= Inf) tmp = t_1 / ((a + 1.0) + t_3); 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]}, Block[{t$95$3 = N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(y / t), $MachinePrecision] * N[(z / N[(1.0 + N[(a + t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + t$95$3), $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}}\\
t_3 := b \cdot \frac{y}{t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{1 + \left(a + t\_3\right)}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + t\_3}\\
\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 32.3%
associate-/l*62.4%
associate-/l*62.3%
Simplified62.3%
clear-num62.1%
un-div-inv62.2%
Applied egg-rr62.2%
Taylor expanded in x around 0 54.4%
times-frac93.4%
associate-/l*77.1%
Simplified77.1%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 84.4%
*-commutative84.4%
associate-/l*86.7%
Applied egg-rr86.7%
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*12.2%
fma-define12.2%
Simplified12.2%
Taylor expanded in y around inf 96.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7.6e-135) (not (<= t 1.18e-67))) (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t)))) (+ (/ z b) (/ (* x t) (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.6e-135) || !(t <= 1.18e-67)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-7.6d-135)) .or. (.not. (t <= 1.18d-67))) then
tmp = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
else
tmp = (z / b) + ((x * t) / (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7.6e-135) || !(t <= 1.18e-67)) {
tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -7.6e-135) or not (t <= 1.18e-67): tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))) else: tmp = (z / b) + ((x * t) / (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7.6e-135) || !(t <= 1.18e-67)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -7.6e-135) || ~((t <= 1.18e-67))) tmp = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); else tmp = (z / b) + ((x * t) / (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7.6e-135], N[Not[LessEqual[t, 1.18e-67]], $MachinePrecision]], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.6 \cdot 10^{-135} \lor \neg \left(t \leq 1.18 \cdot 10^{-67}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\end{array}
\end{array}
if t < -7.6000000000000005e-135 or 1.18e-67 < t Initial program 77.7%
associate-/l*84.2%
associate-/l*90.1%
Simplified90.1%
if -7.6000000000000005e-135 < t < 1.18e-67Initial program 56.7%
+-commutative56.7%
associate-/l*43.8%
fma-define43.8%
+-commutative43.8%
associate-/l*39.3%
fma-define39.3%
Simplified39.3%
Taylor expanded in b around inf 42.6%
Taylor expanded in t around 0 71.5%
Final simplification84.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.62e-83) (not (<= t 1.8e-21))) (/ (+ x (* y (/ z t))) (+ a 1.0)) (+ (/ z b) (/ (* x t) (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.62e-83) || !(t <= 1.8e-21)) {
tmp = (x + (y * (z / t))) / (a + 1.0);
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t <= (-1.62d-83)) .or. (.not. (t <= 1.8d-21))) then
tmp = (x + (y * (z / t))) / (a + 1.0d0)
else
tmp = (z / b) + ((x * t) / (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.62e-83) || !(t <= 1.8e-21)) {
tmp = (x + (y * (z / t))) / (a + 1.0);
} else {
tmp = (z / b) + ((x * t) / (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.62e-83) or not (t <= 1.8e-21): tmp = (x + (y * (z / t))) / (a + 1.0) else: tmp = (z / b) + ((x * t) / (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.62e-83) || !(t <= 1.8e-21)) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(a + 1.0)); else tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.62e-83) || ~((t <= 1.8e-21))) tmp = (x + (y * (z / t))) / (a + 1.0); else tmp = (z / b) + ((x * t) / (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.62e-83], N[Not[LessEqual[t, 1.8e-21]], $MachinePrecision]], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.62 \cdot 10^{-83} \lor \neg \left(t \leq 1.8 \cdot 10^{-21}\right):\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\end{array}
\end{array}
if t < -1.6199999999999999e-83 or 1.79999999999999995e-21 < t Initial program 77.4%
+-commutative77.4%
associate-/l*84.7%
fma-define84.7%
+-commutative84.7%
associate-/l*91.3%
fma-define91.3%
Simplified91.3%
Taylor expanded in b around 0 69.8%
associate-*r/76.6%
*-commutative76.6%
Applied egg-rr76.6%
if -1.6199999999999999e-83 < t < 1.79999999999999995e-21Initial program 60.9%
+-commutative60.9%
associate-/l*50.4%
fma-define50.4%
+-commutative50.4%
associate-/l*46.7%
fma-define46.8%
Simplified46.8%
Taylor expanded in b around inf 45.2%
Taylor expanded in t around 0 69.7%
Final simplification73.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6800000000.0) (not (<= y 6.2e+52))) (/ (+ z (/ (* x t) y)) b) (/ x (+ 1.0 (+ a (/ (* y b) t))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6800000000.0) || !(y <= 6.2e+52)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = x / (1.0 + (a + ((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 <= (-6800000000.0d0)) .or. (.not. (y <= 6.2d+52))) then
tmp = (z + ((x * t) / y)) / b
else
tmp = x / (1.0d0 + (a + ((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 <= -6800000000.0) || !(y <= 6.2e+52)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = x / (1.0 + (a + ((y * b) / t)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6800000000.0) or not (y <= 6.2e+52): tmp = (z + ((x * t) / y)) / b else: tmp = x / (1.0 + (a + ((y * b) / t))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6800000000.0) || !(y <= 6.2e+52)) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6800000000.0) || ~((y <= 6.2e+52))) tmp = (z + ((x * t) / y)) / b; else tmp = x / (1.0 + (a + ((y * b) / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6800000000.0], N[Not[LessEqual[y, 6.2e+52]], $MachinePrecision]], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6800000000 \lor \neg \left(y \leq 6.2 \cdot 10^{+52}\right):\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\end{array}
\end{array}
if y < -6.8e9 or 6.2e52 < y Initial program 43.0%
+-commutative43.0%
associate-/l*52.2%
fma-define52.2%
+-commutative52.2%
associate-/l*61.5%
fma-define61.5%
Simplified61.5%
Taylor expanded in t around 0 49.9%
Taylor expanded in b around inf 64.5%
if -6.8e9 < y < 6.2e52Initial program 93.6%
+-commutative93.6%
associate-/l*87.1%
fma-define87.1%
+-commutative87.1%
associate-/l*84.5%
fma-define84.5%
Simplified84.5%
Taylor expanded in z around 0 71.0%
Final simplification68.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3e+84)
(+ (/ z b) (/ (* x t) (* y b)))
(if (<= b 7.2e-5)
(/ (+ x (* z (/ y t))) (+ 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 (b <= -3e+84) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (b <= 7.2e-5) {
tmp = (x + (z * (y / t))) / (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 (b <= (-3d+84)) then
tmp = (z / b) + ((x * t) / (y * b))
else if (b <= 7.2d-5) then
tmp = (x + (z * (y / t))) / (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 (b <= -3e+84) {
tmp = (z / b) + ((x * t) / (y * b));
} else if (b <= 7.2e-5) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else {
tmp = (z + ((x * t) / y)) / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3e+84: tmp = (z / b) + ((x * t) / (y * b)) elif b <= 7.2e-5: tmp = (x + (z * (y / t))) / (a + 1.0) else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3e+84) tmp = Float64(Float64(z / b) + Float64(Float64(x * t) / Float64(y * b))); elseif (b <= 7.2e-5) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / 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 (b <= -3e+84) tmp = (z / b) + ((x * t) / (y * b)); elseif (b <= 7.2e-5) tmp = (x + (z * (y / t))) / (a + 1.0); else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3e+84], N[(N[(z / b), $MachinePrecision] + N[(N[(x * t), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-5], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 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}\;b \leq -3 \cdot 10^{+84}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot t}{y \cdot b}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-5}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if b < -2.99999999999999996e84Initial program 54.2%
+-commutative54.2%
associate-/l*52.2%
fma-define52.2%
+-commutative52.2%
associate-/l*64.9%
fma-define64.9%
Simplified64.9%
Taylor expanded in b around inf 25.9%
Taylor expanded in t around 0 60.1%
if -2.99999999999999996e84 < b < 7.20000000000000018e-5Initial program 82.0%
+-commutative82.0%
associate-/l*85.9%
fma-define85.9%
+-commutative85.9%
associate-/l*85.9%
fma-define86.0%
Simplified86.0%
Taylor expanded in b around 0 71.8%
*-commutative71.8%
associate-/l*78.3%
Applied egg-rr78.3%
if 7.20000000000000018e-5 < b Initial program 55.8%
+-commutative55.8%
associate-/l*49.3%
fma-define49.3%
+-commutative49.3%
associate-/l*50.8%
fma-define50.8%
Simplified50.8%
Taylor expanded in t around 0 63.7%
Taylor expanded in b around inf 71.1%
Final simplification73.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -950000.0) (not (<= y 13500000000.0))) (/ (+ z (/ (* x t) y)) b) (/ x (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -950000.0) || !(y <= 13500000000.0)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = x / (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 ((y <= (-950000.0d0)) .or. (.not. (y <= 13500000000.0d0))) then
tmp = (z + ((x * t) / y)) / b
else
tmp = x / (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 ((y <= -950000.0) || !(y <= 13500000000.0)) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -950000.0) or not (y <= 13500000000.0): tmp = (z + ((x * t) / y)) / b else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -950000.0) || !(y <= 13500000000.0)) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(x / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -950000.0) || ~((y <= 13500000000.0))) tmp = (z + ((x * t) / y)) / b; else tmp = x / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -950000.0], N[Not[LessEqual[y, 13500000000.0]], $MachinePrecision]], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -950000 \lor \neg \left(y \leq 13500000000\right):\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -9.5e5 or 1.35e10 < y Initial program 45.1%
+-commutative45.1%
associate-/l*54.6%
fma-define54.6%
+-commutative54.6%
associate-/l*63.4%
fma-define63.4%
Simplified63.4%
Taylor expanded in t around 0 48.3%
Taylor expanded in b around inf 63.8%
if -9.5e5 < y < 1.35e10Initial program 94.1%
+-commutative94.1%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*83.8%
fma-define83.9%
Simplified83.9%
Taylor expanded in y around 0 63.7%
Final simplification63.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -26500000.0) (not (<= y 8.5e+15))) (/ z b) (/ x (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -26500000.0) || !(y <= 8.5e+15)) {
tmp = z / b;
} else {
tmp = x / (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 ((y <= (-26500000.0d0)) .or. (.not. (y <= 8.5d+15))) then
tmp = z / b
else
tmp = x / (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 ((y <= -26500000.0) || !(y <= 8.5e+15)) {
tmp = z / b;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -26500000.0) or not (y <= 8.5e+15): tmp = z / b else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -26500000.0) || !(y <= 8.5e+15)) tmp = Float64(z / b); else tmp = Float64(x / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -26500000.0) || ~((y <= 8.5e+15))) tmp = z / b; else tmp = x / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -26500000.0], N[Not[LessEqual[y, 8.5e+15]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -26500000 \lor \neg \left(y \leq 8.5 \cdot 10^{+15}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -2.65e7 or 8.5e15 < y Initial program 45.1%
+-commutative45.1%
associate-/l*54.6%
fma-define54.6%
+-commutative54.6%
associate-/l*63.4%
fma-define63.4%
Simplified63.4%
Taylor expanded in y around inf 54.1%
if -2.65e7 < y < 8.5e15Initial program 94.1%
+-commutative94.1%
associate-/l*86.5%
fma-define86.5%
+-commutative86.5%
associate-/l*83.8%
fma-define83.9%
Simplified83.9%
Taylor expanded in y around 0 63.7%
Final simplification59.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -135000.0) (not (<= y 2.2e-33))) (/ z b) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -135000.0) || !(y <= 2.2e-33)) {
tmp = z / b;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-135000.0d0)) .or. (.not. (y <= 2.2d-33))) then
tmp = z / b
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -135000.0) || !(y <= 2.2e-33)) {
tmp = z / b;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -135000.0) or not (y <= 2.2e-33): tmp = z / b else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -135000.0) || !(y <= 2.2e-33)) tmp = Float64(z / b); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -135000.0) || ~((y <= 2.2e-33))) tmp = z / b; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -135000.0], N[Not[LessEqual[y, 2.2e-33]], $MachinePrecision]], N[(z / b), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -135000 \lor \neg \left(y \leq 2.2 \cdot 10^{-33}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -135000 or 2.20000000000000005e-33 < y Initial program 49.3%
+-commutative49.3%
associate-/l*58.0%
fma-define58.0%
+-commutative58.0%
associate-/l*66.0%
fma-define66.0%
Simplified66.0%
Taylor expanded in y around inf 51.7%
if -135000 < y < 2.20000000000000005e-33Initial program 94.3%
associate-/l*86.0%
associate-/l*83.1%
Simplified83.1%
clear-num83.1%
un-div-inv83.1%
Applied egg-rr83.1%
Taylor expanded in a around 0 52.2%
Taylor expanded in y around 0 38.5%
Final simplification45.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -0.08) (not (<= a 4.1e-8))) (/ x a) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -0.08) || !(a <= 4.1e-8)) {
tmp = x / a;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a <= (-0.08d0)) .or. (.not. (a <= 4.1d-8))) then
tmp = x / a
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -0.08) || !(a <= 4.1e-8)) {
tmp = x / a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -0.08) or not (a <= 4.1e-8): tmp = x / a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -0.08) || !(a <= 4.1e-8)) tmp = Float64(x / a); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -0.08) || ~((a <= 4.1e-8))) tmp = x / a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -0.08], N[Not[LessEqual[a, 4.1e-8]], $MachinePrecision]], N[(x / a), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.08 \lor \neg \left(a \leq 4.1 \cdot 10^{-8}\right):\\
\;\;\;\;\frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -0.0800000000000000017 or 4.10000000000000032e-8 < a Initial program 68.6%
+-commutative68.6%
associate-/l*72.8%
fma-define72.8%
+-commutative72.8%
associate-/l*73.9%
fma-define73.9%
Simplified73.9%
Taylor expanded in a around inf 57.4%
Taylor expanded in x around inf 43.1%
if -0.0800000000000000017 < a < 4.10000000000000032e-8Initial program 73.3%
associate-/l*70.5%
associate-/l*74.6%
Simplified74.6%
clear-num74.5%
un-div-inv74.6%
Applied egg-rr74.6%
Taylor expanded in a around 0 74.1%
Taylor expanded in y around 0 38.8%
Final simplification40.8%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 71.1%
associate-/l*71.6%
associate-/l*74.3%
Simplified74.3%
clear-num74.2%
un-div-inv74.2%
Applied egg-rr74.2%
Taylor expanded in a around 0 47.5%
Taylor expanded in y around 0 22.4%
(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 2024143
(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))))