\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\begin{array}{l}
t_1 := \left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -2.272902588163801 \cdot 10^{+61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.23800295045285 \cdot 10^{+47}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right), 230661.510616\right), t\right)}{\mathsf{fma}\left(y, \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right), i\right)}\\
\mathbf{elif}\;y \leq 6.282223158418467 \cdot 10^{+118}:\\
\;\;\;\;\frac{1}{\left(\frac{1}{x} + \frac{a}{y \cdot x}\right) - \frac{z}{y \cdot {x}^{2}}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ (/ z y) x) (/ (* x a) y))))
(if (<= y -2.272902588163801e+61)
t_1
(if (<= y 2.23800295045285e+47)
(/
(fma y (fma y (fma y (fma x y z) 27464.7644705) 230661.510616) t)
(fma y (fma y (fma y (+ y a) b) c) i))
(if (<= y 6.282223158418467e+118)
(/ 1.0 (- (+ (/ 1.0 x) (/ a (* y x))) (/ z (* y (pow x 2.0)))))
t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((z / y) + x) - ((x * a) / y);
double tmp;
if (y <= -2.272902588163801e+61) {
tmp = t_1;
} else if (y <= 2.23800295045285e+47) {
tmp = fma(y, fma(y, fma(y, fma(x, y, z), 27464.7644705), 230661.510616), t) / fma(y, fma(y, fma(y, (y + a), b), c), i);
} else if (y <= 6.282223158418467e+118) {
tmp = 1.0 / (((1.0 / x) + (a / (y * x))) - (z / (y * pow(x, 2.0))));
} else {
tmp = t_1;
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a



Bits error versus b



Bits error versus c



Bits error versus i
if y < -2.27290258816380094e61 or 6.28222315841846713e118 < y Initial program 63.3
Simplified63.3
Taylor expanded in y around inf 17.7
if -2.27290258816380094e61 < y < 2.2380029504528501e47Initial program 4.3
Simplified4.3
Applied add-cube-cbrt_binary644.5
Applied pow1/3_binary6412.2
Applied pow1/3_binary6412.4
Applied pow1/3_binary6412.5
Applied pow-prod-up_binary6412.5
Applied pow-prod-up_binary644.3
Simplified4.3
if 2.2380029504528501e47 < y < 6.28222315841846713e118Initial program 56.4
Simplified56.4
Applied clear-num_binary6456.4
Taylor expanded in y around inf 41.1
Final simplification11.4
herbie shell --seed 2022093
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
:precision binary64
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))