Average Error: 29.5 → 15.6
Time: 18.4s
Precision: 64
Internal Precision: 128
\[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
\[\begin{array}{l} \mathbf{if}\;x \le -4114.114716486494:\\ \;\;\;\;(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) + \left((\frac{1}{3} \cdot \left(\sqrt[3]{\frac{1}{x \cdot x}}\right) + \left(\sqrt[3]{\frac{1}{{x}^{8}}} \cdot \frac{5}{81}\right))_*\right))_*\\ \mathbf{elif}\;x \le 3865.8211024413467:\\ \;\;\;\;\frac{\sqrt[3]{(x \cdot \left(x \cdot x\right) + 1)_*}}{\sqrt[3]{\left(1 - x\right) + x \cdot x}} - \sqrt[3]{x}\\ \mathbf{else}:\\ \;\;\;\;(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) + \left((\frac{1}{3} \cdot \left(\sqrt[3]{\frac{1}{x \cdot x}}\right) + \left(\sqrt[3]{\frac{1}{{x}^{8}}} \cdot \frac{5}{81}\right))_*\right))_*\\ \end{array}\]

Error

Bits error versus x

Derivation

  1. Split input into 2 regimes
  2. if x < -4114.114716486494 or 3865.8211024413467 < x

    1. Initial program 60.1

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Taylor expanded around inf 39.8

      \[\leadsto \color{blue}{\left(\frac{1}{3} \cdot {\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}} + \frac{5}{81} \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}}\right) - \frac{1}{9} \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}}\]
    3. Simplified31.8

      \[\leadsto \color{blue}{(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) + \left((\frac{1}{3} \cdot \left(\sqrt[3]{\frac{1}{x \cdot x}}\right) + \left(\sqrt[3]{\frac{1}{{x}^{8}}} \cdot \frac{5}{81}\right))_*\right))_*}\]

    if -4114.114716486494 < x < 3865.8211024413467

    1. Initial program 0.1

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Using strategy rm
    3. Applied flip3-+0.1

      \[\leadsto \sqrt[3]{\color{blue}{\frac{{x}^{3} + {1}^{3}}{x \cdot x + \left(1 \cdot 1 - x \cdot 1\right)}}} - \sqrt[3]{x}\]
    4. Applied cbrt-div0.1

      \[\leadsto \color{blue}{\frac{\sqrt[3]{{x}^{3} + {1}^{3}}}{\sqrt[3]{x \cdot x + \left(1 \cdot 1 - x \cdot 1\right)}}} - \sqrt[3]{x}\]
    5. Simplified0.1

      \[\leadsto \frac{\color{blue}{\sqrt[3]{(x \cdot \left(x \cdot x\right) + 1)_*}}}{\sqrt[3]{x \cdot x + \left(1 \cdot 1 - x \cdot 1\right)}} - \sqrt[3]{x}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification15.6

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \le -4114.114716486494:\\ \;\;\;\;(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) + \left((\frac{1}{3} \cdot \left(\sqrt[3]{\frac{1}{x \cdot x}}\right) + \left(\sqrt[3]{\frac{1}{{x}^{8}}} \cdot \frac{5}{81}\right))_*\right))_*\\ \mathbf{elif}\;x \le 3865.8211024413467:\\ \;\;\;\;\frac{\sqrt[3]{(x \cdot \left(x \cdot x\right) + 1)_*}}{\sqrt[3]{\left(1 - x\right) + x \cdot x}} - \sqrt[3]{x}\\ \mathbf{else}:\\ \;\;\;\;(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) + \left((\frac{1}{3} \cdot \left(\sqrt[3]{\frac{1}{x \cdot x}}\right) + \left(\sqrt[3]{\frac{1}{{x}^{8}}} \cdot \frac{5}{81}\right))_*\right))_*\\ \end{array}\]

Reproduce

herbie shell --seed 2019068 +o rules:numerics
(FPCore (x)
  :name "2cbrt (problem 3.3.4)"
  (- (cbrt (+ x 1)) (cbrt x)))