
(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 16 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)) (+ (/ (* y b) t) (+ a 1.0))))
(t_2 (fma y (/ b t) a)))
(if (<= t_1 (- INFINITY))
(* z (+ (/ x (fma z t_2 z)) (/ y (fma t t_2 t))))
(if (<= t_1 -5e-304)
t_1
(if (<= t_1 0.0)
(- (/ z b) (/ (fma (- t) (/ x b) (/ (* z t) (* b b))) y))
(if (<= t_1 2e+307) 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)) / (((y * b) / t) + (a + 1.0));
double t_2 = fma(y, (b / t), a);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = z * ((x / fma(z, t_2, z)) + (y / fma(t, t_2, t)));
} else if (t_1 <= -5e-304) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z / b) - (fma(-t, (x / b), ((z * t) / (b * b))) / y);
} else if (t_1 <= 2e+307) {
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(Float64(y * b) / t) + Float64(a + 1.0))) t_2 = fma(y, Float64(b / t), a) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(x / fma(z, t_2, z)) + Float64(y / fma(t, t_2, t)))); elseif (t_1 <= -5e-304) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(z / b) - Float64(fma(Float64(-t), Float64(x / b), Float64(Float64(z * t) / Float64(b * b))) / y)); elseif (t_1 <= 2e+307) 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(z * N[(N[(x / N[(z * t$95$2 + z), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t * t$95$2 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-304], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z / b), $MachinePrecision] - N[(N[((-t) * N[(x / b), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+307], t$95$1, 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 := \mathsf{fma}\left(y, \frac{b}{t}, a\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{x}{\mathsf{fma}\left(z, t\_2, z\right)} + \frac{y}{\mathsf{fma}\left(t, t\_2, t\right)}\right)\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{z}{b} - \frac{\mathsf{fma}\left(-t, \frac{x}{b}, \frac{z \cdot t}{b \cdot b}\right)}{y}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;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 40.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-/.f64N/A
+-commutativeN/A
Simplified99.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.99999999999999965e-304 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.99999999999999997e307Initial program 99.7%
if -4.99999999999999965e-304 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 46.0%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6437.7
Simplified37.7%
Taylor expanded in y around -inf
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Simplified75.9%
if 1.99999999999999997e307 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 15.1%
Taylor expanded in y around inf
lower-/.f6471.1
Simplified71.1%
Final simplification91.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
(if (<= t_1 (- INFINITY))
(* y (/ z (fma y b t)))
(if (<= t_1 -5e-304)
t_1
(if (<= t_1 0.0)
(- (/ z b) (/ (fma (- t) (/ x b) (/ (* z t) (* b b))) y))
(if (<= t_1 2e+307) 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)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y * (z / fma(y, b, t));
} else if (t_1 <= -5e-304) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = (z / b) - (fma(-t, (x / b), ((z * t) / (b * b))) / y);
} else if (t_1 <= 2e+307) {
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(Float64(y * b) / t) + Float64(a + 1.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(y * Float64(z / fma(y, b, t))); elseif (t_1 <= -5e-304) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(Float64(z / b) - Float64(fma(Float64(-t), Float64(x / b), Float64(Float64(z * t) / Float64(b * b))) / y)); elseif (t_1 <= 2e+307) 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(z / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-304], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z / b), $MachinePrecision] - N[(N[((-t) * N[(x / b), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+307], t$95$1, 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)}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(y, b, t\right)}\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{z}{b} - \frac{\mathsf{fma}\left(-t, \frac{x}{b}, \frac{z \cdot t}{b \cdot b}\right)}{y}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;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 40.7%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6439.9
Simplified39.9%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6453.9
Simplified53.9%
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied egg-rr69.0%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999999999965e-304 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.99999999999999997e307Initial program 99.7%
if -4.99999999999999965e-304 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0Initial program 46.0%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6437.7
Simplified37.7%
Taylor expanded in y around -inf
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-/.f64N/A
Simplified75.9%
if 1.99999999999999997e307 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 15.1%
Taylor expanded in y around inf
lower-/.f6471.1
Simplified71.1%
Final simplification89.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t)))
(t_2 (/ t_1 (+ (/ (* y b) t) (+ a 1.0))))
(t_3 (/ t_1 (+ a 1.0))))
(if (<= t_2 (- INFINITY))
(* y (/ z (fma y b t)))
(if (<= t_2 -5e-304)
t_3
(if (<= t_2 4e-241)
(/ x (+ 1.0 (fma y (/ b t) a)))
(if (<= t_2 2e+307) t_3 (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double t_2 = t_1 / (((y * b) / t) + (a + 1.0));
double t_3 = t_1 / (a + 1.0);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = y * (z / fma(y, b, t));
} else if (t_2 <= -5e-304) {
tmp = t_3;
} else if (t_2 <= 4e-241) {
tmp = x / (1.0 + fma(y, (b / t), a));
} else if (t_2 <= 2e+307) {
tmp = t_3;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) t_2 = Float64(t_1 / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))) t_3 = Float64(t_1 / Float64(a + 1.0)) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(y * Float64(z / fma(y, b, t))); elseif (t_2 <= -5e-304) tmp = t_3; elseif (t_2 <= 4e-241) tmp = Float64(x / Float64(1.0 + fma(y, Float64(b / t), a))); elseif (t_2 <= 2e+307) tmp = t_3; else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(y * N[(z / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -5e-304], t$95$3, If[LessEqual[t$95$2, 4e-241], N[(x / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+307], t$95$3, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := \frac{t\_1}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
t_3 := \frac{t\_1}{a + 1}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(y, b, t\right)}\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-304}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq 4 \cdot 10^{-241}:\\
\;\;\;\;\frac{x}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 40.7%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6439.9
Simplified39.9%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6453.9
Simplified53.9%
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied egg-rr69.0%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999999999965e-304 or 3.9999999999999999e-241 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.99999999999999997e307Initial program 99.7%
Taylor expanded in y around 0
lower-+.f6481.1
Simplified81.1%
if -4.99999999999999965e-304 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 3.9999999999999999e-241Initial program 49.8%
Taylor expanded in x around inf
lower-/.f64N/A
lower-+.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6463.3
Simplified63.3%
if 1.99999999999999997e307 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 15.1%
Taylor expanded in y around inf
lower-/.f6471.1
Simplified71.1%
Final simplification75.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 (/ (fma z (/ y t) x) (+ a 1.0))))
(if (<= t_1 -1e-301)
t_2
(if (<= t_1 4e-241)
(/ x (+ 1.0 (fma y (/ b t) a)))
(if (<= t_1 INFINITY) t_2 (/ 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 = fma(z, (y / t), x) / (a + 1.0);
double tmp;
if (t_1 <= -1e-301) {
tmp = t_2;
} else if (t_1 <= 4e-241) {
tmp = x / (1.0 + fma(y, (b / t), a));
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_2;
} 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(fma(z, Float64(y / t), x) / Float64(a + 1.0)) tmp = 0.0 if (t_1 <= -1e-301) tmp = t_2; elseif (t_1 <= 4e-241) tmp = Float64(x / Float64(1.0 + fma(y, Float64(b / t), a))); elseif (t_1 <= Inf) tmp = t_2; 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-301], t$95$2, If[LessEqual[t$95$1, 4e-241], N[(x / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$2, 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{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + 1}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-301}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-241}:\\
\;\;\;\;\frac{x}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_2\\
\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))) < -1.00000000000000007e-301 or 3.9999999999999999e-241 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 88.0%
Taylor expanded in b around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f6474.9
Simplified74.9%
if -1.00000000000000007e-301 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 3.9999999999999999e-241Initial program 51.0%
Taylor expanded in x around inf
lower-/.f64N/A
lower-+.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6462.5
Simplified62.5%
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%
Taylor expanded in y around inf
lower-/.f6490.1
Simplified90.1%
Final simplification73.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
(if (<= t_1 (- INFINITY))
(* y (/ z (fma y b t)))
(if (<= t_1 2e+307) 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)) / (((y * b) / t) + (a + 1.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y * (z / fma(y, b, t));
} else if (t_1 <= 2e+307) {
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(Float64(y * b) / t) + Float64(a + 1.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(y * Float64(z / fma(y, b, t))); elseif (t_1 <= 2e+307) 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(z / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+307], t$95$1, 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)}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(y, b, t\right)}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;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 40.7%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6439.9
Simplified39.9%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6453.9
Simplified53.9%
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
Applied egg-rr69.0%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.99999999999999997e307Initial program 89.0%
if 1.99999999999999997e307 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 15.1%
Taylor expanded in y around inf
lower-/.f6471.1
Simplified71.1%
Final simplification84.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
(if (<= t_1 -1e+288)
(* z (* y (/ 1.0 (fma y b t))))
(if (<= t_1 5e+295) (/ x (+ 1.0 (fma b (/ y t) a))) (/ 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 tmp;
if (t_1 <= -1e+288) {
tmp = z * (y * (1.0 / fma(y, b, t)));
} else if (t_1 <= 5e+295) {
tmp = x / (1.0 + fma(b, (y / t), a));
} 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))) tmp = 0.0 if (t_1 <= -1e+288) tmp = Float64(z * Float64(y * Float64(1.0 / fma(y, b, t)))); elseif (t_1 <= 5e+295) tmp = Float64(x / Float64(1.0 + fma(b, Float64(y / t), a))); 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+288], N[(z * N[(y * N[(1.0 / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+295], N[(x / N[(1.0 + N[(b * N[(y / t), $MachinePrecision] + a), $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)}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+288}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{1}{\mathsf{fma}\left(y, b, t\right)}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+295}:\\
\;\;\;\;\frac{x}{1 + \mathsf{fma}\left(b, \frac{y}{t}, a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1e288Initial program 43.6%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6442.8
Simplified42.8%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6452.3
Simplified52.3%
lift-*.f64N/A
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
div-invN/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied egg-rr66.6%
if -1e288 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999991e295Initial program 88.9%
lift-*.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6488.9
Applied egg-rr88.9%
Taylor expanded in x around inf
lower-/.f64N/A
lower-+.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6465.1
Simplified65.1%
if 4.99999999999999991e295 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 17.3%
Taylor expanded in y around inf
lower-/.f6469.6
Simplified69.6%
Final simplification65.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (fma y (/ z t) x) (fma y (/ b t) (+ a 1.0)))))
(if (<= t -4e-181)
t_1
(if (<= t 2.9e-117) (* z (* y (/ 1.0 (fma y b t)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(y, (z / t), x) / fma(y, (b / t), (a + 1.0));
double tmp;
if (t <= -4e-181) {
tmp = t_1;
} else if (t <= 2.9e-117) {
tmp = z * (y * (1.0 / fma(y, b, t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(y, Float64(z / t), x) / fma(y, Float64(b / t), Float64(a + 1.0))) tmp = 0.0 if (t <= -4e-181) tmp = t_1; elseif (t <= 2.9e-117) tmp = Float64(z * Float64(y * Float64(1.0 / fma(y, b, t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(y * N[(b / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-181], t$95$1, If[LessEqual[t, 2.9e-117], N[(z * N[(y * N[(1.0 / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(y, \frac{b}{t}, a + 1\right)}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-181}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-117}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{1}{\mathsf{fma}\left(y, b, t\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.00000000000000019e-181 or 2.9000000000000001e-117 < t Initial program 82.1%
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-/.f6482.1
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6486.4
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6490.5
Applied egg-rr90.5%
if -4.00000000000000019e-181 < t < 2.9000000000000001e-117Initial program 55.8%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6432.6
Simplified32.6%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6439.0
Simplified39.0%
lift-*.f64N/A
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
div-invN/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied egg-rr59.7%
Final simplification81.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (fma z (/ y t) x) a)))
(if (<= a -1.0)
t_1
(if (<= a 1.15e-308)
(fma y (/ z t) x)
(if (<= a 1.7e-171)
(/ x (fma b (/ y t) 1.0))
(if (<= a 2.8e+20) (* z (* y (/ 1.0 (fma y b t)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(z, (y / t), x) / a;
double tmp;
if (a <= -1.0) {
tmp = t_1;
} else if (a <= 1.15e-308) {
tmp = fma(y, (z / t), x);
} else if (a <= 1.7e-171) {
tmp = x / fma(b, (y / t), 1.0);
} else if (a <= 2.8e+20) {
tmp = z * (y * (1.0 / fma(y, b, t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(z, Float64(y / t), x) / a) tmp = 0.0 if (a <= -1.0) tmp = t_1; elseif (a <= 1.15e-308) tmp = fma(y, Float64(z / t), x); elseif (a <= 1.7e-171) tmp = Float64(x / fma(b, Float64(y / t), 1.0)); elseif (a <= 2.8e+20) tmp = Float64(z * Float64(y * Float64(1.0 / fma(y, b, t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -1.0], t$95$1, If[LessEqual[a, 1.15e-308], N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 1.7e-171], N[(x / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e+20], N[(z * N[(y * N[(1.0 / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a}\\
\mathbf{if}\;a \leq -1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-308}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z}{t}, x\right)\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-171}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+20}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{1}{\mathsf{fma}\left(y, b, t\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1 or 2.8e20 < a Initial program 72.5%
Taylor expanded in a around inf
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f6472.3
Simplified72.3%
if -1 < a < 1.1499999999999999e-308Initial program 80.3%
Taylor expanded in y around 0
lower-+.f6465.8
Simplified65.8%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6466.1
Simplified66.1%
if 1.1499999999999999e-308 < a < 1.69999999999999993e-171Initial program 71.8%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6471.9
Simplified71.9%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6465.5
Simplified65.5%
if 1.69999999999999993e-171 < a < 2.8e20Initial program 74.5%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6465.5
Simplified65.5%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6446.1
Simplified46.1%
lift-*.f64N/A
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
div-invN/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied egg-rr61.7%
Final simplification67.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma y (/ z t) x)) (t_2 (/ t_1 a)))
(if (<= a -1.0)
t_2
(if (<= a -1.7e-308)
t_1
(if (<= a 3.6e-171)
(/ x (fma b (/ y t) 1.0))
(if (<= a 1.55e+20) (* z (* y (/ 1.0 (fma y b t)))) t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(y, (z / t), x);
double t_2 = t_1 / a;
double tmp;
if (a <= -1.0) {
tmp = t_2;
} else if (a <= -1.7e-308) {
tmp = t_1;
} else if (a <= 3.6e-171) {
tmp = x / fma(b, (y / t), 1.0);
} else if (a <= 1.55e+20) {
tmp = z * (y * (1.0 / fma(y, b, t)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(y, Float64(z / t), x) t_2 = Float64(t_1 / a) tmp = 0.0 if (a <= -1.0) tmp = t_2; elseif (a <= -1.7e-308) tmp = t_1; elseif (a <= 3.6e-171) tmp = Float64(x / fma(b, Float64(y / t), 1.0)); elseif (a <= 1.55e+20) tmp = Float64(z * Float64(y * Float64(1.0 / fma(y, b, t)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / a), $MachinePrecision]}, If[LessEqual[a, -1.0], t$95$2, If[LessEqual[a, -1.7e-308], t$95$1, If[LessEqual[a, 3.6e-171], N[(x / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e+20], N[(z * N[(y * N[(1.0 / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \frac{z}{t}, x\right)\\
t_2 := \frac{t\_1}{a}\\
\mathbf{if}\;a \leq -1:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-308}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{-171}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+20}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{1}{\mathsf{fma}\left(y, b, t\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1 or 1.55e20 < a Initial program 72.5%
lift-*.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6472.5
Applied egg-rr72.5%
Taylor expanded in a around inf
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6468.9
Simplified68.9%
if -1 < a < -1.7000000000000002e-308Initial program 80.3%
Taylor expanded in y around 0
lower-+.f6465.8
Simplified65.8%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6466.1
Simplified66.1%
if -1.7000000000000002e-308 < a < 3.60000000000000003e-171Initial program 71.8%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6471.9
Simplified71.9%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6465.5
Simplified65.5%
if 3.60000000000000003e-171 < a < 1.55e20Initial program 74.5%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6465.5
Simplified65.5%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6446.1
Simplified46.1%
lift-*.f64N/A
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
div-invN/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied egg-rr61.7%
Final simplification66.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -2.25e-53)
t_1
(if (<= t 4.8e+58) (* z (* y (/ 1.0 (fma y b t)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -2.25e-53) {
tmp = t_1;
} else if (t <= 4.8e+58) {
tmp = z * (y * (1.0 / fma(y, b, t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -2.25e-53) tmp = t_1; elseif (t <= 4.8e+58) tmp = Float64(z * Float64(y * Float64(1.0 / fma(y, b, t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.25e-53], t$95$1, If[LessEqual[t, 4.8e+58], N[(z * N[(y * N[(1.0 / N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -2.25 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+58}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{1}{\mathsf{fma}\left(y, b, t\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.24999999999999992e-53 or 4.8e58 < t Initial program 82.8%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6461.0
Simplified61.0%
if -2.24999999999999992e-53 < t < 4.8e58Initial program 66.6%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-*r/N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6436.0
Simplified36.0%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f6438.1
Simplified38.1%
lift-*.f64N/A
lift-*.f64N/A
lift-/.f64N/A
*-commutativeN/A
*-commutativeN/A
lift-fma.f64N/A
div-invN/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
Applied egg-rr53.6%
Final simplification57.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= a -3.3e+62)
(/ x a)
(if (<= a -1.03e-16)
(/ z b)
(if (<= a -8.5e-202) (- x (* x a)) (if (<= a 2.6e+22) (/ z b) (/ x a))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -3.3e+62) {
tmp = x / a;
} else if (a <= -1.03e-16) {
tmp = z / b;
} else if (a <= -8.5e-202) {
tmp = x - (x * a);
} else if (a <= 2.6e+22) {
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 (a <= (-3.3d+62)) then
tmp = x / a
else if (a <= (-1.03d-16)) then
tmp = z / b
else if (a <= (-8.5d-202)) then
tmp = x - (x * a)
else if (a <= 2.6d+22) 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 (a <= -3.3e+62) {
tmp = x / a;
} else if (a <= -1.03e-16) {
tmp = z / b;
} else if (a <= -8.5e-202) {
tmp = x - (x * a);
} else if (a <= 2.6e+22) {
tmp = z / b;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -3.3e+62: tmp = x / a elif a <= -1.03e-16: tmp = z / b elif a <= -8.5e-202: tmp = x - (x * a) elif a <= 2.6e+22: tmp = z / b else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -3.3e+62) tmp = Float64(x / a); elseif (a <= -1.03e-16) tmp = Float64(z / b); elseif (a <= -8.5e-202) tmp = Float64(x - Float64(x * a)); elseif (a <= 2.6e+22) 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 (a <= -3.3e+62) tmp = x / a; elseif (a <= -1.03e-16) tmp = z / b; elseif (a <= -8.5e-202) tmp = x - (x * a); elseif (a <= 2.6e+22) tmp = z / b; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -3.3e+62], N[(x / a), $MachinePrecision], If[LessEqual[a, -1.03e-16], N[(z / b), $MachinePrecision], If[LessEqual[a, -8.5e-202], N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e+22], N[(z / b), $MachinePrecision], N[(x / a), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.3 \cdot 10^{+62}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq -1.03 \cdot 10^{-16}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-202}:\\
\;\;\;\;x - x \cdot a\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+22}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -3.3e62 or 2.6e22 < a Initial program 71.6%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6448.1
Simplified48.1%
Taylor expanded in a around inf
lower-/.f6448.1
Simplified48.1%
if -3.3e62 < a < -1.03e-16 or -8.49999999999999963e-202 < a < 2.6e22Initial program 73.8%
Taylor expanded in y around inf
lower-/.f6439.4
Simplified39.4%
if -1.03e-16 < a < -8.49999999999999963e-202Initial program 86.3%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6462.2
Simplified62.2%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6462.2
Simplified62.2%
Final simplification46.0%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ a 1.0)))) (if (<= t -1.1e-53) t_1 (if (<= t 1.15e-47) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -1.1e-53) {
tmp = t_1;
} else if (t <= 1.15e-47) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a + 1.0d0)
if (t <= (-1.1d-53)) then
tmp = t_1
else if (t <= 1.15d-47) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -1.1e-53) {
tmp = t_1;
} else if (t <= 1.15e-47) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -1.1e-53: tmp = t_1 elif t <= 1.15e-47: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -1.1e-53) tmp = t_1; elseif (t <= 1.15e-47) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -1.1e-53) tmp = t_1; elseif (t <= 1.15e-47) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-53], t$95$1, If[LessEqual[t, 1.15e-47], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-47}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.10000000000000009e-53 or 1.14999999999999991e-47 < t Initial program 85.2%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6457.7
Simplified57.7%
if -1.10000000000000009e-53 < t < 1.14999999999999991e-47Initial program 59.6%
Taylor expanded in y around inf
lower-/.f6453.7
Simplified53.7%
Final simplification56.1%
(FPCore (x y z t a b) :precision binary64 (if (<= a -0.0066) (/ x a) (if (<= a 0.75) (- x (* x a)) (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -0.0066) {
tmp = x / a;
} else if (a <= 0.75) {
tmp = x - (x * a);
} 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 (a <= (-0.0066d0)) then
tmp = x / a
else if (a <= 0.75d0) then
tmp = x - (x * a)
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 (a <= -0.0066) {
tmp = x / a;
} else if (a <= 0.75) {
tmp = x - (x * a);
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -0.0066: tmp = x / a elif a <= 0.75: tmp = x - (x * a) else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -0.0066) tmp = Float64(x / a); elseif (a <= 0.75) tmp = Float64(x - Float64(x * a)); else tmp = Float64(x / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -0.0066) tmp = x / a; elseif (a <= 0.75) tmp = x - (x * a); else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -0.0066], N[(x / a), $MachinePrecision], If[LessEqual[a, 0.75], N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision], N[(x / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.0066:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq 0.75:\\
\;\;\;\;x - x \cdot a\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -0.0066 or 0.75 < a Initial program 73.9%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6442.1
Simplified42.1%
Taylor expanded in a around inf
lower-/.f6442.2
Simplified42.2%
if -0.0066 < a < 0.75Initial program 75.4%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6437.2
Simplified37.2%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6436.8
Simplified36.8%
Final simplification39.3%
(FPCore (x y z t a b) :precision binary64 (- x (* x a)))
double code(double x, double y, double z, double t, double a, double b) {
return x - (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 - (x * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x - (x * a);
}
def code(x, y, z, t, a, b): return x - (x * a)
function code(x, y, z, t, a, b) return Float64(x - Float64(x * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x - (x * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - x \cdot a
\end{array}
Initial program 74.7%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6439.5
Simplified39.5%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6420.9
Simplified20.9%
Final simplification20.9%
(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(-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}
\\
-x \cdot a
\end{array}
Initial program 74.7%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6439.5
Simplified39.5%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6420.9
Simplified20.9%
Taylor expanded in a around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f643.1
Simplified3.1%
Final simplification3.1%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 74.7%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6439.5
Simplified39.5%
Taylor expanded in a around 0
Simplified21.5%
Final simplification21.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(if (< t -1.3659085366310088e-271)
t_1
(if (< t 3.036967103737246e-130) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
if (t < (-1.3659085366310088d-271)) then
tmp = t_1
else if (t < 3.036967103737246d-130) then
tmp = z / b
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))) tmp = 0 if t < -1.3659085366310088e-271: tmp = t_1 elif t < 3.036967103737246e-130: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b))))) tmp = 0.0 if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))); tmp = 0.0; if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
\mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024207
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1707385670788761/12500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))) (if (< t 1518483551868623/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ z b) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))