Details

Time bar (total: 8.1s)

sample26.0ms

Algorithm
intervals
Results
7.0ms53×body1280valid
5.0ms127×body80valid
5.0ms49×body640valid
2.0ms19×body320valid
1.0msbody160valid

simplify23.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0126
1166
2196
3216
4276
5396
6586
7796
81076
91606
102776
113036
123036

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 30.7b

localize6.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ x (+ x 1.0))
0.0b
(/ (+ x 1.0) (- x 1.0))
2.9b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

rewrite162.0ms

Algorithm
rewrite-expression-head
Rules
981×*-un-lft-identity
736×times-frac
585×add-sqr-sqrt
468×prod-diff
419×add-cube-cbrt
189×distribute-lft-out
94×associate-/r/
90×distribute-lft-out--
81×difference-of-squares
47×div-inv
29×flip3-+ flip-+
20×flip3-- flip--
18×fma-neg
associate-/r*
add-exp-log add-cbrt-cube associate-/l*
add-log-exp
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv frac-2neg div-exp clear-num associate-/l/
sub-neg diff-log frac-sub
Counts
3 → 596
Calls
3 calls:
5.0ms
(/ x (+ x 1.0))
14.0ms
(/ (+ x 1.0) (- x 1.0))
84.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series202.0ms

Counts
3 → 9
Calls
3 calls:
32.0ms
(/ x (+ x 1.0))
41.0ms
(/ (+ x 1.0) (- x 1.0))
128.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify208.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (76.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune721.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize17.0ms

Local error

Found 4 expressions with local error:

0.2b
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
0.2b
(/ (- 1.0) (pow x 2))
0.3b
(/ 1 (pow x 3))
5.0b
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

rewrite134.0ms

Algorithm
rewrite-expression-head
Rules
440×times-frac
354×add-sqr-sqrt
344×*-un-lft-identity
342×add-cube-cbrt
252×prod-diff
166×unpow-prod-down
123×distribute-lft-neg-in distribute-rgt-neg-in
84×fma-neg
56×sqr-pow
52×unpow2
41×neg-mul-1
20×associate-/r*
18×add-exp-log
13×associate-/l*
12×cube-prod
div-exp
add-cbrt-cube
div-inv add-log-exp
difference-of-squares
pow1 expm1-log1p-u cube-mult pow-to-exp unpow3 pow-exp log1p-expm1-u
rec-exp 1-exp
cbrt-undiv neg-sub0 frac-2neg div-sub clear-num fma-udef
associate--l- sub-neg flip3-- pow-flip diff-log distribute-frac-neg flip-- associate--r+ distribute-lft-out-- inv-pow
Counts
4 → 559
Calls
4 calls:
0.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
7.0ms
(/ (- 1.0) (pow x 2))
5.0ms
(/ 1 (pow x 3))
83.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

series178.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
30.0ms
(/ (- 1.0) (pow x 2))
30.0ms
(/ 1 (pow x 3))
35.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

simplify185.0ms

Algorithm
egg-herbie
Counts
571 → 571
Iterations

Useful iterations: 2 (83.0ms)

IterNodesCost
0115912779
141697106
250017094

prune778.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma 3.0 (/ 1 (pow x 3)) (/ 3.0 x))
0.2b
(/ (- 1.0) (pow x 2))
0.3b
(/ 1 (pow x 3))
5.0b
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 (pow x 3)) (/ 3.0 x)))

rewrite139.0ms

Algorithm
rewrite-expression-head
Rules
440×times-frac
354×add-sqr-sqrt
344×*-un-lft-identity
342×add-cube-cbrt
252×prod-diff
166×unpow-prod-down
123×distribute-lft-neg-in distribute-rgt-neg-in
84×fma-neg
56×sqr-pow
52×unpow2
41×neg-mul-1
20×associate-/r*
18×add-exp-log
13×associate-/l*
12×cube-prod
div-exp
add-cbrt-cube
div-inv add-log-exp
difference-of-squares
pow1 expm1-log1p-u cube-mult pow-to-exp unpow3 pow-exp log1p-expm1-u
rec-exp 1-exp
cbrt-undiv neg-sub0 frac-2neg div-sub clear-num fma-udef
associate--l- sub-neg flip3-- pow-flip diff-log distribute-frac-neg flip-- associate--r+ distribute-lft-out-- inv-pow
Counts
4 → 559
Calls
4 calls:
0.0ms
(fma 3.0 (/ 1 (pow x 3)) (/ 3.0 x))
7.0ms
(/ (- 1.0) (pow x 2))
5.0ms
(/ 1 (pow x 3))
87.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 (pow x 3)) (/ 3.0 x)))

series177.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(fma 3.0 (/ 1 (pow x 3)) (/ 3.0 x))
30.0ms
(/ (- 1.0) (pow x 2))
31.0ms
(/ 1 (pow x 3))
35.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 (pow x 3)) (/ 3.0 x)))

simplify172.0ms

Algorithm
egg-herbie
Counts
571 → 571
Iterations

Useful iterations: 2 (79.0ms)

IterNodesCost
0116211394
140646475
250026466

prune757.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ x (+ x 1.0))
0.0b
(* (sqrt (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (sqrt (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))))
2.9b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))
2.9b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

rewrite878.0ms

Algorithm
rewrite-expression-head
Rules
2691×*-un-lft-identity
1724×times-frac
1185×add-sqr-sqrt
936×prod-diff
813×add-cube-cbrt
506×distribute-lft-out
392×distribute-lft-out--
186×sqrt-prod
182×associate-/r/
168×difference-of-squares
91×div-inv
79×swap-sqr
55×flip3-+ flip-+
46×flip3-- flip--
36×fma-neg
24×sqrt-div
19×pow1 associate-*r* associate-*l*
10×frac-sub
frac-times
add-exp-log sqrt-pow1 pow1/2 add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u associate-/r* log1p-expm1-u unswap-sqr
associate-*r/ pow-prod-down associate-*l/ pow-sqr associate-/l*
sub-neg diff-log
cbrt-undiv pow2 frac-2neg pow-plus sqrt-unprod div-exp prod-exp clear-num rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 1226
Calls
4 calls:
5.0ms
(/ x (+ x 1.0))
368.0ms
(* (sqrt (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (sqrt (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))))
85.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))
84.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series423.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(/ x (+ x 1.0))
127.0ms
(* (sqrt (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (sqrt (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))))
130.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))
130.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify372.0ms

Algorithm
egg-herbie
Counts
1238 → 1238
Iterations

Useful iterations: 2 (101.0ms)

IterNodesCost
0127637668
1444127636
2500127556

prune1.6s

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0.0b

regimes25.0ms

Accuracy

100% (0.0b remaining)

Error of 0.2b against oracle of 0.2b and baseline of 31.7b

bsearch118.0ms

Steps
ItersRangePoint
10
4.8244160186105205e-08
257763.20554958374
0.9988614242893094
9
-3246994039.700852
-772.3369502403921
-11098.444471894443

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05842
16242
26242

end0.0ms

sample735.0ms

Algorithm
intervals
Results
239.0ms1750×body1280valid
175.0ms4087×body80valid
146.0ms1263×body640valid
54.0ms619×body320valid
19.0ms281×body160valid