Average Error: 27.8 → 10.3
Time: 2.9m
Precision: 64
Internal Precision: 576
\[\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} \mathbf{if}\;y \le -1.594606015548626 \cdot 10^{+74}:\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{if}\;y \le -4.311924172286897 \cdot 10^{-68}:\\ \;\;\;\;\left(\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\right) \cdot \frac{1}{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}\\ \mathbf{if}\;y \le 1.6358816848784117 \cdot 10^{-96}:\\ \;\;\;\;\frac{(y \cdot \left((27464.7644705 \cdot y + 230661.510616)_*\right) + t)_*}{(\left((\left(y \cdot y\right) \cdot \left(a + y\right) + \left((b \cdot y + c)_*\right))_*\right) \cdot y + i)_*}\\ \mathbf{if}\;y \le 9.191291938498792 \cdot 10^{+43}:\\ \;\;\;\;\left(\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\right) \cdot \frac{1}{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{y} + x\\ \end{array}\]

Error

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

Derivation

  1. Split input into 3 regimes
  2. if y < -1.594606015548626e+74 or 9.191291938498792e+43 < y

    1. Initial program 61.3

      \[\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}\]
    2. Using strategy rm
    3. Applied add-cube-cbrt61.3

      \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\color{blue}{\left(\sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot \sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\right) \cdot \sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}}}\]
    4. Applied *-un-lft-identity61.3

      \[\leadsto \frac{\color{blue}{1 \cdot \left(\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\right)}}{\left(\sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot \sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\right) \cdot \sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}}\]
    5. Applied times-frac61.3

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot \sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \cdot \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}}}\]
    6. Applied simplify61.3

      \[\leadsto \color{blue}{\frac{\frac{1}{\sqrt[3]{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}}}{\sqrt[3]{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}}} \cdot \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\sqrt[3]{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}}\]
    7. Applied simplify61.3

      \[\leadsto \frac{\frac{1}{\sqrt[3]{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}}}{\sqrt[3]{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}} \cdot \color{blue}{\frac{(\left((\left(y \cdot y\right) \cdot \left((x \cdot y + z)_*\right) + \left((y \cdot 27464.7644705 + 230661.510616)_*\right))_*\right) \cdot y + t)_*}{\sqrt[3]{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((c \cdot y + i)_*\right))_*}}}\]
    8. Taylor expanded around inf 16.9

      \[\leadsto \color{blue}{\frac{z}{y} + x}\]

    if -1.594606015548626e+74 < y < -4.311924172286897e-68 or 1.6358816848784117e-96 < y < 9.191291938498792e+43

    1. Initial program 12.6

      \[\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}\]
    2. Using strategy rm
    3. Applied div-inv12.6

      \[\leadsto \color{blue}{\left(\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\right) \cdot \frac{1}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}}\]
    4. Applied simplify12.6

      \[\leadsto \left(\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t\right) \cdot \color{blue}{\frac{1}{(\left((\left(y + a\right) \cdot y + b)_*\right) \cdot \left(y \cdot y\right) + \left((y \cdot c + i)_*\right))_*}}\]

    if -4.311924172286897e-68 < y < 1.6358816848784117e-96

    1. Initial program 0.1

      \[\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}\]
    2. Taylor expanded around 0 1.3

      \[\leadsto \frac{\left(\color{blue}{27464.7644705 \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}\]
    3. Applied simplify1.3

      \[\leadsto \color{blue}{\frac{(y \cdot \left((27464.7644705 \cdot y + 230661.510616)_*\right) + t)_*}{(\left((\left(y \cdot y\right) \cdot \left(a + y\right) + \left((b \cdot y + c)_*\right))_*\right) \cdot y + i)_*}}\]
  3. Recombined 3 regimes into one program.

Runtime

Time bar (total: 2.9m)Debug logProfile

herbie shell --seed '#(1071725047 233389029 2036512464 3988615230 2972226563 1111574017)' +o rules:numerics
(FPCore (x y z t a b c i)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
  (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))