Average Error: 28.8 → 10.2
Time: 1.7m
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 -7.139528896761364 \cdot 10^{+51} \lor \neg \left(y \le 3.21472896979776 \cdot 10^{+45}\right):\\ \;\;\;\;x + \frac{z}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot \left(\left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right) \cdot y + 230661.510616\right) + t\right) \cdot \frac{1}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\ \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 < -7.139528896761364e+51 or 3.21472896979776e+45 < y

    1. Initial program 60.9

      \[\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.9

      \[\leadsto \frac{\left(\color{blue}{\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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}\]
    4. Using strategy rm
    5. Applied add-cube-cbrt60.9

      \[\leadsto \frac{\left(\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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}}}\]
    6. Applied *-un-lft-identity60.9

      \[\leadsto \frac{\color{blue}{1 \cdot \left(\left(\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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}}\]
    7. Applied times-frac60.9

      \[\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(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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}}}\]
    8. Simplified60.9

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{(\left((\left(y + a\right) \cdot \left(y \cdot y\right) + \left((b \cdot y + c)_*\right))_*\right) \cdot y + i)_*} \cdot \sqrt[3]{(\left((\left(y + a\right) \cdot \left(y \cdot y\right) + \left((b \cdot y + c)_*\right))_*\right) \cdot y + i)_*}}} \cdot \frac{\left(\left(\sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y} \cdot \sqrt[3]{\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y}\right) \cdot \sqrt[3]{\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}}\]
    9. Simplified60.9

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

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

    if -7.139528896761364e+51 < y < 3.21472896979776e+45

    1. Initial program 3.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}\]
    2. Using strategy rm
    3. Applied div-inv3.8

      \[\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}}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification10.2

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \le -7.139528896761364 \cdot 10^{+51} \lor \neg \left(y \le 3.21472896979776 \cdot 10^{+45}\right):\\ \;\;\;\;x + \frac{z}{y}\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot \left(\left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right) \cdot y + 230661.510616\right) + t\right) \cdot \frac{1}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\ \end{array}\]

Runtime

Time bar (total: 1.7m)Debug logProfile

herbie shell --seed 2018227 +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)))