Average Error: 29.9 → 11.8
Time: 5.7s
Precision: 64
\[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
\[\begin{array}{l} \mathbf{if}\;x \le -4.42089431596792934 \cdot 10^{61}:\\ \;\;\;\;e^{\log \left(\left(0.333333333333333315 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}} + 0.061728395061728392 \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}}\right) - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}\right)}\\ \mathbf{elif}\;x \le 3.23060059058943779 \cdot 10^{-6}:\\ \;\;\;\;e^{\sqrt[3]{{\left(\log \left(\sqrt[3]{x + 1} - \left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}\right)\right)}^{3}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{0 + 1}{\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right) + {x}^{\frac{2}{3}}}\\ \end{array}\]
\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
\mathbf{if}\;x \le -4.42089431596792934 \cdot 10^{61}:\\
\;\;\;\;e^{\log \left(\left(0.333333333333333315 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}} + 0.061728395061728392 \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}}\right) - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}\right)}\\

\mathbf{elif}\;x \le 3.23060059058943779 \cdot 10^{-6}:\\
\;\;\;\;e^{\sqrt[3]{{\left(\log \left(\sqrt[3]{x + 1} - \left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}\right)\right)}^{3}}}\\

\mathbf{else}:\\
\;\;\;\;\frac{0 + 1}{\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right) + {x}^{\frac{2}{3}}}\\

\end{array}
double code(double x) {
	return ((double) (((double) cbrt(((double) (x + 1.0)))) - ((double) cbrt(x))));
}
double code(double x) {
	double VAR;
	if ((x <= -4.4208943159679293e+61)) {
		VAR = ((double) exp(((double) log(((double) (((double) (((double) (0.3333333333333333 * ((double) pow(((double) (1.0 / ((double) pow(x, 2.0)))), 0.3333333333333333)))) + ((double) (0.06172839506172839 * ((double) pow(((double) (1.0 / ((double) pow(x, 8.0)))), 0.3333333333333333)))))) - ((double) (0.1111111111111111 * ((double) pow(((double) (1.0 / ((double) pow(x, 5.0)))), 0.3333333333333333))))))))));
	} else {
		double VAR_1;
		if ((x <= 3.230600590589438e-06)) {
			VAR_1 = ((double) exp(((double) cbrt(((double) pow(((double) log(((double) (((double) cbrt(((double) (x + 1.0)))) - ((double) (((double) (((double) cbrt(((double) cbrt(x)))) * ((double) cbrt(((double) cbrt(x)))))) * ((double) cbrt(((double) cbrt(x)))))))))), 3.0))))));
		} else {
			VAR_1 = ((double) (((double) (0.0 + 1.0)) / ((double) (((double) (((double) cbrt(((double) (x + 1.0)))) * ((double) (((double) cbrt(((double) (x + 1.0)))) + ((double) cbrt(x)))))) + ((double) pow(x, 0.6666666666666666))))));
		}
		VAR = VAR_1;
	}
	return VAR;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 3 regimes
  2. if x < -4.4208943159679293e+61

    1. Initial program 61.2

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

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

      \[\leadsto e^{\log \color{blue}{\left(\left(0.333333333333333315 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}} + 0.061728395061728392 \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}}\right) - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}\right)}}\]

    if -4.4208943159679293e+61 < x < 3.230600590589438e-06

    1. Initial program 4.7

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Using strategy rm
    3. Applied add-exp-log4.7

      \[\leadsto \color{blue}{e^{\log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)}}\]
    4. Using strategy rm
    5. Applied add-cbrt-cube4.7

      \[\leadsto e^{\color{blue}{\sqrt[3]{\left(\log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right) \cdot \log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right) \cdot \log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)}}}\]
    6. Simplified4.7

      \[\leadsto e^{\sqrt[3]{\color{blue}{{\left(\log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)}^{3}}}}\]
    7. Using strategy rm
    8. Applied add-cube-cbrt4.6

      \[\leadsto e^{\sqrt[3]{{\left(\log \left(\sqrt[3]{x + 1} - \color{blue}{\left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}}\right)\right)}^{3}}}\]

    if 3.230600590589438e-06 < x

    1. Initial program 58.6

      \[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
    2. Using strategy rm
    3. Applied flip3--58.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. Simplified1.0

      \[\leadsto \frac{\color{blue}{0 + 1}}{\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)}\]
    5. Simplified4.4

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \le -4.42089431596792934 \cdot 10^{61}:\\ \;\;\;\;e^{\log \left(\left(0.333333333333333315 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}} + 0.061728395061728392 \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}}\right) - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}\right)}\\ \mathbf{elif}\;x \le 3.23060059058943779 \cdot 10^{-6}:\\ \;\;\;\;e^{\sqrt[3]{{\left(\log \left(\sqrt[3]{x + 1} - \left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}\right)\right)}^{3}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{0 + 1}{\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right) + {x}^{\frac{2}{3}}}\\ \end{array}\]

Reproduce

herbie shell --seed 2020126 
(FPCore (x)
  :name "2cbrt (problem 3.3.4)"
  :precision binary64
  (- (cbrt (+ x 1.0)) (cbrt x)))