Average Error: 28.4 → 10.2
Time: 4.4m
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.2604829776599755 \cdot 10^{+38} \lor \neg \left(y \le 1.1512204848674603 \cdot 10^{+73}\right):\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{else}:\\ \;\;\;\;\frac{t + \left(\left(y \cdot \left(z + x \cdot y\right) + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(\left(b + y \cdot \left(a + y\right)\right) \cdot y + c\right) \cdot y}\\ \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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if y < -1.2604829776599755e+38 or 1.1512204848674603e+73 < y

    1. Initial program 60.8

      \[\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-cbrt60.8

      \[\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-identity60.8

      \[\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-frac60.8

      \[\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. Taylor expanded around inf 17.7

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

    if -1.2604829776599755e+38 < y < 1.1512204848674603e+73

    1. 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}\]
  3. Recombined 2 regimes into one program.
  4. Applied simplify10.2

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;y \le -1.2604829776599755 \cdot 10^{+38} \lor \neg \left(y \le 1.1512204848674603 \cdot 10^{+73}\right):\\ \;\;\;\;\frac{z}{y} + x\\ \mathbf{else}:\\ \;\;\;\;\frac{t + \left(\left(y \cdot \left(z + x \cdot y\right) + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y}{i + \left(\left(b + y \cdot \left(a + y\right)\right) \cdot y + c\right) \cdot y}\\ \end{array}}\]

Runtime

Time bar (total: 4.4m)Debug logProfile

herbie shell --seed 2018166 
(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)))