\[{\left(x + 1\right)}^{\left(\frac{1}{3}\right)} - {x}^{\left(\frac{1}{3}\right)}\]
Test:
NMSE problem 3.3.4
Bits:
128 bits
Bits error versus x
Time: 11.3 s
Input Error: 20.1
Output Error: 13.0
Log:
Profile: 🕒
\(\begin{cases} \sqrt[3]{1 + x} - \sqrt[3]{x} & \text{when } x \le 7639594.5f0 \\ \left(\sqrt[3]{\frac{1}{x}} - \frac{1}{9} \cdot \sqrt[3]{\frac{1}{{x}^{7}}}\right) - \left({x}^{\frac{-1}{3}} - \frac{1}{3} \cdot \sqrt[3]{\frac{1}{{x}^{4}}}\right) & \text{otherwise} \end{cases}\)

    if x < 7639594.5f0

    1. Started with
      \[{\left(x + 1\right)}^{\left(\frac{1}{3}\right)} - {x}^{\left(\frac{1}{3}\right)}\]
      20.0
    2. Using strategy rm
      20.0
    3. Applied add-cube-cbrt to get
      \[\color{red}{{\left(x + 1\right)}^{\left(\frac{1}{3}\right)}} - {x}^{\left(\frac{1}{3}\right)} \leadsto \color{blue}{{\left(\sqrt[3]{{\left(x + 1\right)}^{\left(\frac{1}{3}\right)}}\right)}^3} - {x}^{\left(\frac{1}{3}\right)}\]
      20.1
    4. Applied taylor to get
      \[{\left(\sqrt[3]{{\left(x + 1\right)}^{\left(\frac{1}{3}\right)}}\right)}^3 - {x}^{\left(\frac{1}{3}\right)} \leadsto {\left(1 + x\right)}^{\frac{1}{3}} - {x}^{\frac{1}{3}}\]
      20.0
    5. Taylor expanded around 0 to get
      \[\color{red}{{\left(1 + x\right)}^{\frac{1}{3}} - {x}^{\frac{1}{3}}} \leadsto \color{blue}{{\left(1 + x\right)}^{\frac{1}{3}} - {x}^{\frac{1}{3}}}\]
      20.0
    6. Applied simplify to get
      \[{\left(1 + x\right)}^{\frac{1}{3}} - {x}^{\frac{1}{3}} \leadsto \sqrt[3]{1 + x} - \sqrt[3]{x}\]
      8.9

    7. Applied final simplification

    if 7639594.5f0 < x

    1. Started with
      \[{\left(x + 1\right)}^{\left(\frac{1}{3}\right)} - {x}^{\left(\frac{1}{3}\right)}\]
      20.5
    2. Using strategy rm
      20.5
    3. Applied add-sqr-sqrt to get
      \[\color{red}{{\left(x + 1\right)}^{\left(\frac{1}{3}\right)}} - {x}^{\left(\frac{1}{3}\right)} \leadsto \color{blue}{{\left(\sqrt{{\left(x + 1\right)}^{\left(\frac{1}{3}\right)}}\right)}^2} - {x}^{\left(\frac{1}{3}\right)}\]
      29.8
    4. Applied taylor to get
      \[{\left(\sqrt{{\left(x + 1\right)}^{\left(\frac{1}{3}\right)}}\right)}^2 - {x}^{\left(\frac{1}{3}\right)} \leadsto \left(\frac{1}{3} \cdot {\left(\frac{1}{{x}^{4}}\right)}^{\frac{1}{3}} + {\left(\frac{1}{x}\right)}^{\frac{1}{3}}\right) - \left(\frac{1}{9} \cdot {\left(\frac{1}{{x}^{7}}\right)}^{\frac{1}{3}} + {x}^{\frac{-1}{3}}\right)\]
      19.3
    5. Taylor expanded around inf to get
      \[\color{red}{\left(\frac{1}{3} \cdot {\left(\frac{1}{{x}^{4}}\right)}^{\frac{1}{3}} + {\left(\frac{1}{x}\right)}^{\frac{1}{3}}\right) - \left(\frac{1}{9} \cdot {\left(\frac{1}{{x}^{7}}\right)}^{\frac{1}{3}} + {x}^{\frac{-1}{3}}\right)} \leadsto \color{blue}{\left(\frac{1}{3} \cdot {\left(\frac{1}{{x}^{4}}\right)}^{\frac{1}{3}} + {\left(\frac{1}{x}\right)}^{\frac{1}{3}}\right) - \left(\frac{1}{9} \cdot {\left(\frac{1}{{x}^{7}}\right)}^{\frac{1}{3}} + {x}^{\frac{-1}{3}}\right)}\]
      19.3
    6. Applied simplify to get
      \[\left(\frac{1}{3} \cdot {\left(\frac{1}{{x}^{4}}\right)}^{\frac{1}{3}} + {\left(\frac{1}{x}\right)}^{\frac{1}{3}}\right) - \left(\frac{1}{9} \cdot {\left(\frac{1}{{x}^{7}}\right)}^{\frac{1}{3}} + {x}^{\frac{-1}{3}}\right) \leadsto \left(\sqrt[3]{\frac{1}{x}} - \frac{1}{9} \cdot \sqrt[3]{\frac{1}{{x}^{7}}}\right) - \left({x}^{\frac{-1}{3}} - \frac{1}{3} \cdot \sqrt[3]{\frac{1}{{x}^{4}}}\right)\]
      28.3

    7. Applied final simplification

  1. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE problem 3.3.4"
  (- (pow (+ x 1) (/ 1 3)) (pow x (/ 1 3))))