
(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 17 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 (/ (+ x (/ (* y z) t)) (+ t_1 (+ a 1.0))))
(t_3 (+ 1.0 (+ a t_1)))
(t_4 (* z (+ (/ x (* z t_3)) (/ y (* t t_3))))))
(if (<= t_2 (- INFINITY))
t_4
(if (<= t_2 -5e-314)
t_2
(if (<= t_2 0.0)
(+ (/ z b) (/ (* t (+ (/ x b) (/ (* z (- -1.0 a)) (pow b 2.0)))) y))
(if (<= t_2 1e+277) t_2 (if (<= t_2 INFINITY) t_4 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_3 = 1.0 + (a + t_1);
double t_4 = z * ((x / (z * t_3)) + (y / (t * t_3)));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_4;
} else if (t_2 <= -5e-314) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * ((x / b) + ((z * (-1.0 - a)) / pow(b, 2.0)))) / y);
} else if (t_2 <= 1e+277) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_3 = 1.0 + (a + t_1);
double t_4 = z * ((x / (z * t_3)) + (y / (t * t_3)));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_4;
} else if (t_2 <= -5e-314) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * ((x / b) + ((z * (-1.0 - a)) / Math.pow(b, 2.0)))) / y);
} else if (t_2 <= 1e+277) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)) t_3 = 1.0 + (a + t_1) t_4 = z * ((x / (z * t_3)) + (y / (t * t_3))) tmp = 0 if t_2 <= -math.inf: tmp = t_4 elif t_2 <= -5e-314: tmp = t_2 elif t_2 <= 0.0: tmp = (z / b) + ((t * ((x / b) + ((z * (-1.0 - a)) / math.pow(b, 2.0)))) / y) elif t_2 <= 1e+277: tmp = t_2 elif t_2 <= math.inf: tmp = t_4 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(t_1 + Float64(a + 1.0))) t_3 = Float64(1.0 + Float64(a + t_1)) t_4 = Float64(z * Float64(Float64(x / Float64(z * t_3)) + Float64(y / Float64(t * t_3)))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_4; elseif (t_2 <= -5e-314) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(Float64(z / b) + Float64(Float64(t * Float64(Float64(x / b) + Float64(Float64(z * Float64(-1.0 - a)) / (b ^ 2.0)))) / y)); elseif (t_2 <= 1e+277) tmp = t_2; elseif (t_2 <= Inf) tmp = t_4; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * b) / t; t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)); t_3 = 1.0 + (a + t_1); t_4 = z * ((x / (z * t_3)) + (y / (t * t_3))); tmp = 0.0; if (t_2 <= -Inf) tmp = t_4; elseif (t_2 <= -5e-314) tmp = t_2; elseif (t_2 <= 0.0) tmp = (z / b) + ((t * ((x / b) + ((z * (-1.0 - a)) / (b ^ 2.0)))) / y); elseif (t_2 <= 1e+277) tmp = t_2; elseif (t_2 <= Inf) tmp = t_4; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x / N[(z * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$4, If[LessEqual[t$95$2, -5e-314], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(z / b), $MachinePrecision] + N[(N[(t * N[(N[(x / b), $MachinePrecision] + N[(N[(z * N[(-1.0 - a), $MachinePrecision]), $MachinePrecision] / N[Power[b, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+277], t$95$2, If[LessEqual[t$95$2, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\
t_3 := 1 + \left(a + t\_1\right)\\
t_4 := z \cdot \left(\frac{x}{z \cdot t\_3} + \frac{y}{t \cdot t\_3}\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-314}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{z}{b} + \frac{t \cdot \left(\frac{x}{b} + \frac{z \cdot \left(-1 - a\right)}{{b}^{2}}\right)}{y}\\
\mathbf{elif}\;t\_2 \leq 10^{+277}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0 or 1e277 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 26.8%
associate-/l*48.0%
associate-/l*47.9%
Simplified47.9%
Taylor expanded in z around inf 86.1%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999982e-314 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1e277Initial program 99.2%
if -4.99999999982e-314 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 47.7%
associate-/l*47.4%
associate-/l*62.4%
Simplified62.4%
Taylor expanded in y around -inf 63.2%
+-commutative63.2%
associate-*r/63.2%
Simplified68.2%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
associate-/l*0.5%
associate-/l*14.1%
Simplified14.1%
Taylor expanded in y around inf 95.6%
Final simplification92.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* y b) t))
(t_2 (/ (+ x (/ (* y z) t)) (+ t_1 (+ a 1.0))))
(t_3 (+ 1.0 (+ a t_1)))
(t_4 (* z (+ (/ x (* z t_3)) (/ y (* t t_3))))))
(if (<= t_2 (- INFINITY))
t_4
(if (<= t_2 -5e-314)
t_2
(if (<= t_2 0.0)
(* x (+ (/ 1.0 (+ (+ a 1.0) (* b (/ y t)))) (/ (/ z b) x)))
(if (<= t_2 1e+277) t_2 (if (<= t_2 INFINITY) t_4 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_3 = 1.0 + (a + t_1);
double t_4 = z * ((x / (z * t_3)) + (y / (t * t_3)));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_4;
} else if (t_2 <= -5e-314) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = x * ((1.0 / ((a + 1.0) + (b * (y / t)))) + ((z / b) / x));
} else if (t_2 <= 1e+277) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * b) / t;
double t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0));
double t_3 = 1.0 + (a + t_1);
double t_4 = z * ((x / (z * t_3)) + (y / (t * t_3)));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_4;
} else if (t_2 <= -5e-314) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = x * ((1.0 / ((a + 1.0) + (b * (y / t)))) + ((z / b) / x));
} else if (t_2 <= 1e+277) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * b) / t t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)) t_3 = 1.0 + (a + t_1) t_4 = z * ((x / (z * t_3)) + (y / (t * t_3))) tmp = 0 if t_2 <= -math.inf: tmp = t_4 elif t_2 <= -5e-314: tmp = t_2 elif t_2 <= 0.0: tmp = x * ((1.0 / ((a + 1.0) + (b * (y / t)))) + ((z / b) / x)) elif t_2 <= 1e+277: tmp = t_2 elif t_2 <= math.inf: tmp = t_4 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * b) / t) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(t_1 + Float64(a + 1.0))) t_3 = Float64(1.0 + Float64(a + t_1)) t_4 = Float64(z * Float64(Float64(x / Float64(z * t_3)) + Float64(y / Float64(t * t_3)))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_4; elseif (t_2 <= -5e-314) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(x * Float64(Float64(1.0 / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))) + Float64(Float64(z / b) / x))); elseif (t_2 <= 1e+277) tmp = t_2; elseif (t_2 <= Inf) tmp = t_4; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * b) / t; t_2 = (x + ((y * z) / t)) / (t_1 + (a + 1.0)); t_3 = 1.0 + (a + t_1); t_4 = z * ((x / (z * t_3)) + (y / (t * t_3))); tmp = 0.0; if (t_2 <= -Inf) tmp = t_4; elseif (t_2 <= -5e-314) tmp = t_2; elseif (t_2 <= 0.0) tmp = x * ((1.0 / ((a + 1.0) + (b * (y / t)))) + ((z / b) / x)); elseif (t_2 <= 1e+277) tmp = t_2; elseif (t_2 <= Inf) tmp = t_4; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(1.0 + N[(a + t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x / N[(z * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$4, If[LessEqual[t$95$2, -5e-314], t$95$2, If[LessEqual[t$95$2, 0.0], N[(x * N[(N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z / b), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+277], t$95$2, If[LessEqual[t$95$2, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t}\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{t\_1 + \left(a + 1\right)}\\
t_3 := 1 + \left(a + t\_1\right)\\
t_4 := z \cdot \left(\frac{x}{z \cdot t\_3} + \frac{y}{t \cdot t\_3}\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-314}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;x \cdot \left(\frac{1}{\left(a + 1\right) + b \cdot \frac{y}{t}} + \frac{\frac{z}{b}}{x}\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+277}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0 or 1e277 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 26.8%
associate-/l*48.0%
associate-/l*47.9%
Simplified47.9%
Taylor expanded in z around inf 86.1%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999982e-314 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1e277Initial program 99.2%
if -4.99999999982e-314 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 47.7%
associate-/l*47.4%
associate-/l*62.4%
Simplified62.4%
Taylor expanded in x around inf 47.7%
associate-+r+47.7%
associate-*r/57.7%
associate-/l*57.7%
*-commutative57.7%
associate-+r+57.7%
associate-*r/61.1%
Simplified61.1%
Taylor expanded in y around inf 67.3%
associate-/r*67.3%
Simplified67.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%
associate-/l*0.5%
associate-/l*14.1%
Simplified14.1%
Taylor expanded in y around inf 95.6%
Final simplification92.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (+ a 1.0) (* b (/ y t))))
(t_2 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
(if (<= t_2 (- INFINITY))
(/ (* y z) (+ (* y b) (* t (+ a 1.0))))
(if (<= t_2 -5e-314)
t_2
(if (<= t_2 0.0)
(* x (+ (/ 1.0 t_1) (/ (/ z b) x)))
(if (<= t_2 1e+277)
t_2
(if (<= t_2 INFINITY) (* (/ y t) (/ z t_1)) (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + 1.0) + (b * (y / t));
double t_2 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
} else if (t_2 <= -5e-314) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = x * ((1.0 / t_1) + ((z / b) / x));
} else if (t_2 <= 1e+277) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = (y / t) * (z / 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 = (a + 1.0) + (b * (y / t));
double t_2 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = (y * z) / ((y * b) + (t * (a + 1.0)));
} else if (t_2 <= -5e-314) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = x * ((1.0 / t_1) + ((z / b) / x));
} else if (t_2 <= 1e+277) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = (y / t) * (z / t_1);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a + 1.0) + (b * (y / t)) t_2 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0)) tmp = 0 if t_2 <= -math.inf: tmp = (y * z) / ((y * b) + (t * (a + 1.0))) elif t_2 <= -5e-314: tmp = t_2 elif t_2 <= 0.0: tmp = x * ((1.0 / t_1) + ((z / b) / x)) elif t_2 <= 1e+277: tmp = t_2 elif t_2 <= math.inf: tmp = (y / t) * (z / t_1) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a + 1.0) + Float64(b * Float64(y / t))) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * Float64(a + 1.0)))); elseif (t_2 <= -5e-314) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(x * Float64(Float64(1.0 / t_1) + Float64(Float64(z / b) / x))); elseif (t_2 <= 1e+277) tmp = t_2; elseif (t_2 <= Inf) tmp = Float64(Float64(y / t) * Float64(z / t_1)); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a + 1.0) + (b * (y / t)); t_2 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0)); tmp = 0.0; if (t_2 <= -Inf) tmp = (y * z) / ((y * b) + (t * (a + 1.0))); elseif (t_2 <= -5e-314) tmp = t_2; elseif (t_2 <= 0.0) tmp = x * ((1.0 / t_1) + ((z / b) / x)); elseif (t_2 <= 1e+277) tmp = t_2; elseif (t_2 <= Inf) tmp = (y / t) * (z / t_1); else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -5e-314], t$95$2, If[LessEqual[t$95$2, 0.0], N[(x * N[(N[(1.0 / t$95$1), $MachinePrecision] + N[(N[(z / b), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+277], t$95$2, If[LessEqual[t$95$2, Infinity], N[(N[(y / t), $MachinePrecision] * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 1\right) + b \cdot \frac{y}{t}\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;\frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-314}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;x \cdot \left(\frac{1}{t\_1} + \frac{\frac{z}{b}}{x}\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+277}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 31.9%
associate-/l*53.4%
associate-/l*53.2%
Simplified53.2%
Taylor expanded in x around 0 67.8%
Taylor expanded in t around 0 67.8%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999982e-314 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1e277Initial program 99.2%
if -4.99999999982e-314 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 47.7%
associate-/l*47.4%
associate-/l*62.4%
Simplified62.4%
Taylor expanded in x around inf 47.7%
associate-+r+47.7%
associate-*r/57.7%
associate-/l*57.7%
*-commutative57.7%
associate-+r+57.7%
associate-*r/61.1%
Simplified61.1%
Taylor expanded in y around inf 67.3%
associate-/r*67.3%
Simplified67.3%
if 1e277 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 21.6%
associate-/l*42.7%
associate-/l*42.7%
Simplified42.7%
Taylor expanded in x around 0 57.3%
times-frac88.9%
associate-+r+88.9%
associate-*r/82.8%
Simplified82.8%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
associate-/l*0.5%
associate-/l*14.1%
Simplified14.1%
Taylor expanded in y around inf 95.6%
Final simplification90.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0))))
(t_2 (/ (* y z) (+ (* y b) (* t (+ a 1.0))))))
(if (<= t_1 (- INFINITY))
t_2
(if (<= t_1 -5e-314)
t_1
(if (<= t_1 0.0)
t_2
(if (<= t_1 1e+277)
t_1
(if (<= t_1 INFINITY)
(* (/ y t) (/ z (+ (+ 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)) / (((y * b) / t) + (a + 1.0));
double t_2 = (y * z) / ((y * b) + (t * (a + 1.0)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = t_2;
} else if (t_1 <= -5e-314) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t_2;
} else if (t_1 <= 1e+277) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (y / t) * (z / ((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)) / (((y * b) / t) + (a + 1.0));
double t_2 = (y * z) / ((y * b) + (t * (a + 1.0)));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = t_2;
} else if (t_1 <= -5e-314) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t_2;
} else if (t_1 <= 1e+277) {
tmp = t_1;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = (y / t) * (z / ((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)) / (((y * b) / t) + (a + 1.0)) t_2 = (y * z) / ((y * b) + (t * (a + 1.0))) tmp = 0 if t_1 <= -math.inf: tmp = t_2 elif t_1 <= -5e-314: tmp = t_1 elif t_1 <= 0.0: tmp = t_2 elif t_1 <= 1e+277: tmp = t_1 elif t_1 <= math.inf: tmp = (y / t) * (z / ((a + 1.0) + (b * (y / t)))) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))) t_2 = Float64(Float64(y * z) / Float64(Float64(y * b) + Float64(t * Float64(a + 1.0)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = t_2; elseif (t_1 <= -5e-314) tmp = t_1; elseif (t_1 <= 0.0) tmp = t_2; elseif (t_1 <= 1e+277) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(Float64(y / t) * Float64(z / 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)) / (((y * b) / t) + (a + 1.0)); t_2 = (y * z) / ((y * b) + (t * (a + 1.0))); tmp = 0.0; if (t_1 <= -Inf) tmp = t_2; elseif (t_1 <= -5e-314) tmp = t_1; elseif (t_1 <= 0.0) tmp = t_2; elseif (t_1 <= 1e+277) tmp = t_1; elseif (t_1 <= Inf) tmp = (y / t) * (z / ((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[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * z), $MachinePrecision] / N[(N[(y * b), $MachinePrecision] + N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$2, If[LessEqual[t$95$1, -5e-314], t$95$1, If[LessEqual[t$95$1, 0.0], t$95$2, If[LessEqual[t$95$1, 1e+277], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[(y / t), $MachinePrecision] * N[(z / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
t_2 := \frac{y \cdot z}{y \cdot b + t \cdot \left(a + 1\right)}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-314}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 10^{+277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{\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.0 or -4.99999999982e-314 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 42.6%
associate-/l*49.3%
associate-/l*59.4%
Simplified59.4%
Taylor expanded in x around 0 54.2%
Taylor expanded in t around 0 66.4%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999982e-314 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1e277Initial program 99.2%
if 1e277 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 21.6%
associate-/l*42.7%
associate-/l*42.7%
Simplified42.7%
Taylor expanded in x around 0 57.3%
times-frac88.9%
associate-+r+88.9%
associate-*r/82.8%
Simplified82.8%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
associate-/l*0.5%
associate-/l*14.1%
Simplified14.1%
Taylor expanded in y around inf 95.6%
Final simplification90.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* y (/ z t))) (+ (+ a 1.0) (* y (/ b t))))))
(if (<= t -5.2e-196)
t_1
(if (<= t -3.35e-223)
(/ (* x (+ (/ t y) (/ z x))) b)
(if (or (<= t -1.55e-242) (not (<= t 2.6e-171)))
t_1
(/ (+ z (/ (* x t) y)) 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 <= -5.2e-196) {
tmp = t_1;
} else if (t <= -3.35e-223) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if ((t <= -1.55e-242) || !(t <= 2.6e-171)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (x + (y * (z / t))) / ((a + 1.0d0) + (y * (b / t)))
if (t <= (-5.2d-196)) then
tmp = t_1
else if (t <= (-3.35d-223)) then
tmp = (x * ((t / y) + (z / x))) / b
else if ((t <= (-1.55d-242)) .or. (.not. (t <= 2.6d-171))) then
tmp = t_1
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 t_1 = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t)));
double tmp;
if (t <= -5.2e-196) {
tmp = t_1;
} else if (t <= -3.35e-223) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if ((t <= -1.55e-242) || !(t <= 2.6e-171)) {
tmp = t_1;
} else {
tmp = (z + ((x * t) / y)) / 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 <= -5.2e-196: tmp = t_1 elif t <= -3.35e-223: tmp = (x * ((t / y) + (z / x))) / b elif (t <= -1.55e-242) or not (t <= 2.6e-171): tmp = t_1 else: tmp = (z + ((x * t) / y)) / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(y * Float64(z / t))) / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))) tmp = 0.0 if (t <= -5.2e-196) tmp = t_1; elseif (t <= -3.35e-223) tmp = Float64(Float64(x * Float64(Float64(t / y) + Float64(z / x))) / b); elseif ((t <= -1.55e-242) || !(t <= 2.6e-171)) tmp = t_1; 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) t_1 = (x + (y * (z / t))) / ((a + 1.0) + (y * (b / t))); tmp = 0.0; if (t <= -5.2e-196) tmp = t_1; elseif (t <= -3.35e-223) tmp = (x * ((t / y) + (z / x))) / b; elseif ((t <= -1.55e-242) || ~((t <= 2.6e-171))) tmp = t_1; else tmp = (z + ((x * t) / y)) / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e-196], t$95$1, If[LessEqual[t, -3.35e-223], N[(N[(x * N[(N[(t / y), $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[Or[LessEqual[t, -1.55e-242], N[Not[LessEqual[t, 2.6e-171]], $MachinePrecision]], t$95$1, N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + y \cdot \frac{z}{t}}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{-196}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.35 \cdot 10^{-223}:\\
\;\;\;\;\frac{x \cdot \left(\frac{t}{y} + \frac{z}{x}\right)}{b}\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-242} \lor \neg \left(t \leq 2.6 \cdot 10^{-171}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\end{array}
\end{array}
if t < -5.1999999999999996e-196 or -3.3500000000000001e-223 < t < -1.55000000000000008e-242 or 2.60000000000000005e-171 < t Initial program 81.3%
associate-/l*80.9%
associate-/l*84.0%
Simplified84.0%
if -5.1999999999999996e-196 < t < -3.3500000000000001e-223Initial program 24.1%
associate-/l*23.6%
associate-/l*23.6%
Simplified23.6%
Taylor expanded in x around inf 47.2%
associate-+r+47.2%
associate-*r/47.2%
associate-/l*47.0%
*-commutative47.0%
associate-+r+47.0%
associate-*r/36.3%
Simplified36.3%
Taylor expanded in b around inf 88.6%
if -1.55000000000000008e-242 < t < 2.60000000000000005e-171Initial program 38.2%
associate-/l*37.9%
associate-/l*27.3%
Simplified27.3%
Taylor expanded in x around inf 29.6%
associate-+r+29.6%
associate-*r/29.6%
associate-/l*29.9%
*-commutative29.9%
associate-+r+29.9%
associate-*r/27.1%
Simplified27.1%
Taylor expanded in b around inf 72.1%
Taylor expanded in x around 0 84.9%
Final simplification84.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (+ a 1.0) (* y (/ b t)))) (t_2 (+ x (/ y (/ t z)))))
(if (<= t -7.5e-195)
(/ (+ x (* y (/ z t))) t_1)
(if (<= t -4.5e-223)
(/ (* x (+ (/ t y) (/ z x))) b)
(if (<= t -1.55e-242)
(/ t_2 t_1)
(if (<= t 1.95e-171)
(/ (+ z (/ (* x t) y)) b)
(/ t_2 (+ (+ a 1.0) (/ y (/ t b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + 1.0) + (y * (b / t));
double t_2 = x + (y / (t / z));
double tmp;
if (t <= -7.5e-195) {
tmp = (x + (y * (z / t))) / t_1;
} else if (t <= -4.5e-223) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if (t <= -1.55e-242) {
tmp = t_2 / t_1;
} else if (t <= 1.95e-171) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_2 / ((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) :: t_2
real(8) :: tmp
t_1 = (a + 1.0d0) + (y * (b / t))
t_2 = x + (y / (t / z))
if (t <= (-7.5d-195)) then
tmp = (x + (y * (z / t))) / t_1
else if (t <= (-4.5d-223)) then
tmp = (x * ((t / y) + (z / x))) / b
else if (t <= (-1.55d-242)) then
tmp = t_2 / t_1
else if (t <= 1.95d-171) then
tmp = (z + ((x * t) / y)) / b
else
tmp = t_2 / ((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 = (a + 1.0) + (y * (b / t));
double t_2 = x + (y / (t / z));
double tmp;
if (t <= -7.5e-195) {
tmp = (x + (y * (z / t))) / t_1;
} else if (t <= -4.5e-223) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if (t <= -1.55e-242) {
tmp = t_2 / t_1;
} else if (t <= 1.95e-171) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_2 / ((a + 1.0) + (y / (t / b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a + 1.0) + (y * (b / t)) t_2 = x + (y / (t / z)) tmp = 0 if t <= -7.5e-195: tmp = (x + (y * (z / t))) / t_1 elif t <= -4.5e-223: tmp = (x * ((t / y) + (z / x))) / b elif t <= -1.55e-242: tmp = t_2 / t_1 elif t <= 1.95e-171: tmp = (z + ((x * t) / y)) / b else: tmp = t_2 / ((a + 1.0) + (y / (t / b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a + 1.0) + Float64(y * Float64(b / t))) t_2 = Float64(x + Float64(y / Float64(t / z))) tmp = 0.0 if (t <= -7.5e-195) tmp = Float64(Float64(x + Float64(y * Float64(z / t))) / t_1); elseif (t <= -4.5e-223) tmp = Float64(Float64(x * Float64(Float64(t / y) + Float64(z / x))) / b); elseif (t <= -1.55e-242) tmp = Float64(t_2 / t_1); elseif (t <= 1.95e-171) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(t_2 / 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 = (a + 1.0) + (y * (b / t)); t_2 = x + (y / (t / z)); tmp = 0.0; if (t <= -7.5e-195) tmp = (x + (y * (z / t))) / t_1; elseif (t <= -4.5e-223) tmp = (x * ((t / y) + (z / x))) / b; elseif (t <= -1.55e-242) tmp = t_2 / t_1; elseif (t <= 1.95e-171) tmp = (z + ((x * t) / y)) / b; else tmp = t_2 / ((a + 1.0) + (y / (t / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e-195], N[(N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t, -4.5e-223], N[(N[(x * N[(N[(t / y), $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t, -1.55e-242], N[(t$95$2 / t$95$1), $MachinePrecision], If[LessEqual[t, 1.95e-171], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(t$95$2 / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 1\right) + y \cdot \frac{b}{t}\\
t_2 := x + \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{-195}:\\
\;\;\;\;\frac{x + y \cdot \frac{z}{t}}{t\_1}\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{-223}:\\
\;\;\;\;\frac{x \cdot \left(\frac{t}{y} + \frac{z}{x}\right)}{b}\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-242}:\\
\;\;\;\;\frac{t\_2}{t\_1}\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-171}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_2}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if t < -7.5e-195Initial program 81.8%
associate-/l*81.1%
associate-/l*82.6%
Simplified82.6%
if -7.5e-195 < t < -4.49999999999999968e-223Initial program 24.1%
associate-/l*23.6%
associate-/l*23.6%
Simplified23.6%
Taylor expanded in x around inf 47.2%
associate-+r+47.2%
associate-*r/47.2%
associate-/l*47.0%
*-commutative47.0%
associate-+r+47.0%
associate-*r/36.3%
Simplified36.3%
Taylor expanded in b around inf 88.6%
if -4.49999999999999968e-223 < t < -1.55000000000000008e-242Initial program 100.0%
associate-/l*100.0%
associate-/l*100.0%
Simplified100.0%
clear-num100.0%
un-div-inv100.0%
Applied egg-rr100.0%
if -1.55000000000000008e-242 < t < 1.9499999999999999e-171Initial program 38.2%
associate-/l*37.9%
associate-/l*27.3%
Simplified27.3%
Taylor expanded in x around inf 29.6%
associate-+r+29.6%
associate-*r/29.6%
associate-/l*29.9%
*-commutative29.9%
associate-+r+29.9%
associate-*r/27.1%
Simplified27.1%
Taylor expanded in b around inf 72.1%
Taylor expanded in x around 0 84.9%
if 1.9499999999999999e-171 < t Initial program 79.0%
associate-/l*78.9%
associate-/l*84.7%
Simplified84.7%
clear-num84.6%
un-div-inv85.9%
Applied egg-rr85.9%
clear-num84.7%
un-div-inv85.6%
Applied egg-rr86.8%
Final simplification85.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (+ a 1.0) (* y (/ b t)))) (t_2 (+ x (* y (/ z t)))))
(if (<= t -2.1e-196)
(/ t_2 t_1)
(if (<= t -3.3e-221)
(/ (* x (+ (/ t y) (/ z x))) b)
(if (<= t -1.55e-242)
(/ (+ x (/ y (/ t z))) t_1)
(if (<= t 1.92e-171)
(/ (+ z (/ (* x t) y)) b)
(/ t_2 (+ (+ a 1.0) (/ y (/ t b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a + 1.0) + (y * (b / t));
double t_2 = x + (y * (z / t));
double tmp;
if (t <= -2.1e-196) {
tmp = t_2 / t_1;
} else if (t <= -3.3e-221) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if (t <= -1.55e-242) {
tmp = (x + (y / (t / z))) / t_1;
} else if (t <= 1.92e-171) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_2 / ((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) :: t_2
real(8) :: tmp
t_1 = (a + 1.0d0) + (y * (b / t))
t_2 = x + (y * (z / t))
if (t <= (-2.1d-196)) then
tmp = t_2 / t_1
else if (t <= (-3.3d-221)) then
tmp = (x * ((t / y) + (z / x))) / b
else if (t <= (-1.55d-242)) then
tmp = (x + (y / (t / z))) / t_1
else if (t <= 1.92d-171) then
tmp = (z + ((x * t) / y)) / b
else
tmp = t_2 / ((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 = (a + 1.0) + (y * (b / t));
double t_2 = x + (y * (z / t));
double tmp;
if (t <= -2.1e-196) {
tmp = t_2 / t_1;
} else if (t <= -3.3e-221) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if (t <= -1.55e-242) {
tmp = (x + (y / (t / z))) / t_1;
} else if (t <= 1.92e-171) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_2 / ((a + 1.0) + (y / (t / b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a + 1.0) + (y * (b / t)) t_2 = x + (y * (z / t)) tmp = 0 if t <= -2.1e-196: tmp = t_2 / t_1 elif t <= -3.3e-221: tmp = (x * ((t / y) + (z / x))) / b elif t <= -1.55e-242: tmp = (x + (y / (t / z))) / t_1 elif t <= 1.92e-171: tmp = (z + ((x * t) / y)) / b else: tmp = t_2 / ((a + 1.0) + (y / (t / b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a + 1.0) + Float64(y * Float64(b / t))) t_2 = Float64(x + Float64(y * Float64(z / t))) tmp = 0.0 if (t <= -2.1e-196) tmp = Float64(t_2 / t_1); elseif (t <= -3.3e-221) tmp = Float64(Float64(x * Float64(Float64(t / y) + Float64(z / x))) / b); elseif (t <= -1.55e-242) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / t_1); elseif (t <= 1.92e-171) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = Float64(t_2 / 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 = (a + 1.0) + (y * (b / t)); t_2 = x + (y * (z / t)); tmp = 0.0; if (t <= -2.1e-196) tmp = t_2 / t_1; elseif (t <= -3.3e-221) tmp = (x * ((t / y) + (z / x))) / b; elseif (t <= -1.55e-242) tmp = (x + (y / (t / z))) / t_1; elseif (t <= 1.92e-171) tmp = (z + ((x * t) / y)) / b; else tmp = t_2 / ((a + 1.0) + (y / (t / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.1e-196], N[(t$95$2 / t$95$1), $MachinePrecision], If[LessEqual[t, -3.3e-221], N[(N[(x * N[(N[(t / y), $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t, -1.55e-242], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t, 1.92e-171], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(t$95$2 / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 1\right) + y \cdot \frac{b}{t}\\
t_2 := x + y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{-196}:\\
\;\;\;\;\frac{t\_2}{t\_1}\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-221}:\\
\;\;\;\;\frac{x \cdot \left(\frac{t}{y} + \frac{z}{x}\right)}{b}\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-242}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{t\_1}\\
\mathbf{elif}\;t \leq 1.92 \cdot 10^{-171}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_2}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if t < -2.09999999999999988e-196Initial program 81.8%
associate-/l*81.1%
associate-/l*82.6%
Simplified82.6%
if -2.09999999999999988e-196 < t < -3.2999999999999999e-221Initial program 24.1%
associate-/l*23.6%
associate-/l*23.6%
Simplified23.6%
Taylor expanded in x around inf 47.2%
associate-+r+47.2%
associate-*r/47.2%
associate-/l*47.0%
*-commutative47.0%
associate-+r+47.0%
associate-*r/36.3%
Simplified36.3%
Taylor expanded in b around inf 88.6%
if -3.2999999999999999e-221 < t < -1.55000000000000008e-242Initial program 100.0%
associate-/l*100.0%
associate-/l*100.0%
Simplified100.0%
clear-num100.0%
un-div-inv100.0%
Applied egg-rr100.0%
if -1.55000000000000008e-242 < t < 1.9200000000000001e-171Initial program 38.2%
associate-/l*37.9%
associate-/l*27.3%
Simplified27.3%
Taylor expanded in x around inf 29.6%
associate-+r+29.6%
associate-*r/29.6%
associate-/l*29.9%
*-commutative29.9%
associate-+r+29.9%
associate-*r/27.1%
Simplified27.1%
Taylor expanded in b around inf 72.1%
Taylor expanded in x around 0 84.9%
if 1.9200000000000001e-171 < t Initial program 79.0%
associate-/l*78.9%
associate-/l*84.7%
Simplified84.7%
clear-num84.6%
un-div-inv85.9%
Applied egg-rr85.9%
Final simplification84.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))))))
(if (<= t -2.05e-197)
t_2
(if (<= t -1.35e-223)
(/ (* x (+ (/ t y) (/ z x))) b)
(if (<= t -1.55e-242)
t_2
(if (<= t 9e-172)
(/ (+ z (/ (* x t) y)) 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 + (y * (z / t));
double t_2 = t_1 / ((a + 1.0) + (y * (b / t)));
double tmp;
if (t <= -2.05e-197) {
tmp = t_2;
} else if (t <= -1.35e-223) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if (t <= -1.55e-242) {
tmp = t_2;
} else if (t <= 9e-172) {
tmp = (z + ((x * t) / y)) / 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) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / t))
t_2 = t_1 / ((a + 1.0d0) + (y * (b / t)))
if (t <= (-2.05d-197)) then
tmp = t_2
else if (t <= (-1.35d-223)) then
tmp = (x * ((t / y) + (z / x))) / b
else if (t <= (-1.55d-242)) then
tmp = t_2
else if (t <= 9d-172) then
tmp = (z + ((x * t) / y)) / 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 + (y * (z / t));
double t_2 = t_1 / ((a + 1.0) + (y * (b / t)));
double tmp;
if (t <= -2.05e-197) {
tmp = t_2;
} else if (t <= -1.35e-223) {
tmp = (x * ((t / y) + (z / x))) / b;
} else if (t <= -1.55e-242) {
tmp = t_2;
} else if (t <= 9e-172) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_1 / ((a + 1.0) + (y / (t / 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.05e-197: tmp = t_2 elif t <= -1.35e-223: tmp = (x * ((t / y) + (z / x))) / b elif t <= -1.55e-242: tmp = t_2 elif t <= 9e-172: tmp = (z + ((x * t) / y)) / 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(y * Float64(z / t))) t_2 = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(y * Float64(b / t)))) tmp = 0.0 if (t <= -2.05e-197) tmp = t_2; elseif (t <= -1.35e-223) tmp = Float64(Float64(x * Float64(Float64(t / y) + Float64(z / x))) / b); elseif (t <= -1.55e-242) tmp = t_2; elseif (t <= 9e-172) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / 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 + (y * (z / t)); t_2 = t_1 / ((a + 1.0) + (y * (b / t))); tmp = 0.0; if (t <= -2.05e-197) tmp = t_2; elseif (t <= -1.35e-223) tmp = (x * ((t / y) + (z / x))) / b; elseif (t <= -1.55e-242) tmp = t_2; elseif (t <= 9e-172) tmp = (z + ((x * t) / y)) / 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[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.05e-197], t$95$2, If[LessEqual[t, -1.35e-223], N[(N[(x * N[(N[(t / y), $MachinePrecision] + N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t, -1.55e-242], t$95$2, If[LessEqual[t, 9e-172], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / 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 + y \cdot \frac{z}{t}\\
t_2 := \frac{t\_1}{\left(a + 1\right) + y \cdot \frac{b}{t}}\\
\mathbf{if}\;t \leq -2.05 \cdot 10^{-197}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-223}:\\
\;\;\;\;\frac{x \cdot \left(\frac{t}{y} + \frac{z}{x}\right)}{b}\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-242}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-172}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if t < -2.05e-197 or -1.34999999999999994e-223 < t < -1.55000000000000008e-242Initial program 82.8%
associate-/l*82.2%
associate-/l*83.6%
Simplified83.6%
if -2.05e-197 < t < -1.34999999999999994e-223Initial program 24.1%
associate-/l*23.6%
associate-/l*23.6%
Simplified23.6%
Taylor expanded in x around inf 47.2%
associate-+r+47.2%
associate-*r/47.2%
associate-/l*47.0%
*-commutative47.0%
associate-+r+47.0%
associate-*r/36.3%
Simplified36.3%
Taylor expanded in b around inf 88.6%
if -1.55000000000000008e-242 < t < 9.00000000000000008e-172Initial program 38.2%
associate-/l*37.9%
associate-/l*27.3%
Simplified27.3%
Taylor expanded in x around inf 29.6%
associate-+r+29.6%
associate-*r/29.6%
associate-/l*29.9%
*-commutative29.9%
associate-+r+29.9%
associate-*r/27.1%
Simplified27.1%
Taylor expanded in b around inf 72.1%
Taylor expanded in x around 0 84.9%
if 9.00000000000000008e-172 < t Initial program 79.0%
associate-/l*78.9%
associate-/l*84.7%
Simplified84.7%
clear-num84.6%
un-div-inv85.9%
Applied egg-rr85.9%
Final simplification84.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b)))
(if (<= t -3e-66)
(/ x (+ (+ a 1.0) (* b (/ y t))))
(if (<= t -1.85e-161)
t_1
(if (<= t -9.2e-195)
(/ 1.0 (/ a (+ x (/ (* y z) t))))
(if (<= t 1.3e-62)
t_1
(if (<= t 4.5e-27)
(/ (* y z) (* t (+ a 1.0)))
(/ x (+ (+ a 1.0) (/ y (/ t b)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -3e-66) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else if (t <= -1.85e-161) {
tmp = t_1;
} else if (t <= -9.2e-195) {
tmp = 1.0 / (a / (x + ((y * z) / t)));
} else if (t <= 1.3e-62) {
tmp = t_1;
} else if (t <= 4.5e-27) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = x / ((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 = (z + ((x * t) / y)) / b
if (t <= (-3d-66)) then
tmp = x / ((a + 1.0d0) + (b * (y / t)))
else if (t <= (-1.85d-161)) then
tmp = t_1
else if (t <= (-9.2d-195)) then
tmp = 1.0d0 / (a / (x + ((y * z) / t)))
else if (t <= 1.3d-62) then
tmp = t_1
else if (t <= 4.5d-27) then
tmp = (y * z) / (t * (a + 1.0d0))
else
tmp = x / ((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 = (z + ((x * t) / y)) / b;
double tmp;
if (t <= -3e-66) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else if (t <= -1.85e-161) {
tmp = t_1;
} else if (t <= -9.2e-195) {
tmp = 1.0 / (a / (x + ((y * z) / t)));
} else if (t <= 1.3e-62) {
tmp = t_1;
} else if (t <= 4.5e-27) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = x / ((a + 1.0) + (y / (t / b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b tmp = 0 if t <= -3e-66: tmp = x / ((a + 1.0) + (b * (y / t))) elif t <= -1.85e-161: tmp = t_1 elif t <= -9.2e-195: tmp = 1.0 / (a / (x + ((y * z) / t))) elif t <= 1.3e-62: tmp = t_1 elif t <= 4.5e-27: tmp = (y * z) / (t * (a + 1.0)) else: tmp = x / ((a + 1.0) + (y / (t / b))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) tmp = 0.0 if (t <= -3e-66) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); elseif (t <= -1.85e-161) tmp = t_1; elseif (t <= -9.2e-195) tmp = Float64(1.0 / Float64(a / Float64(x + Float64(Float64(y * z) / t)))); elseif (t <= 1.3e-62) tmp = t_1; elseif (t <= 4.5e-27) tmp = Float64(Float64(y * z) / Float64(t * Float64(a + 1.0))); else tmp = Float64(x / 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 = (z + ((x * t) / y)) / b; tmp = 0.0; if (t <= -3e-66) tmp = x / ((a + 1.0) + (b * (y / t))); elseif (t <= -1.85e-161) tmp = t_1; elseif (t <= -9.2e-195) tmp = 1.0 / (a / (x + ((y * z) / t))); elseif (t <= 1.3e-62) tmp = t_1; elseif (t <= 4.5e-27) tmp = (y * z) / (t * (a + 1.0)); else tmp = x / ((a + 1.0) + (y / (t / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[t, -3e-66], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.85e-161], t$95$1, If[LessEqual[t, -9.2e-195], N[(1.0 / N[(a / N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e-62], t$95$1, If[LessEqual[t, 4.5e-27], N[(N[(y * z), $MachinePrecision] / N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{if}\;t \leq -3 \cdot 10^{-66}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;t \leq -1.85 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9.2 \cdot 10^{-195}:\\
\;\;\;\;\frac{1}{\frac{a}{x + \frac{y \cdot z}{t}}}\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{-62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-27}:\\
\;\;\;\;\frac{y \cdot z}{t \cdot \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + \frac{y}{\frac{t}{b}}}\\
\end{array}
\end{array}
if t < -3.0000000000000002e-66Initial program 87.4%
associate-/l*89.9%
associate-/l*93.2%
Simplified93.2%
Taylor expanded in x around inf 70.5%
associate-+r+70.5%
associate-*r/71.6%
Simplified71.6%
if -3.0000000000000002e-66 < t < -1.8499999999999999e-161 or -9.2000000000000007e-195 < t < 1.3e-62Initial program 54.3%
associate-/l*51.2%
associate-/l*46.2%
Simplified46.2%
Taylor expanded in x around inf 50.2%
associate-+r+50.2%
associate-*r/50.1%
associate-/l*52.1%
*-commutative52.1%
associate-+r+52.1%
associate-*r/47.1%
Simplified47.1%
Taylor expanded in b around inf 58.5%
Taylor expanded in x around 0 68.2%
if -1.8499999999999999e-161 < t < -9.2000000000000007e-195Initial program 87.9%
associate-/l*63.7%
associate-/l*63.7%
Simplified63.7%
clear-num63.7%
inv-pow63.7%
+-commutative63.7%
fma-define63.7%
+-commutative63.7%
fma-define63.7%
Applied egg-rr63.7%
unpow-163.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in a around inf 87.6%
if 1.3e-62 < t < 4.5000000000000002e-27Initial program 89.4%
associate-/l*67.8%
associate-/l*57.3%
Simplified57.3%
Taylor expanded in x around 0 88.7%
Taylor expanded in y around 0 78.8%
if 4.5000000000000002e-27 < t Initial program 79.6%
associate-/l*86.3%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in x around inf 63.3%
associate-+r+63.3%
associate-*r/68.3%
Simplified68.3%
*-commutative68.3%
associate-/r/68.4%
Applied egg-rr68.4%
Final simplification70.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b))
(t_2 (/ x (+ (+ a 1.0) (* b (/ y t))))))
(if (<= t -1.55e-67)
t_2
(if (<= t -2.5e-161)
t_1
(if (<= t -1.05e-194)
(/ 1.0 (/ a (+ x (/ (* y z) t))))
(if (<= t 1.8e-63)
t_1
(if (<= t 4.6e-27) (/ (* y z) (* t (+ a 1.0))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x / ((a + 1.0) + (b * (y / t)));
double tmp;
if (t <= -1.55e-67) {
tmp = t_2;
} else if (t <= -2.5e-161) {
tmp = t_1;
} else if (t <= -1.05e-194) {
tmp = 1.0 / (a / (x + ((y * z) / t)));
} else if (t <= 1.8e-63) {
tmp = t_1;
} else if (t <= 4.6e-27) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z + ((x * t) / y)) / b
t_2 = x / ((a + 1.0d0) + (b * (y / t)))
if (t <= (-1.55d-67)) then
tmp = t_2
else if (t <= (-2.5d-161)) then
tmp = t_1
else if (t <= (-1.05d-194)) then
tmp = 1.0d0 / (a / (x + ((y * z) / t)))
else if (t <= 1.8d-63) then
tmp = t_1
else if (t <= 4.6d-27) then
tmp = (y * z) / (t * (a + 1.0d0))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x / ((a + 1.0) + (b * (y / t)));
double tmp;
if (t <= -1.55e-67) {
tmp = t_2;
} else if (t <= -2.5e-161) {
tmp = t_1;
} else if (t <= -1.05e-194) {
tmp = 1.0 / (a / (x + ((y * z) / t)));
} else if (t <= 1.8e-63) {
tmp = t_1;
} else if (t <= 4.6e-27) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b t_2 = x / ((a + 1.0) + (b * (y / t))) tmp = 0 if t <= -1.55e-67: tmp = t_2 elif t <= -2.5e-161: tmp = t_1 elif t <= -1.05e-194: tmp = 1.0 / (a / (x + ((y * z) / t))) elif t <= 1.8e-63: tmp = t_1 elif t <= 4.6e-27: tmp = (y * z) / (t * (a + 1.0)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) t_2 = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))) tmp = 0.0 if (t <= -1.55e-67) tmp = t_2; elseif (t <= -2.5e-161) tmp = t_1; elseif (t <= -1.05e-194) tmp = Float64(1.0 / Float64(a / Float64(x + Float64(Float64(y * z) / t)))); elseif (t <= 1.8e-63) tmp = t_1; elseif (t <= 4.6e-27) tmp = Float64(Float64(y * z) / Float64(t * Float64(a + 1.0))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + ((x * t) / y)) / b; t_2 = x / ((a + 1.0) + (b * (y / t))); tmp = 0.0; if (t <= -1.55e-67) tmp = t_2; elseif (t <= -2.5e-161) tmp = t_1; elseif (t <= -1.05e-194) tmp = 1.0 / (a / (x + ((y * z) / t))); elseif (t <= 1.8e-63) tmp = t_1; elseif (t <= 4.6e-27) tmp = (y * z) / (t * (a + 1.0)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e-67], t$95$2, If[LessEqual[t, -2.5e-161], t$95$1, If[LessEqual[t, -1.05e-194], N[(1.0 / N[(a / N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-63], t$95$1, If[LessEqual[t, 4.6e-27], N[(N[(y * z), $MachinePrecision] / N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
t_2 := \frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{-67}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-194}:\\
\;\;\;\;\frac{1}{\frac{a}{x + \frac{y \cdot z}{t}}}\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-27}:\\
\;\;\;\;\frac{y \cdot z}{t \cdot \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.5500000000000001e-67 or 4.5999999999999999e-27 < t Initial program 84.3%
associate-/l*88.4%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in x around inf 67.6%
associate-+r+67.6%
associate-*r/70.3%
Simplified70.3%
if -1.5500000000000001e-67 < t < -2.5e-161 or -1.05e-194 < t < 1.80000000000000004e-63Initial program 54.3%
associate-/l*51.2%
associate-/l*46.2%
Simplified46.2%
Taylor expanded in x around inf 50.2%
associate-+r+50.2%
associate-*r/50.1%
associate-/l*52.1%
*-commutative52.1%
associate-+r+52.1%
associate-*r/47.1%
Simplified47.1%
Taylor expanded in b around inf 58.5%
Taylor expanded in x around 0 68.2%
if -2.5e-161 < t < -1.05e-194Initial program 87.9%
associate-/l*63.7%
associate-/l*63.7%
Simplified63.7%
clear-num63.7%
inv-pow63.7%
+-commutative63.7%
fma-define63.7%
+-commutative63.7%
fma-define63.7%
Applied egg-rr63.7%
unpow-163.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in a around inf 87.6%
if 1.80000000000000004e-63 < t < 4.5999999999999999e-27Initial program 89.4%
associate-/l*67.8%
associate-/l*57.3%
Simplified57.3%
Taylor expanded in x around 0 88.7%
Taylor expanded in y around 0 78.8%
Final simplification70.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b))
(t_2 (/ x (+ 1.0 (+ a (/ (* y b) t))))))
(if (<= t -5e-65)
t_2
(if (<= t -1.75e-159)
t_1
(if (<= t -1.05e-194)
(/ 1.0 (/ a (+ x (/ (* y z) t))))
(if (<= t 8e-63)
t_1
(if (<= t 4.5e-27) (/ (* y z) (* t (+ a 1.0))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x / (1.0 + (a + ((y * b) / t)));
double tmp;
if (t <= -5e-65) {
tmp = t_2;
} else if (t <= -1.75e-159) {
tmp = t_1;
} else if (t <= -1.05e-194) {
tmp = 1.0 / (a / (x + ((y * z) / t)));
} else if (t <= 8e-63) {
tmp = t_1;
} else if (t <= 4.5e-27) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z + ((x * t) / y)) / b
t_2 = x / (1.0d0 + (a + ((y * b) / t)))
if (t <= (-5d-65)) then
tmp = t_2
else if (t <= (-1.75d-159)) then
tmp = t_1
else if (t <= (-1.05d-194)) then
tmp = 1.0d0 / (a / (x + ((y * z) / t)))
else if (t <= 8d-63) then
tmp = t_1
else if (t <= 4.5d-27) then
tmp = (y * z) / (t * (a + 1.0d0))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x / (1.0 + (a + ((y * b) / t)));
double tmp;
if (t <= -5e-65) {
tmp = t_2;
} else if (t <= -1.75e-159) {
tmp = t_1;
} else if (t <= -1.05e-194) {
tmp = 1.0 / (a / (x + ((y * z) / t)));
} else if (t <= 8e-63) {
tmp = t_1;
} else if (t <= 4.5e-27) {
tmp = (y * z) / (t * (a + 1.0));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b t_2 = x / (1.0 + (a + ((y * b) / t))) tmp = 0 if t <= -5e-65: tmp = t_2 elif t <= -1.75e-159: tmp = t_1 elif t <= -1.05e-194: tmp = 1.0 / (a / (x + ((y * z) / t))) elif t <= 8e-63: tmp = t_1 elif t <= 4.5e-27: tmp = (y * z) / (t * (a + 1.0)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) t_2 = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))) tmp = 0.0 if (t <= -5e-65) tmp = t_2; elseif (t <= -1.75e-159) tmp = t_1; elseif (t <= -1.05e-194) tmp = Float64(1.0 / Float64(a / Float64(x + Float64(Float64(y * z) / t)))); elseif (t <= 8e-63) tmp = t_1; elseif (t <= 4.5e-27) tmp = Float64(Float64(y * z) / Float64(t * Float64(a + 1.0))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + ((x * t) / y)) / b; t_2 = x / (1.0 + (a + ((y * b) / t))); tmp = 0.0; if (t <= -5e-65) tmp = t_2; elseif (t <= -1.75e-159) tmp = t_1; elseif (t <= -1.05e-194) tmp = 1.0 / (a / (x + ((y * z) / t))); elseif (t <= 8e-63) tmp = t_1; elseif (t <= 4.5e-27) tmp = (y * z) / (t * (a + 1.0)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-65], t$95$2, If[LessEqual[t, -1.75e-159], t$95$1, If[LessEqual[t, -1.05e-194], N[(1.0 / N[(a / N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-63], t$95$1, If[LessEqual[t, 4.5e-27], N[(N[(y * z), $MachinePrecision] / N[(t * N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
t_2 := \frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-65}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-194}:\\
\;\;\;\;\frac{1}{\frac{a}{x + \frac{y \cdot z}{t}}}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-27}:\\
\;\;\;\;\frac{y \cdot z}{t \cdot \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -4.99999999999999983e-65 or 4.5000000000000002e-27 < t Initial program 84.3%
associate-/l*88.4%
associate-/l*94.5%
Simplified94.5%
Taylor expanded in x around inf 67.6%
if -4.99999999999999983e-65 < t < -1.75000000000000001e-159 or -1.05e-194 < t < 8.00000000000000053e-63Initial program 54.3%
associate-/l*51.2%
associate-/l*46.2%
Simplified46.2%
Taylor expanded in x around inf 50.2%
associate-+r+50.2%
associate-*r/50.1%
associate-/l*52.1%
*-commutative52.1%
associate-+r+52.1%
associate-*r/47.1%
Simplified47.1%
Taylor expanded in b around inf 58.5%
Taylor expanded in x around 0 68.2%
if -1.75000000000000001e-159 < t < -1.05e-194Initial program 87.9%
associate-/l*63.7%
associate-/l*63.7%
Simplified63.7%
clear-num63.7%
inv-pow63.7%
+-commutative63.7%
fma-define63.7%
+-commutative63.7%
fma-define63.7%
Applied egg-rr63.7%
unpow-163.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in a around inf 87.6%
if 8.00000000000000053e-63 < t < 4.5000000000000002e-27Initial program 89.4%
associate-/l*67.8%
associate-/l*57.3%
Simplified57.3%
Taylor expanded in x around 0 88.7%
Taylor expanded in y around 0 78.8%
Final simplification68.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b))
(t_2 (+ x (/ (* y z) t)))
(t_3 (/ t_2 (+ a 1.0))))
(if (<= t -6.4e-70)
t_3
(if (<= t -1.4e-160)
t_1
(if (<= t -1.05e-194)
(/ 1.0 (/ a t_2))
(if (<= t 1.36e-171) t_1 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x + ((y * z) / t);
double t_3 = t_2 / (a + 1.0);
double tmp;
if (t <= -6.4e-70) {
tmp = t_3;
} else if (t <= -1.4e-160) {
tmp = t_1;
} else if (t <= -1.05e-194) {
tmp = 1.0 / (a / t_2);
} else if (t <= 1.36e-171) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = (z + ((x * t) / y)) / b
t_2 = x + ((y * z) / t)
t_3 = t_2 / (a + 1.0d0)
if (t <= (-6.4d-70)) then
tmp = t_3
else if (t <= (-1.4d-160)) then
tmp = t_1
else if (t <= (-1.05d-194)) then
tmp = 1.0d0 / (a / t_2)
else if (t <= 1.36d-171) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double t_2 = x + ((y * z) / t);
double t_3 = t_2 / (a + 1.0);
double tmp;
if (t <= -6.4e-70) {
tmp = t_3;
} else if (t <= -1.4e-160) {
tmp = t_1;
} else if (t <= -1.05e-194) {
tmp = 1.0 / (a / t_2);
} else if (t <= 1.36e-171) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b t_2 = x + ((y * z) / t) t_3 = t_2 / (a + 1.0) tmp = 0 if t <= -6.4e-70: tmp = t_3 elif t <= -1.4e-160: tmp = t_1 elif t <= -1.05e-194: tmp = 1.0 / (a / t_2) elif t <= 1.36e-171: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) t_2 = Float64(x + Float64(Float64(y * z) / t)) t_3 = Float64(t_2 / Float64(a + 1.0)) tmp = 0.0 if (t <= -6.4e-70) tmp = t_3; elseif (t <= -1.4e-160) tmp = t_1; elseif (t <= -1.05e-194) tmp = Float64(1.0 / Float64(a / t_2)); elseif (t <= 1.36e-171) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + ((x * t) / y)) / b; t_2 = x + ((y * z) / t); t_3 = t_2 / (a + 1.0); tmp = 0.0; if (t <= -6.4e-70) tmp = t_3; elseif (t <= -1.4e-160) tmp = t_1; elseif (t <= -1.05e-194) tmp = 1.0 / (a / t_2); elseif (t <= 1.36e-171) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.4e-70], t$95$3, If[LessEqual[t, -1.4e-160], t$95$1, If[LessEqual[t, -1.05e-194], N[(1.0 / N[(a / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.36e-171], t$95$1, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
t_2 := x + \frac{y \cdot z}{t}\\
t_3 := \frac{t\_2}{a + 1}\\
\mathbf{if}\;t \leq -6.4 \cdot 10^{-70}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-194}:\\
\;\;\;\;\frac{1}{\frac{a}{t\_2}}\\
\mathbf{elif}\;t \leq 1.36 \cdot 10^{-171}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -6.3999999999999995e-70 or 1.3599999999999999e-171 < t Initial program 83.3%
associate-/l*84.5%
associate-/l*89.0%
Simplified89.0%
Taylor expanded in b around 0 70.6%
if -6.3999999999999995e-70 < t < -1.40000000000000008e-160 or -1.05e-194 < t < 1.3599999999999999e-171Initial program 50.7%
associate-/l*49.3%
associate-/l*43.3%
Simplified43.3%
Taylor expanded in x around inf 46.8%
associate-+r+46.8%
associate-*r/46.7%
associate-/l*49.1%
*-commutative49.1%
associate-+r+49.1%
associate-*r/45.5%
Simplified45.5%
Taylor expanded in b around inf 65.4%
Taylor expanded in x around 0 73.6%
if -1.40000000000000008e-160 < t < -1.05e-194Initial program 87.9%
associate-/l*63.7%
associate-/l*63.7%
Simplified63.7%
clear-num63.7%
inv-pow63.7%
+-commutative63.7%
fma-define63.7%
+-commutative63.7%
fma-define63.7%
Applied egg-rr63.7%
unpow-163.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in a around inf 87.6%
Final simplification72.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (/ (* x t) y)) b)))
(if (<= y -2.55e+95)
t_1
(if (<= y -1.35e+15)
(/ (* y (/ z t)) (+ a 1.0))
(if (or (<= y -2.1e-113) (not (<= y 8100000000.0)))
t_1
(/ x (+ a 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + ((x * t) / y)) / b;
double tmp;
if (y <= -2.55e+95) {
tmp = t_1;
} else if (y <= -1.35e+15) {
tmp = (y * (z / t)) / (a + 1.0);
} else if ((y <= -2.1e-113) || !(y <= 8100000000.0)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (z + ((x * t) / y)) / b
if (y <= (-2.55d+95)) then
tmp = t_1
else if (y <= (-1.35d+15)) then
tmp = (y * (z / t)) / (a + 1.0d0)
else if ((y <= (-2.1d-113)) .or. (.not. (y <= 8100000000.0d0))) then
tmp = t_1
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 t_1 = (z + ((x * t) / y)) / b;
double tmp;
if (y <= -2.55e+95) {
tmp = t_1;
} else if (y <= -1.35e+15) {
tmp = (y * (z / t)) / (a + 1.0);
} else if ((y <= -2.1e-113) || !(y <= 8100000000.0)) {
tmp = t_1;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + ((x * t) / y)) / b tmp = 0 if y <= -2.55e+95: tmp = t_1 elif y <= -1.35e+15: tmp = (y * (z / t)) / (a + 1.0) elif (y <= -2.1e-113) or not (y <= 8100000000.0): tmp = t_1 else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(Float64(x * t) / y)) / b) tmp = 0.0 if (y <= -2.55e+95) tmp = t_1; elseif (y <= -1.35e+15) tmp = Float64(Float64(y * Float64(z / t)) / Float64(a + 1.0)); elseif ((y <= -2.1e-113) || !(y <= 8100000000.0)) tmp = t_1; else tmp = Float64(x / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z + ((x * t) / y)) / b; tmp = 0.0; if (y <= -2.55e+95) tmp = t_1; elseif (y <= -1.35e+15) tmp = (y * (z / t)) / (a + 1.0); elseif ((y <= -2.1e-113) || ~((y <= 8100000000.0))) tmp = t_1; else tmp = x / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -2.55e+95], t$95$1, If[LessEqual[y, -1.35e+15], N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2.1e-113], N[Not[LessEqual[y, 8100000000.0]], $MachinePrecision]], t$95$1, N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{if}\;y \leq -2.55 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{+15}:\\
\;\;\;\;\frac{y \cdot \frac{z}{t}}{a + 1}\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-113} \lor \neg \left(y \leq 8100000000\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -2.55000000000000001e95 or -1.35e15 < y < -2.1e-113 or 8.1e9 < y Initial program 56.8%
associate-/l*59.8%
associate-/l*64.0%
Simplified64.0%
Taylor expanded in x around inf 53.5%
associate-+r+53.5%
associate-*r/55.5%
associate-/l*60.6%
*-commutative60.6%
associate-+r+60.6%
associate-*r/58.7%
Simplified58.7%
Taylor expanded in b around inf 53.5%
Taylor expanded in x around 0 58.2%
if -2.55000000000000001e95 < y < -1.35e15Initial program 74.2%
associate-/l*87.5%
associate-/l*93.9%
Simplified93.9%
Taylor expanded in x around 0 54.3%
Taylor expanded in y around 0 48.3%
associate-/r*48.6%
associate-*r/61.7%
Simplified61.7%
if -2.1e-113 < y < 8.1e9Initial program 93.6%
associate-/l*87.1%
associate-/l*83.5%
Simplified83.5%
Taylor expanded in y around 0 69.8%
Final simplification63.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= y -3.5e+95)
(/ z b)
(if (<= y 2.4e-151)
t_1
(if (<= y 2.2e-101)
(/ (+ x (/ (* y z) t)) a)
(if (<= y 4600000000000.0) t_1 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (y <= -3.5e+95) {
tmp = z / b;
} else if (y <= 2.4e-151) {
tmp = t_1;
} else if (y <= 2.2e-101) {
tmp = (x + ((y * z) / t)) / a;
} else if (y <= 4600000000000.0) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (a + 1.0d0)
if (y <= (-3.5d+95)) then
tmp = z / b
else if (y <= 2.4d-151) then
tmp = t_1
else if (y <= 2.2d-101) then
tmp = (x + ((y * z) / t)) / a
else if (y <= 4600000000000.0d0) then
tmp = t_1
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 t_1 = x / (a + 1.0);
double tmp;
if (y <= -3.5e+95) {
tmp = z / b;
} else if (y <= 2.4e-151) {
tmp = t_1;
} else if (y <= 2.2e-101) {
tmp = (x + ((y * z) / t)) / a;
} else if (y <= 4600000000000.0) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if y <= -3.5e+95: tmp = z / b elif y <= 2.4e-151: tmp = t_1 elif y <= 2.2e-101: tmp = (x + ((y * z) / t)) / a elif y <= 4600000000000.0: tmp = t_1 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (y <= -3.5e+95) tmp = Float64(z / b); elseif (y <= 2.4e-151) tmp = t_1; elseif (y <= 2.2e-101) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / a); elseif (y <= 4600000000000.0) 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 / (a + 1.0); tmp = 0.0; if (y <= -3.5e+95) tmp = z / b; elseif (y <= 2.4e-151) tmp = t_1; elseif (y <= 2.2e-101) tmp = (x + ((y * z) / t)) / a; elseif (y <= 4600000000000.0) tmp = t_1; else tmp = z / b; 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[y, -3.5e+95], N[(z / b), $MachinePrecision], If[LessEqual[y, 2.4e-151], t$95$1, If[LessEqual[y, 2.2e-101], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 4600000000000.0], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+95}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-101}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a}\\
\mathbf{elif}\;y \leq 4600000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -3.5e95 or 4.6e12 < y Initial program 48.9%
associate-/l*52.8%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in y around inf 60.2%
if -3.5e95 < y < 2.4e-151 or 2.1999999999999999e-101 < y < 4.6e12Initial program 88.3%
associate-/l*86.9%
associate-/l*83.7%
Simplified83.7%
Taylor expanded in y around 0 59.0%
if 2.4e-151 < y < 2.1999999999999999e-101Initial program 99.8%
associate-/l*58.6%
associate-/l*58.6%
Simplified58.6%
Taylor expanded in a around inf 99.8%
Final simplification60.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.7e+95) (not (<= y 1750000000000.0))) (/ z b) (/ x (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.7e+95) || !(y <= 1750000000000.0)) {
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 <= (-2.7d+95)) .or. (.not. (y <= 1750000000000.0d0))) 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 <= -2.7e+95) || !(y <= 1750000000000.0)) {
tmp = z / b;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.7e+95) or not (y <= 1750000000000.0): tmp = z / b else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.7e+95) || !(y <= 1750000000000.0)) 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 <= -2.7e+95) || ~((y <= 1750000000000.0))) 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, -2.7e+95], N[Not[LessEqual[y, 1750000000000.0]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+95} \lor \neg \left(y \leq 1750000000000\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -2.7e95 or 1.75e12 < y Initial program 48.9%
associate-/l*52.8%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in y around inf 60.2%
if -2.7e95 < y < 1.75e12Initial program 88.8%
associate-/l*85.7%
associate-/l*82.6%
Simplified82.6%
Taylor expanded in y around 0 57.8%
Final simplification58.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.5e-138) (not (<= y 5800000000.0))) (/ z b) (/ x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.5e-138) || !(y <= 5800000000.0)) {
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 <= (-2.5d-138)) .or. (.not. (y <= 5800000000.0d0))) 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 <= -2.5e-138) || !(y <= 5800000000.0)) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.5e-138) or not (y <= 5800000000.0): tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.5e-138) || !(y <= 5800000000.0)) 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 <= -2.5e-138) || ~((y <= 5800000000.0))) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.5e-138], N[Not[LessEqual[y, 5800000000.0]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{-138} \lor \neg \left(y \leq 5800000000\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if y < -2.49999999999999994e-138 or 5.8e9 < y Initial program 58.9%
associate-/l*62.8%
associate-/l*67.2%
Simplified67.2%
Taylor expanded in y around inf 48.2%
if -2.49999999999999994e-138 < y < 5.8e9Initial program 93.6%
associate-/l*87.0%
associate-/l*83.4%
Simplified83.4%
Taylor expanded in x around inf 75.9%
associate-+r+75.9%
associate-*r/75.9%
Simplified75.9%
Taylor expanded in a around inf 41.1%
Final simplification45.3%
(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 73.2%
associate-/l*72.8%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in x around inf 53.1%
associate-+r+53.1%
associate-*r/54.2%
Simplified54.2%
Taylor expanded in a around inf 27.2%
(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 2024103
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(if (< t -1.3659085366310088e-271) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b))))) (if (< t 3.036967103737246e-130) (/ z b) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))