Average Error: 29.7 → 0.6
Time: 52.9s
Precision: 64
Internal Precision: 1344
\[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
\[\begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \le 1.7918205230671447 \cdot 10^{-07}:\\ \;\;\;\;(\left(\frac{\sqrt[3]{x}}{x \cdot x}\right) \cdot \left(\frac{-1}{9} + \frac{\frac{5}{81}}{x}\right) + \left(\frac{\sqrt[3]{x}}{\frac{x}{\frac{1}{3}}}\right))_*\\ \mathbf{else}:\\ \;\;\;\;\frac{{\left(\sqrt[3]{1 + x}\right)}^{3} - x}{\sqrt[3]{1 + x} \cdot \sqrt[3]{1 + x} + \left(\sqrt[3]{1 + x} \cdot \sqrt[3]{x} + \sqrt[3]{x} \cdot \sqrt[3]{x}\right)}\\ \end{array}\]

Error

Bits error versus x

Derivation

  1. Split input into 2 regimes
  2. if (- (cbrt (+ x 1)) (cbrt x)) < 1.7918205230671447e-07

    1. Initial program 60.9

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

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

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

    if 1.7918205230671447e-07 < (- (cbrt (+ x 1)) (cbrt x))

    1. Initial program 0.5

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

      \[\leadsto \color{blue}{\frac{{\left(\sqrt[3]{x + 1}\right)}^{3} - {\left(\sqrt[3]{x}\right)}^{3}}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)}}\]
    4. Taylor expanded around inf 0.5

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

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

Runtime

Time bar (total: 52.9s)Debug logProfile

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