
(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 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 (- INFINITY))
(* (/ z t) (/ y (+ 1.0 (fma y (/ b t) a))))
(if (<= t_1 -1e-99)
t_1
(if (<= t_1 2e-97)
(/ (fma y (/ z t) x) (fma b (/ y t) (+ a 1.0)))
(if (<= t_1 2e+299) t_1 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (z / t) * (y / (1.0 + fma(y, (b / t), a)));
} else if (t_1 <= -1e-99) {
tmp = t_1;
} else if (t_1 <= 2e-97) {
tmp = fma(y, (z / t), x) / fma(b, (y / t), (a + 1.0));
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(z / t) * Float64(y / Float64(1.0 + fma(y, Float64(b / t), a)))); elseif (t_1 <= -1e-99) tmp = t_1; elseif (t_1 <= 2e-97) tmp = Float64(fma(y, Float64(z / t), x) / fma(b, Float64(y / t), Float64(a + 1.0))); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(z / t), $MachinePrecision] * N[(y / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-99], t$95$1, If[LessEqual[t$95$1, 2e-97], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\frac{z}{t} \cdot \frac{y}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\
\mathbf{elif}\;t_1 \leq -1 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{-97}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, a + 1\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 25.1%
associate-/l*52.3%
associate-+l+52.3%
associate-/l*52.3%
Simplified52.3%
Taylor expanded in x around 0 71.8%
*-commutative71.8%
+-commutative71.8%
+-commutative71.8%
associate-*r/36.7%
associate-+r+36.7%
fma-def36.7%
times-frac50.3%
fma-def50.3%
associate-+r+50.3%
associate-*r/79.0%
+-commutative79.0%
+-commutative79.0%
+-commutative79.0%
*-commutative79.0%
associate-*r/78.8%
fma-udef78.8%
Simplified78.8%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -1e-99 or 2.00000000000000007e-97 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299Initial program 99.7%
if -1e-99 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 2.00000000000000007e-97Initial program 83.3%
+-commutative83.3%
associate-*r/84.3%
fma-def84.4%
+-commutative84.4%
associate-*l/89.0%
*-commutative89.0%
fma-def89.0%
Simplified89.0%
if 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) Initial program 1.1%
associate-/l*4.6%
associate-+l+4.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.7%
Final simplification94.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 (- INFINITY))
(* (/ z t) (/ y (+ 1.0 (fma y (/ b t) a))))
(if (<= t_1 -1e-99)
t_1
(if (<= t_1 1e-200)
(/ (+ x (/ y (/ t z))) (+ a (+ 1.0 (/ y (/ t b)))))
(if (<= t_1 2e+299) t_1 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (z / t) * (y / (1.0 + fma(y, (b / t), a)));
} else if (t_1 <= -1e-99) {
tmp = t_1;
} else if (t_1 <= 1e-200) {
tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b))));
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(z / t) * Float64(y / Float64(1.0 + fma(y, Float64(b / t), a)))); elseif (t_1 <= -1e-99) tmp = t_1; elseif (t_1 <= 1e-200) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + Float64(1.0 + Float64(y / Float64(t / b))))); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(z / t), $MachinePrecision] * N[(y / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-99], t$95$1, If[LessEqual[t$95$1, 1e-200], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(1.0 + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\frac{z}{t} \cdot \frac{y}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\
\mathbf{elif}\;t_1 \leq -1 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 10^{-200}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 25.1%
associate-/l*52.3%
associate-+l+52.3%
associate-/l*52.3%
Simplified52.3%
Taylor expanded in x around 0 71.8%
*-commutative71.8%
+-commutative71.8%
+-commutative71.8%
associate-*r/36.7%
associate-+r+36.7%
fma-def36.7%
times-frac50.3%
fma-def50.3%
associate-+r+50.3%
associate-*r/79.0%
+-commutative79.0%
+-commutative79.0%
+-commutative79.0%
*-commutative79.0%
associate-*r/78.8%
fma-udef78.8%
Simplified78.8%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -1e-99 or 9.9999999999999998e-201 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299Initial program 99.7%
if -1e-99 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 9.9999999999999998e-201Initial program 79.9%
associate-/l*81.1%
associate-+l+81.1%
associate-/l*85.6%
Simplified85.6%
if 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) Initial program 1.1%
associate-/l*4.6%
associate-+l+4.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.7%
Final simplification93.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_1 (- INFINITY))
(* (/ y t) (/ z (+ 1.0 (+ a (* y (/ b t))))))
(if (<= t_1 -1e-99)
t_1
(if (<= t_1 1e-200)
(/ (+ x (/ y (/ t z))) (+ a (+ 1.0 (/ y (/ t b)))))
(if (<= t_1 2e+299) t_1 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (y / t) * (z / (1.0 + (a + (y * (b / t)))));
} else if (t_1 <= -1e-99) {
tmp = t_1;
} else if (t_1 <= 1e-200) {
tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b))));
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (y / t) * (z / (1.0 + (a + (y * (b / t)))));
} else if (t_1 <= -1e-99) {
tmp = t_1;
} else if (t_1 <= 1e-200) {
tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b))));
} else if (t_1 <= 2e+299) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)) tmp = 0 if t_1 <= -math.inf: tmp = (y / t) * (z / (1.0 + (a + (y * (b / t))))) elif t_1 <= -1e-99: tmp = t_1 elif t_1 <= 1e-200: tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b)))) elif t_1 <= 2e+299: tmp = t_1 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(y / t) * Float64(z / Float64(1.0 + Float64(a + Float64(y * Float64(b / t)))))); elseif (t_1 <= -1e-99) tmp = t_1; elseif (t_1 <= 1e-200) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + Float64(1.0 + Float64(y / Float64(t / b))))); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); tmp = 0.0; if (t_1 <= -Inf) tmp = (y / t) * (z / (1.0 + (a + (y * (b / t))))); elseif (t_1 <= -1e-99) tmp = t_1; elseif (t_1 <= 1e-200) tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b)))); elseif (t_1 <= 2e+299) tmp = t_1; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(y / t), $MachinePrecision] * N[(z / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-99], t$95$1, If[LessEqual[t$95$1, 1e-200], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(1.0 + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+299], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;t_1 \leq -1 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 10^{-200}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 25.1%
associate-/l*52.3%
associate-+l+52.3%
associate-/l*52.3%
Simplified52.3%
Taylor expanded in x around 0 71.8%
times-frac79.3%
+-commutative79.3%
*-commutative79.3%
associate-*r/72.2%
fma-udef72.2%
Simplified72.2%
fma-udef72.2%
Applied egg-rr72.2%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -1e-99 or 9.9999999999999998e-201 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299Initial program 99.7%
if -1e-99 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 9.9999999999999998e-201Initial program 79.9%
associate-/l*81.1%
associate-+l+81.1%
associate-/l*85.6%
Simplified85.6%
if 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) Initial program 1.1%
associate-/l*4.6%
associate-+l+4.6%
associate-/l*11.2%
Simplified11.2%
Taylor expanded in y around inf 96.7%
Final simplification93.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ 1.0 (+ a (/ (* y b) t))))))
(if (<= y -5.8e+52)
(/ z b)
(if (<= y -3.95e-146)
t_1
(if (<= y -2.5e-188)
(/ (+ x (/ (* y z) t)) a)
(if (<= y 3.1e-74)
t_1
(if (<= y 9.5e-68)
(* (/ y t) (/ z (+ a 1.0)))
(if (<= y 1.16e+129) t_1 (/ z b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 + (a + ((y * b) / t)));
double tmp;
if (y <= -5.8e+52) {
tmp = z / b;
} else if (y <= -3.95e-146) {
tmp = t_1;
} else if (y <= -2.5e-188) {
tmp = (x + ((y * z) / t)) / a;
} else if (y <= 3.1e-74) {
tmp = t_1;
} else if (y <= 9.5e-68) {
tmp = (y / t) * (z / (a + 1.0));
} else if (y <= 1.16e+129) {
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 / (1.0d0 + (a + ((y * b) / t)))
if (y <= (-5.8d+52)) then
tmp = z / b
else if (y <= (-3.95d-146)) then
tmp = t_1
else if (y <= (-2.5d-188)) then
tmp = (x + ((y * z) / t)) / a
else if (y <= 3.1d-74) then
tmp = t_1
else if (y <= 9.5d-68) then
tmp = (y / t) * (z / (a + 1.0d0))
else if (y <= 1.16d+129) 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 / (1.0 + (a + ((y * b) / t)));
double tmp;
if (y <= -5.8e+52) {
tmp = z / b;
} else if (y <= -3.95e-146) {
tmp = t_1;
} else if (y <= -2.5e-188) {
tmp = (x + ((y * z) / t)) / a;
} else if (y <= 3.1e-74) {
tmp = t_1;
} else if (y <= 9.5e-68) {
tmp = (y / t) * (z / (a + 1.0));
} else if (y <= 1.16e+129) {
tmp = t_1;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 + (a + ((y * b) / t))) tmp = 0 if y <= -5.8e+52: tmp = z / b elif y <= -3.95e-146: tmp = t_1 elif y <= -2.5e-188: tmp = (x + ((y * z) / t)) / a elif y <= 3.1e-74: tmp = t_1 elif y <= 9.5e-68: tmp = (y / t) * (z / (a + 1.0)) elif y <= 1.16e+129: tmp = t_1 else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))) tmp = 0.0 if (y <= -5.8e+52) tmp = Float64(z / b); elseif (y <= -3.95e-146) tmp = t_1; elseif (y <= -2.5e-188) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / a); elseif (y <= 3.1e-74) tmp = t_1; elseif (y <= 9.5e-68) tmp = Float64(Float64(y / t) * Float64(z / Float64(a + 1.0))); elseif (y <= 1.16e+129) 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 / (1.0 + (a + ((y * b) / t))); tmp = 0.0; if (y <= -5.8e+52) tmp = z / b; elseif (y <= -3.95e-146) tmp = t_1; elseif (y <= -2.5e-188) tmp = (x + ((y * z) / t)) / a; elseif (y <= 3.1e-74) tmp = t_1; elseif (y <= 9.5e-68) tmp = (y / t) * (z / (a + 1.0)); elseif (y <= 1.16e+129) 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[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+52], N[(z / b), $MachinePrecision], If[LessEqual[y, -3.95e-146], t$95$1, If[LessEqual[y, -2.5e-188], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 3.1e-74], t$95$1, If[LessEqual[y, 9.5e-68], N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.16e+129], t$95$1, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+52}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq -3.95 \cdot 10^{-146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{-188}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-68}:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -5.8e52 or 1.16e129 < y Initial program 47.6%
associate-/l*51.2%
associate-+l+51.2%
associate-/l*57.7%
Simplified57.7%
Taylor expanded in y around inf 69.2%
if -5.8e52 < y < -3.95000000000000006e-146 or -2.5e-188 < y < 3.1000000000000002e-74 or 9.4999999999999997e-68 < y < 1.16e129Initial program 93.4%
associate-/l*90.9%
associate-+l+90.9%
associate-/l*87.8%
Simplified87.8%
Taylor expanded in x around inf 68.6%
if -3.95000000000000006e-146 < y < -2.5e-188Initial program 99.5%
associate-/l*75.6%
associate-+l+75.6%
associate-/l*67.7%
Simplified67.7%
Taylor expanded in a around inf 83.2%
if 3.1000000000000002e-74 < y < 9.4999999999999997e-68Initial program 99.5%
associate-/l*63.6%
associate-+l+63.6%
associate-/l*63.6%
Simplified63.6%
Taylor expanded in b around 0 95.6%
Taylor expanded in x around 0 79.9%
times-frac80.0%
Simplified80.0%
Final simplification69.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.12e+116) (and (not (<= y 9.2e+129)) (<= y 2.85e+177))) (/ z b) (/ (+ x (* z (/ y t))) (+ 1.0 (+ a (* y (/ b t)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.12e+116) || (!(y <= 9.2e+129) && (y <= 2.85e+177))) {
tmp = z / b;
} else {
tmp = (x + (z * (y / t))) / (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 <= (-1.12d+116)) .or. (.not. (y <= 9.2d+129)) .and. (y <= 2.85d+177)) then
tmp = z / b
else
tmp = (x + (z * (y / t))) / (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 <= -1.12e+116) || (!(y <= 9.2e+129) && (y <= 2.85e+177))) {
tmp = z / b;
} else {
tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.12e+116) or (not (y <= 9.2e+129) and (y <= 2.85e+177)): tmp = z / b else: tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.12e+116) || (!(y <= 9.2e+129) && (y <= 2.85e+177))) tmp = Float64(z / b); else tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.12e+116) || (~((y <= 9.2e+129)) && (y <= 2.85e+177))) tmp = z / b; else tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.12e+116], And[N[Not[LessEqual[y, 9.2e+129]], $MachinePrecision], LessEqual[y, 2.85e+177]]], N[(z / b), $MachinePrecision], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+116} \lor \neg \left(y \leq 9.2 \cdot 10^{+129}\right) \land y \leq 2.85 \cdot 10^{+177}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\end{array}
\end{array}
if y < -1.12e116 or 9.19999999999999961e129 < y < 2.85000000000000008e177Initial program 37.9%
associate-/l*41.7%
associate-+l+41.7%
associate-/l*47.5%
Simplified47.5%
Taylor expanded in y around inf 77.0%
if -1.12e116 < y < 9.19999999999999961e129 or 2.85000000000000008e177 < y Initial program 87.6%
*-commutative87.6%
associate-/l*87.2%
+-commutative87.2%
associate-+l+87.2%
associate-*r/85.2%
*-commutative85.2%
Simplified85.2%
div-inv85.2%
clear-num85.2%
Applied egg-rr85.2%
Final simplification83.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.25e+116)
(/ z b)
(if (<= y 6.6e-33)
(/ (+ x (* z (/ y t))) (+ 1.0 (+ a (* y (/ b t)))))
(/ (+ x (/ y (/ t z))) (+ a (+ 1.0 (/ y (/ t b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.25e+116) {
tmp = z / b;
} else if (y <= 6.6e-33) {
tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t))));
} else {
tmp = (x + (y / (t / z))) / (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) :: tmp
if (y <= (-1.25d+116)) then
tmp = z / b
else if (y <= 6.6d-33) then
tmp = (x + (z * (y / t))) / (1.0d0 + (a + (y * (b / t))))
else
tmp = (x + (y / (t / z))) / (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 tmp;
if (y <= -1.25e+116) {
tmp = z / b;
} else if (y <= 6.6e-33) {
tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t))));
} else {
tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.25e+116: tmp = z / b elif y <= 6.6e-33: tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t)))) else: tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.25e+116) tmp = Float64(z / b); elseif (y <= 6.6e-33) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); else tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + Float64(1.0 + Float64(y / Float64(t / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.25e+116) tmp = z / b; elseif (y <= 6.6e-33) tmp = (x + (z * (y / t))) / (1.0 + (a + (y * (b / t)))); else tmp = (x + (y / (t / z))) / (a + (1.0 + (y / (t / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.25e+116], N[(z / b), $MachinePrecision], If[LessEqual[y, 6.6e-33], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + N[(1.0 + N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+116}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{-33}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + \left(1 + \frac{y}{\frac{t}{b}}\right)}\\
\end{array}
\end{array}
if y < -1.25000000000000006e116Initial program 37.2%
associate-/l*37.3%
associate-+l+37.3%
associate-/l*44.6%
Simplified44.6%
Taylor expanded in y around inf 78.5%
if -1.25000000000000006e116 < y < 6.6000000000000005e-33Initial program 94.6%
*-commutative94.6%
associate-/l*94.6%
+-commutative94.6%
associate-+l+94.6%
associate-*r/88.8%
*-commutative88.8%
Simplified88.8%
div-inv88.8%
clear-num88.8%
Applied egg-rr88.8%
if 6.6000000000000005e-33 < y Initial program 64.7%
associate-/l*70.8%
associate-+l+70.8%
associate-/l*76.4%
Simplified76.4%
Final simplification84.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= y -7e-13)
(/ z b)
(if (<= y 2.7e-74)
t_1
(if (<= y 1.42e-67)
(* (/ y t) (/ z (+ a 1.0)))
(if (<= y 6.6e-32)
(/ x (+ 1.0 (/ (* y b) t)))
(if (<= y 7e+71)
(* (/ z t) (/ y (+ a 1.0)))
(if (<= y 1.45e+128) 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 <= -7e-13) {
tmp = z / b;
} else if (y <= 2.7e-74) {
tmp = t_1;
} else if (y <= 1.42e-67) {
tmp = (y / t) * (z / (a + 1.0));
} else if (y <= 6.6e-32) {
tmp = x / (1.0 + ((y * b) / t));
} else if (y <= 7e+71) {
tmp = (z / t) * (y / (a + 1.0));
} else if (y <= 1.45e+128) {
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 <= (-7d-13)) then
tmp = z / b
else if (y <= 2.7d-74) then
tmp = t_1
else if (y <= 1.42d-67) then
tmp = (y / t) * (z / (a + 1.0d0))
else if (y <= 6.6d-32) then
tmp = x / (1.0d0 + ((y * b) / t))
else if (y <= 7d+71) then
tmp = (z / t) * (y / (a + 1.0d0))
else if (y <= 1.45d+128) 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 <= -7e-13) {
tmp = z / b;
} else if (y <= 2.7e-74) {
tmp = t_1;
} else if (y <= 1.42e-67) {
tmp = (y / t) * (z / (a + 1.0));
} else if (y <= 6.6e-32) {
tmp = x / (1.0 + ((y * b) / t));
} else if (y <= 7e+71) {
tmp = (z / t) * (y / (a + 1.0));
} else if (y <= 1.45e+128) {
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 <= -7e-13: tmp = z / b elif y <= 2.7e-74: tmp = t_1 elif y <= 1.42e-67: tmp = (y / t) * (z / (a + 1.0)) elif y <= 6.6e-32: tmp = x / (1.0 + ((y * b) / t)) elif y <= 7e+71: tmp = (z / t) * (y / (a + 1.0)) elif y <= 1.45e+128: 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 <= -7e-13) tmp = Float64(z / b); elseif (y <= 2.7e-74) tmp = t_1; elseif (y <= 1.42e-67) tmp = Float64(Float64(y / t) * Float64(z / Float64(a + 1.0))); elseif (y <= 6.6e-32) tmp = Float64(x / Float64(1.0 + Float64(Float64(y * b) / t))); elseif (y <= 7e+71) tmp = Float64(Float64(z / t) * Float64(y / Float64(a + 1.0))); elseif (y <= 1.45e+128) 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 <= -7e-13) tmp = z / b; elseif (y <= 2.7e-74) tmp = t_1; elseif (y <= 1.42e-67) tmp = (y / t) * (z / (a + 1.0)); elseif (y <= 6.6e-32) tmp = x / (1.0 + ((y * b) / t)); elseif (y <= 7e+71) tmp = (z / t) * (y / (a + 1.0)); elseif (y <= 1.45e+128) 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, -7e-13], N[(z / b), $MachinePrecision], If[LessEqual[y, 2.7e-74], t$95$1, If[LessEqual[y, 1.42e-67], N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e-32], N[(x / N[(1.0 + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+71], N[(N[(z / t), $MachinePrecision] * N[(y / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e+128], t$95$1, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;y \leq -7 \cdot 10^{-13}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.42 \cdot 10^{-67}:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{1 + \frac{y \cdot b}{t}}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+71}:\\
\;\;\;\;\frac{z}{t} \cdot \frac{y}{a + 1}\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -7.0000000000000005e-13 or 1.45e128 < y Initial program 52.4%
associate-/l*55.5%
associate-+l+55.5%
associate-/l*61.0%
Simplified61.0%
Taylor expanded in y around inf 64.3%
if -7.0000000000000005e-13 < y < 2.70000000000000018e-74 or 6.9999999999999998e71 < y < 1.45e128Initial program 97.3%
associate-/l*90.7%
associate-+l+90.7%
associate-/l*85.2%
Simplified85.2%
Taylor expanded in y around 0 66.3%
if 2.70000000000000018e-74 < y < 1.42000000000000004e-67Initial program 99.5%
associate-/l*63.6%
associate-+l+63.6%
associate-/l*63.6%
Simplified63.6%
Taylor expanded in b around 0 95.6%
Taylor expanded in x around 0 79.9%
times-frac80.0%
Simplified80.0%
if 1.42000000000000004e-67 < y < 6.60000000000000051e-32Initial program 99.7%
associate-/l*99.9%
associate-+l+99.9%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in x around inf 75.8%
Taylor expanded in a around 0 55.1%
if 6.60000000000000051e-32 < y < 6.9999999999999998e71Initial program 78.6%
associate-/l*84.1%
associate-+l+84.1%
associate-/l*89.3%
Simplified89.3%
Taylor expanded in b around 0 57.8%
Taylor expanded in x around 0 42.4%
*-commutative42.4%
times-frac48.1%
Applied egg-rr48.1%
Final simplification64.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) a)) (t_2 (/ x (+ 1.0 (/ (* y b) t)))))
(if (<= a -2.4e+27)
t_1
(if (<= a -8e-51)
(/ z b)
(if (<= a -1.15e-252)
t_2
(if (<= a 6.8e-214) (/ z b) (if (<= a 2500000.0) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / a;
double t_2 = x / (1.0 + ((y * b) / t));
double tmp;
if (a <= -2.4e+27) {
tmp = t_1;
} else if (a <= -8e-51) {
tmp = z / b;
} else if (a <= -1.15e-252) {
tmp = t_2;
} else if (a <= 6.8e-214) {
tmp = z / b;
} else if (a <= 2500000.0) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (x + ((y * z) / t)) / a
t_2 = x / (1.0d0 + ((y * b) / t))
if (a <= (-2.4d+27)) then
tmp = t_1
else if (a <= (-8d-51)) then
tmp = z / b
else if (a <= (-1.15d-252)) then
tmp = t_2
else if (a <= 6.8d-214) then
tmp = z / b
else if (a <= 2500000.0d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / a;
double t_2 = x / (1.0 + ((y * b) / t));
double tmp;
if (a <= -2.4e+27) {
tmp = t_1;
} else if (a <= -8e-51) {
tmp = z / b;
} else if (a <= -1.15e-252) {
tmp = t_2;
} else if (a <= 6.8e-214) {
tmp = z / b;
} else if (a <= 2500000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / a t_2 = x / (1.0 + ((y * b) / t)) tmp = 0 if a <= -2.4e+27: tmp = t_1 elif a <= -8e-51: tmp = z / b elif a <= -1.15e-252: tmp = t_2 elif a <= 6.8e-214: tmp = z / b elif a <= 2500000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / a) t_2 = Float64(x / Float64(1.0 + Float64(Float64(y * b) / t))) tmp = 0.0 if (a <= -2.4e+27) tmp = t_1; elseif (a <= -8e-51) tmp = Float64(z / b); elseif (a <= -1.15e-252) tmp = t_2; elseif (a <= 6.8e-214) tmp = Float64(z / b); elseif (a <= 2500000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + ((y * z) / t)) / a; t_2 = x / (1.0 + ((y * b) / t)); tmp = 0.0; if (a <= -2.4e+27) tmp = t_1; elseif (a <= -8e-51) tmp = z / b; elseif (a <= -1.15e-252) tmp = t_2; elseif (a <= 6.8e-214) tmp = z / b; elseif (a <= 2500000.0) tmp = t_2; else tmp = t_1; 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] / a), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(1.0 + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.4e+27], t$95$1, If[LessEqual[a, -8e-51], N[(z / b), $MachinePrecision], If[LessEqual[a, -1.15e-252], t$95$2, If[LessEqual[a, 6.8e-214], N[(z / b), $MachinePrecision], If[LessEqual[a, 2500000.0], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{a}\\
t_2 := \frac{x}{1 + \frac{y \cdot b}{t}}\\
\mathbf{if}\;a \leq -2.4 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-51}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-252}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-214}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 2500000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.39999999999999998e27 or 2.5e6 < a Initial program 80.4%
associate-/l*79.0%
associate-+l+79.0%
associate-/l*78.2%
Simplified78.2%
Taylor expanded in a around inf 70.7%
if -2.39999999999999998e27 < a < -8.0000000000000001e-51 or -1.1499999999999999e-252 < a < 6.7999999999999998e-214Initial program 63.0%
associate-/l*55.0%
associate-+l+55.0%
associate-/l*64.4%
Simplified64.4%
Taylor expanded in y around inf 57.7%
if -8.0000000000000001e-51 < a < -1.1499999999999999e-252 or 6.7999999999999998e-214 < a < 2.5e6Initial program 83.2%
associate-/l*83.5%
associate-+l+83.5%
associate-/l*79.2%
Simplified79.2%
Taylor expanded in x around inf 56.3%
Taylor expanded in a around 0 57.6%
Final simplification64.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= y -1.5e-12)
(/ z b)
(if (<= y 3.1e-75)
t_1
(if (<= y 9.5e-68)
(* (/ y t) (/ z (+ a 1.0)))
(if (<= y 1.5e+25) 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 <= -1.5e-12) {
tmp = z / b;
} else if (y <= 3.1e-75) {
tmp = t_1;
} else if (y <= 9.5e-68) {
tmp = (y / t) * (z / (a + 1.0));
} else if (y <= 1.5e+25) {
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 <= (-1.5d-12)) then
tmp = z / b
else if (y <= 3.1d-75) then
tmp = t_1
else if (y <= 9.5d-68) then
tmp = (y / t) * (z / (a + 1.0d0))
else if (y <= 1.5d+25) 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 <= -1.5e-12) {
tmp = z / b;
} else if (y <= 3.1e-75) {
tmp = t_1;
} else if (y <= 9.5e-68) {
tmp = (y / t) * (z / (a + 1.0));
} else if (y <= 1.5e+25) {
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 <= -1.5e-12: tmp = z / b elif y <= 3.1e-75: tmp = t_1 elif y <= 9.5e-68: tmp = (y / t) * (z / (a + 1.0)) elif y <= 1.5e+25: 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 <= -1.5e-12) tmp = Float64(z / b); elseif (y <= 3.1e-75) tmp = t_1; elseif (y <= 9.5e-68) tmp = Float64(Float64(y / t) * Float64(z / Float64(a + 1.0))); elseif (y <= 1.5e+25) 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 <= -1.5e-12) tmp = z / b; elseif (y <= 3.1e-75) tmp = t_1; elseif (y <= 9.5e-68) tmp = (y / t) * (z / (a + 1.0)); elseif (y <= 1.5e+25) 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, -1.5e-12], N[(z / b), $MachinePrecision], If[LessEqual[y, 3.1e-75], t$95$1, If[LessEqual[y, 9.5e-68], N[(N[(y / t), $MachinePrecision] * N[(z / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+25], t$95$1, N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{-12}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-68}:\\
\;\;\;\;\frac{y}{t} \cdot \frac{z}{a + 1}\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -1.5000000000000001e-12 or 1.50000000000000003e25 < y Initial program 56.7%
associate-/l*60.2%
associate-+l+60.2%
associate-/l*65.8%
Simplified65.8%
Taylor expanded in y around inf 60.3%
if -1.5000000000000001e-12 < y < 3.10000000000000007e-75 or 9.4999999999999997e-68 < y < 1.50000000000000003e25Initial program 96.2%
associate-/l*90.3%
associate-+l+90.3%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in y around 0 62.6%
if 3.10000000000000007e-75 < y < 9.4999999999999997e-68Initial program 99.5%
associate-/l*63.6%
associate-+l+63.6%
associate-/l*63.6%
Simplified63.6%
Taylor expanded in b around 0 95.6%
Taylor expanded in x around 0 79.9%
times-frac80.0%
Simplified80.0%
Final simplification61.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -6.2e+52) (not (<= y 1.95e+129))) (/ z b) (/ (+ x (* z (/ y t))) (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.2e+52) || !(y <= 1.95e+129)) {
tmp = z / b;
} else {
tmp = (x + (z * (y / t))) / (a + 1.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-6.2d+52)) .or. (.not. (y <= 1.95d+129))) then
tmp = z / b
else
tmp = (x + (z * (y / t))) / (a + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -6.2e+52) || !(y <= 1.95e+129)) {
tmp = z / b;
} else {
tmp = (x + (z * (y / t))) / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -6.2e+52) or not (y <= 1.95e+129): tmp = z / b else: tmp = (x + (z * (y / t))) / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -6.2e+52) || !(y <= 1.95e+129)) tmp = Float64(z / b); else tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -6.2e+52) || ~((y <= 1.95e+129))) tmp = z / b; else tmp = (x + (z * (y / t))) / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.2e+52], N[Not[LessEqual[y, 1.95e+129]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+52} \lor \neg \left(y \leq 1.95 \cdot 10^{+129}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\end{array}
\end{array}
if y < -6.2e52 or 1.9499999999999999e129 < y Initial program 47.6%
associate-/l*51.2%
associate-+l+51.2%
associate-/l*57.7%
Simplified57.7%
Taylor expanded in y around inf 69.2%
if -6.2e52 < y < 1.9499999999999999e129Initial program 94.0%
associate-/l*88.8%
associate-+l+88.8%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in b around 0 75.9%
*-commutative75.9%
associate-*r/75.9%
*-commutative75.9%
Applied egg-rr75.9%
Final simplification73.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.35e-13) (not (<= y 1.05e+27))) (/ z b) (/ x (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.35e-13) || !(y <= 1.05e+27)) {
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 <= (-1.35d-13)) .or. (.not. (y <= 1.05d+27))) 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 <= -1.35e-13) || !(y <= 1.05e+27)) {
tmp = z / b;
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.35e-13) or not (y <= 1.05e+27): tmp = z / b else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.35e-13) || !(y <= 1.05e+27)) 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 <= -1.35e-13) || ~((y <= 1.05e+27))) 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, -1.35e-13], N[Not[LessEqual[y, 1.05e+27]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{-13} \lor \neg \left(y \leq 1.05 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if y < -1.35000000000000005e-13 or 1.04999999999999997e27 < y Initial program 56.7%
associate-/l*60.2%
associate-+l+60.2%
associate-/l*65.8%
Simplified65.8%
Taylor expanded in y around inf 60.3%
if -1.35000000000000005e-13 < y < 1.04999999999999997e27Initial program 96.3%
associate-/l*89.2%
associate-+l+89.2%
associate-/l*84.5%
Simplified84.5%
Taylor expanded in y around 0 60.0%
Final simplification60.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.6e-15) (not (<= y 235.0))) (/ z b) (/ x a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.6e-15) || !(y <= 235.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 <= (-3.6d-15)) .or. (.not. (y <= 235.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 <= -3.6e-15) || !(y <= 235.0)) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.6e-15) or not (y <= 235.0): tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.6e-15) || !(y <= 235.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 <= -3.6e-15) || ~((y <= 235.0))) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.6e-15], N[Not[LessEqual[y, 235.0]], $MachinePrecision]], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{-15} \lor \neg \left(y \leq 235\right):\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if y < -3.6000000000000001e-15 or 235 < y Initial program 56.6%
associate-/l*60.0%
associate-+l+60.0%
associate-/l*65.4%
Simplified65.4%
Taylor expanded in y around inf 59.3%
if -3.6000000000000001e-15 < y < 235Initial program 97.6%
associate-/l*90.2%
associate-+l+90.2%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in x around inf 66.6%
Taylor expanded in a around inf 37.8%
Final simplification48.1%
(FPCore (x y z t a b) :precision binary64 (/ x a))
double code(double x, double y, double z, double t, double a, double b) {
return x / a;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / a;
}
def code(x, y, z, t, a, b): return x / a
function code(x, y, z, t, a, b) return Float64(x / a) end
function tmp = code(x, y, z, t, a, b) tmp = x / a; end
code[x_, y_, z_, t_, a_, b_] := N[(x / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a}
\end{array}
Initial program 77.9%
associate-/l*75.7%
associate-+l+75.7%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in x around inf 50.5%
Taylor expanded in a around inf 24.8%
Final simplification24.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(if (< t -1.3659085366310088e-271)
t_1
(if (< t 3.036967103737246e-130) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
if (t < (-1.3659085366310088d-271)) then
tmp = t_1
else if (t < 3.036967103737246d-130) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))) tmp = 0 if t < -1.3659085366310088e-271: tmp = t_1 elif t < 3.036967103737246e-130: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b))))) tmp = 0.0 if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))); tmp = 0.0; if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
\mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023322
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(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))))