Details

Time bar (total: 11.1s)

sample139.0ms

Algorithm
intervals
Results
50.0ms106×body1280valid
19.0ms38×body10240exit
18.0ms55×body640valid
7.0ms137×body80valid
6.0ms30×body320valid
6.0ms20×body640nan
5.0ms137×body80nan
4.0ms10×body1280nan
2.0ms16×body160valid
2.0msbody320nan
1.0msbody160nan

simplify34.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1356
2856
32496
49116
550016

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.3b

localize12.0ms

Local error

Found 3 expressions with local error:

0.8b
(pow x (/ 1.0 n))
1.4b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
1.7b
(pow (+ x 1.0) (/ 1.0 n))

rewrite116.0ms

Algorithm
rewrite-expression-head
Rules
76×*-un-lft-identity
73×unpow-prod-down
63×add-sqr-sqrt
56×prod-diff
51×add-cube-cbrt
26×pow-unpow
24×sqr-pow
18×times-frac
10×distribute-lft-out
difference-of-squares
fma-neg
pow1 add-exp-log add-log-exp
expm1-log1p-u add-cbrt-cube log1p-expm1-u distribute-lft-out--
pow-to-exp pow-pow pow-exp div-inv
sub-neg flip3-- diff-log flip--
Counts
3 → 149
Calls
3 calls:
4.0ms
(pow x (/ 1.0 n))
93.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
10.0ms
(pow (+ x 1.0) (/ 1.0 n))

series463.0ms

Counts
3 → 9
Calls
3 calls:
60.0ms
(pow x (/ 1.0 n))
263.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
140.0ms
(pow (+ x 1.0) (/ 1.0 n))

simplify64.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
06542164
121641642
250021637

prune321.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 22.2b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(expm1 (log1p (pow x (/ 1.0 n))))
0.8b
(pow x (/ 1.0 n))
1.7b
(pow (+ x 1.0) (/ 1.0 n))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

rewrite107.0ms

Algorithm
rewrite-expression-head
Rules
48×*-un-lft-identity
41×add-sqr-sqrt
36×add-cube-cbrt
26×pow-unpow
24×unpow-prod-down prod-diff
18×times-frac
fma-neg
sqr-pow
pow1 add-exp-log add-log-exp
distribute-lft-out
expm1-log1p-u add-cbrt-cube log1p-expm1-u
difference-of-squares
pow-to-exp pow-pow pow-exp div-inv expm1-udef
sub-neg expm1-log1p flip3-- diff-log flip-- distribute-lft-out-- associate--r-
Counts
4 → 121
Calls
4 calls:
0.0ms
(expm1 (log1p (pow x (/ 1.0 n))))
4.0ms
(pow x (/ 1.0 n))
10.0ms
(pow (+ x 1.0) (/ 1.0 n))
88.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

series596.0ms

Counts
4 → 12
Calls
4 calls:
89.0ms
(expm1 (log1p (pow x (/ 1.0 n))))
63.0ms
(pow x (/ 1.0 n))
138.0ms
(pow (+ x 1.0) (/ 1.0 n))
306.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

simplify57.0ms

Algorithm
egg-herbie
Counts
133 → 133
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
05561604
119711009
25003997

prune339.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 22.2b

localize21.0ms

Local error

Found 4 expressions with local error:

1.7b
(pow (+ x 1.0) (/ 1.0 n))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

rewrite287.0ms

Algorithm
rewrite-expression-head
Rules
92×*-un-lft-identity
75×add-sqr-sqrt
72×prod-diff
60×add-cube-cbrt
55×unpow-prod-down
24×fma-neg
16×sqr-pow
13×pow-unpow distribute-lft-out
10×add-log-exp
times-frac difference-of-squares
pow1 add-exp-log
expm1-log1p-u add-cbrt-cube log1p-expm1-u
sub-neg flip3-- diff-log flip-- distribute-lft-out-- expm1-udef associate--r-
pow-to-exp pow-pow pow-exp div-inv
Counts
4 → 183
Calls
4 calls:
10.0ms
(pow (+ x 1.0) (/ 1.0 n))
90.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
90.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
89.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

series1.1s

Counts
4 → 12
Calls
4 calls:
153.0ms
(pow (+ x 1.0) (/ 1.0 n))
313.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
311.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
317.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

simplify63.0ms

Algorithm
egg-herbie
Counts
195 → 195
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04203765
114102050
250021995

prune628.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 22.2b

localize20.0ms

Local error

Found 4 expressions with local error:

34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
34.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

rewrite366.0ms

Algorithm
rewrite-expression-head
Rules
108×*-un-lft-identity
96×prod-diff
88×add-sqr-sqrt
68×add-cube-cbrt unpow-prod-down
32×fma-neg
20×sqr-pow
16×distribute-lft-out
12×add-log-exp difference-of-squares
pow1 add-exp-log expm1-log1p-u sub-neg flip3-- diff-log add-cbrt-cube flip-- log1p-expm1-u distribute-lft-out-- expm1-udef associate--r-
Counts
4 → 204
Calls
4 calls:
90.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
88.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
90.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
89.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

series1.2s

Counts
4 → 12
Calls
4 calls:
312.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
308.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
313.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))
314.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (expm1 (log1p (pow x (/ 1.0 n)))))

simplify66.0ms

Algorithm
egg-herbie
Counts
216 → 216
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
02914792
19062508
250012444

prune686.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 22.2b

regimes218.0ms

Accuracy

81.5% (1.6b remaining)

Error of 22.5b against oracle of 20.9b and baseline of 29.6b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05767
15767

end0.0ms

sample4.2s

Algorithm
intervals
Results
1.4s3146×body1280valid
543.0ms1610×body640valid
448.0ms1106×body10240exit
284.0ms612×body1280nan
249.0ms4664×body80valid
196.0ms860×body320valid
186.0ms586×body640nan
183.0ms4907×body80nan
64.0ms342×body320nan
60.0ms440×body160valid
18.0ms167×body160nan