Details

Time bar (total: 18.3s)

sample122.0ms

Algorithm
intervals
Results
48.0ms107×body1280valid
17.0ms49×body640valid
13.0ms30×body10240exit
6.0ms130×body80valid
6.0ms17×body1280nan
5.0ms129×body80nan
4.0ms21×body320valid
2.0ms13×body320nan
2.0ms18×body160valid
2.0msbody640nan
0.0msbody160nan

simplify36.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: 31.2b

localize8.0ms

Local error

Found 3 expressions with local error:

0.5b
(pow x (/ 1.0 n))
0.7b
(pow (+ x 1.0) (/ 1.0 n))
1.6b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

rewrite72.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:
2.0ms
(pow x (/ 1.0 n))
6.0ms
(pow (+ x 1.0) (/ 1.0 n))
57.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series481.0ms

Counts
3 → 9
Calls
3 calls:
62.0ms
(pow x (/ 1.0 n))
146.0ms
(pow (+ x 1.0) (/ 1.0 n))
273.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify67.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
06542164
121641642
250021637

prune475.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 18.9b

localize11.0ms

Local error

Found 4 expressions with local error:

0.5b
(pow x (/ 1.0 n))
0.7b
(pow (+ x 1.0) (/ 1.0 n))
0.7b
(pow (+ x 1.0) (/ 1.0 n))
4.0b
(fma (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow (+ x 1.0) (/ 1.0 n))) (- (pow x (/ 1.0 n))))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
39×pow-unpow
32×*-un-lft-identity
28×add-sqr-sqrt add-cube-cbrt
27×times-frac
11×unpow-prod-down
pow1 add-exp-log
expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
pow-to-exp pow-pow pow-exp div-inv sqr-pow
distribute-lft-out
fma-udef
Counts
4 → 99
Calls
4 calls:
2.0ms
(pow x (/ 1.0 n))
6.0ms
(pow (+ x 1.0) (/ 1.0 n))
6.0ms
(pow (+ x 1.0) (/ 1.0 n))
0.0ms
(fma (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow (+ x 1.0) (/ 1.0 n))) (- (pow x (/ 1.0 n))))

series810.0ms

Counts
4 → 12
Calls
4 calls:
58.0ms
(pow x (/ 1.0 n))
141.0ms
(pow (+ x 1.0) (/ 1.0 n))
139.0ms
(pow (+ x 1.0) (/ 1.0 n))
473.0ms
(fma (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow (+ x 1.0) (/ 1.0 n))) (- (pow x (/ 1.0 n))))

simplify43.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0427708
11545663
25001650

prune380.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 18.3b

localize17.0ms

Local error

Found 4 expressions with local error:

1.0b
(/ (* (log x) 1.0) (* x (pow n 2)))
1.5b
(- (/ (/ 1.0 n) x) (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
7.9b
(* x (pow n 2))
9.0b
(/ (/ 0.5 n) (pow x 2))

rewrite520.0ms

Algorithm
rewrite-expression-head
Rules
2617×times-frac
2287×add-sqr-sqrt
1245×*-un-lft-identity
1154×add-cube-cbrt
1099×prod-diff
542×associate--r+
390×difference-of-squares
327×unpow-prod-down
220×div-inv
167×unpow2 sqr-pow
46×add-exp-log distribute-lft-out--
43×fma-neg
23×add-cbrt-cube
17×div-exp
14×associate-/l*
13×prod-exp
associate-/r* add-log-exp
associate-*r*
cbrt-undiv
pow-to-exp pow-exp cbrt-unprod
pow1 expm1-log1p-u frac-sub log1p-expm1-u unswap-sqr
diff-log associate-*l*
sub-neg flip3-- frac-2neg clear-num flip--
*-commutative associate-/l/ associate--r-
Counts
4 → 1370
Calls
4 calls:
5.0ms
(/ (* (log x) 1.0) (* x (pow n 2)))
337.0ms
(- (/ (/ 1.0 n) x) (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
6.0ms
(* x (pow n 2))
9.0ms
(/ (/ 0.5 n) (pow x 2))

series209.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(/ (* (log x) 1.0) (* x (pow n 2)))
65.0ms
(- (/ (/ 1.0 n) x) (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
28.0ms
(* x (pow n 2))
33.0ms
(/ (/ 0.5 n) (pow x 2))

simplify492.0ms

Algorithm
egg-herbie
Counts
1382 → 1382
Iterations

Useful iterations: 0 (22.0ms)

IterNodesCost
0500157436

prune5.4s

Pruning

14 alts after pruning (12 fresh and 2 done)

Merged error: 18.2b

localize31.0ms

Local error

Found 4 expressions with local error:

21.9b
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
21.9b
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
21.9b
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
36.8b
(fma (- (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))))))

rewrite169.0ms

Algorithm
rewrite-expression-head
Rules
85×add-sqr-sqrt
39×cbrt-prod
36×times-frac
27×difference-of-squares
13×*-un-lft-identity
cbrt-div
add-cube-cbrt
unpow-prod-down unpow2 sqr-pow
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
flip3-- pow1/3 frac-sub flip-- distribute-lft-out--
fma-udef
Counts
4 → 88
Calls
4 calls:
55.0ms
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
54.0ms
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
55.0ms
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
0.0ms
(fma (- (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))))))

series4.0s

Counts
4 → 12
Calls
4 calls:
710.0ms
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
718.0ms
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
705.0ms
(cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
1.8s
(fma (- (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (* (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))) (cbrt (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2))))))))

simplify57.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
04422510
114722262
250012214

prune588.0ms

Pruning

14 alts after pruning (11 fresh and 3 done)

Merged error: 18.2b

regimes290.0ms

Accuracy

76.4% (2.1b remaining)

Error of 22.2b against oracle of 20.1b and baseline of 29.0b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03526
13526

end0.0ms

sample4.1s

Algorithm
intervals
Results
1.4s3134×body1280valid
530.0ms1576×body640valid
434.0ms1104×body10240exit
309.0ms681×body1280nan
258.0ms4783×body80valid
209.0ms651×body640nan
185.0ms5079×body80nan
182.0ms841×body320valid
70.0ms370×body320nan
55.0ms410×body160valid
20.0ms184×body160nan