Average Error: 29.7 → 15.9
Time: 23.8s
Precision: 64
Internal Precision: 1344
\[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
\[\begin{array}{l} \mathbf{if}\;x \le -3866.66165747642 \lor \neg \left(x \le 4162.679016029988\right):\\ \;\;\;\;(\left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) \cdot \frac{-1}{9} + \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{else}:\\ \;\;\;\;(\left(\sqrt[3]{\sqrt[3]{1 + x} \cdot \sqrt[3]{1 + x}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{1 + x}}\right) + \left(-\sqrt[3]{x}\right))_*\\ \end{array}\]

Error

Bits error versus x

Derivation

  1. Split input into 2 regimes
  2. if x < -3866.66165747642 or 4162.679016029988 < x

    1. Initial program 60.2

      \[\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. Simplified32.1

      \[\leadsto \color{blue}{(\left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) \cdot \frac{-1}{9} + \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 -3866.66165747642 < x < 4162.679016029988

    1. Initial program 0.1

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Using strategy rm
    3. Applied add-cube-cbrt0.2

      \[\leadsto \color{blue}{\left(\sqrt[3]{\sqrt[3]{x + 1}} \cdot \sqrt[3]{\sqrt[3]{x + 1}}\right) \cdot \sqrt[3]{\sqrt[3]{x + 1}}} - \sqrt[3]{x}\]
    4. Applied fma-neg0.2

      \[\leadsto \color{blue}{(\left(\sqrt[3]{\sqrt[3]{x + 1}} \cdot \sqrt[3]{\sqrt[3]{x + 1}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{x + 1}}\right) + \left(-\sqrt[3]{x}\right))_*}\]
    5. Using strategy rm
    6. Applied cbrt-unprod0.1

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \le -3866.66165747642 \lor \neg \left(x \le 4162.679016029988\right):\\ \;\;\;\;(\left(\sqrt[3]{\frac{1}{{x}^{5}}}\right) \cdot \frac{-1}{9} + \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{else}:\\ \;\;\;\;(\left(\sqrt[3]{\sqrt[3]{1 + x} \cdot \sqrt[3]{1 + x}}\right) \cdot \left(\sqrt[3]{\sqrt[3]{1 + x}}\right) + \left(-\sqrt[3]{x}\right))_*\\ \end{array}\]

Runtime

Time bar (total: 23.8s)Debug logProfile

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