Average Error: 29.6 → 0.6
Time: 12.7s
Precision: 64
Internal Precision: 128
\[\sqrt[3]{x + 1} - \sqrt[3]{x}\]
\[\frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right)} \cdot \sqrt[3]{x + 1} + \sqrt[3]{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right)} \cdot \sqrt[3]{x}\right)}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.6

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

    \[\leadsto \frac{\color{blue}{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. Using strategy rm
  6. Applied add-cbrt-cube0.6

    \[\leadsto \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \color{blue}{\sqrt[3]{\left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) \cdot \sqrt[3]{x}}}\right)}\]
  7. Using strategy rm
  8. Applied add-cbrt-cube0.6

    \[\leadsto \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \color{blue}{\sqrt[3]{\left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) \cdot \sqrt[3]{x}}} + \sqrt[3]{x + 1} \cdot \sqrt[3]{\left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right) \cdot \sqrt[3]{x}}\right)}\]
  9. Final simplification0.6

    \[\leadsto \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right)} \cdot \sqrt[3]{x + 1} + \sqrt[3]{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right)} \cdot \sqrt[3]{x}\right)}\]

Reproduce

herbie shell --seed 2019004 
(FPCore (x)
  :name "2cbrt (problem 3.3.4)"
  (- (cbrt (+ x 1)) (cbrt x)))

Details

Time bar (total: 11.2s)Debug log

sample105.0ms

Algorithm
intervals

simplify8.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

8.0ms
(- (cbrt (+ x 1)) (cbrt x))

prune9.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 31.9b

localize21.0ms

Local error

Found 3 expressions with local error:

3.2b
(- (cbrt (+ x 1)) (cbrt x))
0.5b
(cbrt x)
0.3b
(cbrt (+ x 1))

rewrite31.0ms

Algorithm
rewrite-expression-head
Counts
3 → 36
Calls

3 calls. Slowest were:

29.0ms
(- (cbrt (+ x 1)) (cbrt x))
1.0ms
(cbrt (+ x 1))
0.0ms
(cbrt x)

series409.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

273.0ms
(cbrt x)
86.0ms
(- (cbrt (+ x 1)) (cbrt x))
50.0ms
(cbrt (+ x 1))

simplify944.0ms

Counts
20 → 45
Calls

20 calls. Slowest were:

267.0ms
(- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (+ (* (pow (* x -1) 1/3) (cbrt -1)) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))))
216.0ms
(- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3)))
159.0ms
(- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2))))

prune405.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 17.3b

localize53.0ms

Local error

Found 4 expressions with local error:

2.9b
(- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3))
0.7b
(pow (cbrt x) 3)
0.5b
(cbrt x)
0.5b
(cbrt x)

rewrite27.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

23.0ms
(- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3))
2.0ms
(pow (cbrt x) 3)
0.0ms
(cbrt x)

series913.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

314.0ms
(pow (cbrt x) 3)
276.0ms
(cbrt x)
241.0ms
(cbrt x)
82.0ms
(- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3))

simplify713.0ms

Counts
62 → 81
Calls

62 calls. Slowest were:

64.0ms
(/ (exp (pow (cbrt (+ x 1)) 3)) (exp (pow (cbrt x) 3)))
34.0ms
(+ (* (cbrt (+ x 1)) (cbrt (+ x 1))) (+ (* (cbrt x) (cbrt x)) (* (cbrt (+ x 1)) (cbrt x))))
29.0ms
(pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3)

prune894.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.4b

localize5.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt x)
0.5b
(cbrt x)
0.5b
(cbrt x)
0.5b
(* (cbrt x) (cbrt x))

rewrite6.0ms

Algorithm
rewrite-expression-head
Counts
4 → 46
Calls

4 calls. Slowest were:

5.0ms
(* (cbrt x) (cbrt x))
0.0ms
(cbrt x)
0.0ms
(cbrt x)

series1.1s

Counts
4 → 12
Calls

4 calls. Slowest were:

322.0ms
(* (cbrt x) (cbrt x))
275.0ms
(cbrt x)
274.0ms
(cbrt x)
256.0ms
(cbrt x)

simplify64.0ms

Counts
25 → 58
Calls

25 calls. Slowest were:

18.0ms
(* (pow (pow x 2) 1/3) (pow (cbrt -1) 2))
8.0ms
(* (pow (* x -1) 1/3) (cbrt -1))
6.0ms
(* (pow (* x -1) 1/3) (cbrt -1))

prune661.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0.3b

localize25.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt x)
0.5b
(cbrt x)
0.5b
(cbrt x)
0.5b
(cbrt x)

rewrite2.0ms

Algorithm
rewrite-expression-head
Counts
4 → 32
Calls

4 calls. Slowest were:

0.0ms
(cbrt x)
0.0ms
(cbrt x)
0.0ms
(cbrt x)

series1.2s

Counts
4 → 12
Calls

4 calls. Slowest were:

304.0ms
(cbrt x)
288.0ms
(cbrt x)
284.0ms
(cbrt x)
281.0ms
(cbrt x)

simplify62.0ms

Counts
12 → 44
Calls

12 calls. Slowest were:

10.0ms
(* (pow (* x -1) 1/3) (cbrt -1))
10.0ms
(* (pow (* x -1) 1/3) (cbrt -1))
9.0ms
(* (pow (* x -1) 1/3) (cbrt -1))

prune556.0ms

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 0.3b

regimes119.0ms

Accuracy

0% (0.3b remaining)

Error of 0.6b against oracle of 0.3b and baseline of 0.6b

bsearch4.0ms

end0.0ms

sample2.9s

Algorithm
intervals