Average Error: 30.3 → 0.6
Time: 18.0s
Precision: 64
Internal Precision: 1344
\[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
\[\begin{array}{l} \mathbf{if}\;x \le -0.9976513072608487 \lor \neg \left(x \le 4088.103026935574\right):\\ \;\;\;\;\frac{(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{4}}}\right) + \left((\left(\sqrt[3]{\frac{1}{{x}^{7}}}\right) \cdot \frac{4}{81} + \left(\sqrt[3]{\frac{1}{x}} \cdot \frac{2}{3}\right))_*\right))_*}{\sqrt[3]{x} + \sqrt[3]{x + 1}}\\ \mathbf{else}:\\ \;\;\;\;(\left(\sqrt{\sqrt[3]{x + 1}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}}\right) + \left(-\sqrt[3]{x}\right))_*\\ \end{array}\]

Error

Bits error versus x

Derivation

  1. Split input into 2 regimes
  2. if x < -0.9976513072608487 or 4088.103026935574 < x

    1. Initial program 60.0

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Initial simplification60.0

      \[\leadsto \sqrt[3]{1 + x} - \sqrt[3]{x}\]
    3. Using strategy rm
    4. Applied flip--60.0

      \[\leadsto \color{blue}{\frac{\sqrt[3]{1 + x} \cdot \sqrt[3]{1 + x} - \sqrt[3]{x} \cdot \sqrt[3]{x}}{\sqrt[3]{1 + x} + \sqrt[3]{x}}}\]
    5. Taylor expanded around inf 34.1

      \[\leadsto \frac{\color{blue}{\left(\frac{4}{81} \cdot {\left(\frac{1}{{x}^{7}}\right)}^{\frac{1}{3}} + \frac{2}{3} \cdot {\left(\frac{1}{x}\right)}^{\frac{1}{3}}\right) - \frac{1}{9} \cdot {\left(\frac{1}{{x}^{4}}\right)}^{\frac{1}{3}}}}{\sqrt[3]{1 + x} + \sqrt[3]{x}}\]
    6. Simplified1.2

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

    if -0.9976513072608487 < x < 4088.103026935574

    1. Initial program 0.1

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Initial simplification0.1

      \[\leadsto \sqrt[3]{1 + x} - \sqrt[3]{x}\]
    3. Using strategy rm
    4. Applied add-sqr-sqrt0.1

      \[\leadsto \color{blue}{\sqrt{\sqrt[3]{1 + x}} \cdot \sqrt{\sqrt[3]{1 + x}}} - \sqrt[3]{x}\]
    5. Applied fma-neg0.1

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \le -0.9976513072608487 \lor \neg \left(x \le 4088.103026935574\right):\\ \;\;\;\;\frac{(\frac{-1}{9} \cdot \left(\sqrt[3]{\frac{1}{{x}^{4}}}\right) + \left((\left(\sqrt[3]{\frac{1}{{x}^{7}}}\right) \cdot \frac{4}{81} + \left(\sqrt[3]{\frac{1}{x}} \cdot \frac{2}{3}\right))_*\right))_*}{\sqrt[3]{x} + \sqrt[3]{x + 1}}\\ \mathbf{else}:\\ \;\;\;\;(\left(\sqrt{\sqrt[3]{x + 1}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}}\right) + \left(-\sqrt[3]{x}\right))_*\\ \end{array}\]

Runtime

Time bar (total: 18.0s)Debug logProfile

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