\[\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 := y \cdot \left(c + y \cdot \left(\left(y + a\right) \cdot y + b\right)\right) + i\\
t_2 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+53}:\\
\;\;\;\;\frac{t}{t_1} + \frac{\left(230661.510616 + y \cdot \left(27464.7644705 + \left(y \cdot x + z\right) \cdot y\right)\right) \cdot y}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\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 (+ (* y (+ c (* y (+ (* (+ y a) y) b)))) i))
(t_2 (+ (/ (- z (* a x)) y) x)))
(if (<= y -2.4e+55)
t_2
(if (<= y 2.8e+53)
(+
(/ t t_1)
(/
(* (+ 230661.510616 (* y (+ 27464.7644705 (* (+ (* y x) z) y)))) y)
t_1))
t_2))))
\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 := y \cdot \left(c + y \cdot \left(\left(y + a\right) \cdot y + b\right)\right) + i\\
t_2 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+53}:\\
\;\;\;\;\frac{t}{t_1} + \frac{\left(230661.510616 + y \cdot \left(27464.7644705 + \left(y \cdot x + z\right) \cdot y\right)\right) \cdot y}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\[\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}
\]
\[\leadsto \color{blue}{\frac{z - a \cdot x}{y} + x}
\]
Proof
if -2.3999999999999999e55 < y < 2.8e53
Initial program 4.7
\[\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}
\]
Taylor expanded in t around inf 4.7
\[\leadsto \color{blue}{\frac{t}{y \cdot \left(c + y \cdot \left(\left(y + a\right) \cdot y + b\right)\right) + i} + \frac{\left(230661.510616 + y \cdot \left(27464.7644705 + \left(y \cdot x + z\right) \cdot y\right)\right) \cdot y}{y \cdot \left(c + y \cdot \left(\left(y + a\right) \cdot y + b\right)\right) + i}}
\]
Recombined 2 regimes into one program.
Alternatives
Alternative 1
Error
11.0
Cost
2376
\[\begin{array}{l}
t_1 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+55}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+53}:\\
\;\;\;\;\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}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2
Error
13.7
Cost
2120
\[\begin{array}{l}
t_1 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -2.55 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+71}:\\
\;\;\;\;\frac{\left(\left(y \cdot z + 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}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3
Error
16.5
Cost
1996
\[\begin{array}{l}
t_1 := \left(y + a\right) \cdot y + b\\
t_2 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.1 \cdot 10^{-30}:\\
\;\;\;\;\frac{y \cdot \left(230661.510616 + y \cdot \left(y \cdot z + 27464.7644705\right)\right)}{y \cdot \left(c + y \cdot t_1\right) + i}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+71}:\\
\;\;\;\;\frac{\left(y \cdot 27464.7644705 + 230661.510616\right) \cdot y + t}{\left(t_1 \cdot y + c\right) \cdot y + i}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
Alternative 4
Error
16.3
Cost
1864
\[\begin{array}{l}
t_1 := \frac{z - a \cdot x}{y} + x\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+75}:\\
\;\;\;\;\frac{\left(y \cdot 27464.7644705 + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
herbie shell --seed 2023033
(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)))