\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 -1.7184192923199055 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.10858943953574 \cdot 10^{+48}:\\
\;\;\;\;\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{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 -1.7184192923199055e+54)
t_1
(if (<= y 2.10858943953574e+48)
(/
(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))
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 <= -1.7184192923199055e+54) {
tmp = t_1;
} else if (y <= 2.10858943953574e+48) {
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 {
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 < -1.71841929231990548e54 or 2.10858943953574004e48 < y Initial program 62.4
Simplified62.4
Taylor expanded in y around inf 20.5
if -1.71841929231990548e54 < y < 2.10858943953574004e48Initial program 4.1
Simplified4.1
Applied add-cube-cbrt_binary644.2
Applied pow1/3_binary6412.6
Applied pow1/3_binary6412.7
Applied pow1/3_binary6412.8
Applied pow-sqr_binary6412.8
Applied pow-prod-up_binary644.1
Final simplification11.2
herbie shell --seed 2022077
(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)))