Details

Time bar (total: 5.1s)

sample70.0ms

Algorithm
intervals
Results
45.0ms250×body10240exit
6.0ms207×body80valid
2.0ms27×body320valid
2.0ms12×body640valid
1.0ms12×body160valid

simplify45.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (6.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune5.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 11.8b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ wj (+ wj 1))
0.0b
(/ x (+ wj 1))
0.0b
(/ (/ x (+ wj 1)) (exp wj))
4.2b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

rewrite512.0ms

Algorithm
rewrite-expression-head
Rules
127×times-frac
118×*-un-lft-identity
78×add-sqr-sqrt
73×add-cube-cbrt
24×associate-/l*
21×distribute-lft-out
13×add-cbrt-cube
12×associate-/r/
11×add-exp-log associate-/r*
add-log-exp
flip3-+ flip-+ div-inv
cbrt-undiv div-exp
pow1
frac-2neg clear-num
diff-log frac-sub distribute-lft-out-- difference-of-squares
sub-neg flip3-- associate--l+ sum-log flip-- associate-/l/
Counts
4 → 176
Calls
4 calls:
10.0ms
(/ wj (+ wj 1))
10.0ms
(/ x (+ wj 1))
22.0ms
(/ (/ x (+ wj 1)) (exp wj))
461.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series129.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(/ wj (+ wj 1))
20.0ms
(/ x (+ wj 1))
36.0ms
(/ (/ x (+ wj 1)) (exp wj))
53.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify80.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
07211524
133031471
250011469

prune410.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize7.0ms

Local error

Found 1 expressions with local error:

0.0b
(* 2 (* wj x))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
associate-*l* pow-prod-down prod-exp cbrt-unprod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
associate-*r* *-commutative add-log-exp
Counts
1 → 18
Calls
1 calls:
15.0ms
(* 2 (* wj x))

series17.0ms

Counts
1 → 3
Calls
1 calls:
17.0ms
(* 2 (* wj x))

simplify79.0ms

Algorithm
egg-herbie
Counts
21 → 21
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
08666
131856
2123556
3344456
4500156

prune36.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ wj (+ wj 1))
0.0b
(/ x (+ wj 1))
0.0b
(/ (/ x (+ wj 1)) (exp wj))
6.3b
(- wj (/ wj (+ wj 1)))

rewrite71.0ms

Algorithm
rewrite-expression-head
Rules
127×times-frac
115×*-un-lft-identity
78×add-sqr-sqrt
73×add-cube-cbrt
24×associate-/l*
20×distribute-lft-out
13×add-cbrt-cube
12×associate-/r/
11×add-exp-log associate-/r*
div-inv
flip3-+ flip-+ add-log-exp
cbrt-undiv div-exp
pow1
frac-2neg clear-num
difference-of-squares
sub-neg flip3-- diff-log flip-- associate-/l/ distribute-lft-out--
Counts
4 → 171
Calls
4 calls:
10.0ms
(/ wj (+ wj 1))
10.0ms
(/ x (+ wj 1))
24.0ms
(/ (/ x (+ wj 1)) (exp wj))
20.0ms
(- wj (/ wj (+ wj 1)))

series102.0ms

Counts
4 → 12
Calls
4 calls:
18.0ms
(/ wj (+ wj 1))
20.0ms
(/ x (+ wj 1))
37.0ms
(/ (/ x (+ wj 1)) (exp wj))
26.0ms
(- wj (/ wj (+ wj 1)))

simplify72.0ms

Algorithm
egg-herbie
Counts
183 → 183
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
06341321
128441269
250011267

prune394.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (pow wj 4) (pow wj 2))
0.0b
(/ x (+ wj 1))
0.0b
(/ (/ x (+ wj 1)) (exp wj))
0.0b
(- (+ (pow wj 4) (pow wj 2)) (pow wj 3))

rewrite165.0ms

Algorithm
rewrite-expression-head
Rules
114×times-frac
103×*-un-lft-identity
71×add-sqr-sqrt
64×add-cube-cbrt
21×associate-/l*
18×distribute-lft-out
11×add-cbrt-cube add-log-exp
10×associate-/r/
add-exp-log
associate-/r*
flip3-+ flip-+ div-inv
pow1 cbrt-undiv div-exp difference-of-squares
frac-2neg diff-log clear-num sum-log distribute-lft-out--
+-commutative sub-neg unpow-prod-down flip3-- cube-prod associate--l+ flip-- associate-/l/ sqr-pow
Counts
4 → 155
Calls
4 calls:
16.0ms
(+ (pow wj 4) (pow wj 2))
10.0ms
(/ x (+ wj 1))
22.0ms
(/ (/ x (+ wj 1)) (exp wj))
111.0ms
(- (+ (pow wj 4) (pow wj 2)) (pow wj 3))

series146.0ms

Counts
4 → 12
Calls
4 calls:
61.0ms
(+ (pow wj 4) (pow wj 2))
24.0ms
(/ x (+ wj 1))
37.0ms
(/ (/ x (+ wj 1)) (exp wj))
24.0ms
(- (+ (pow wj 4) (pow wj 2)) (pow wj 3))

simplify74.0ms

Algorithm
egg-herbie
Counts
167 → 167
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
06371315
128741259
250011257

prune489.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

regimes47.0ms

Accuracy

81.9% (0.2b remaining)

Error of 0.2b against oracle of 0.0b and baseline of 1.1b

bsearch38.0ms

Steps
ItersRangePoint
9
2.0513987020488157e-07
108.91027781997802
9.293516541346028e-05

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03521
13521

end0.0ms

sample2.0s

Algorithm
intervals
Results
1.3s7529×body10240exit
182.0ms6275×body80valid
68.0ms787×body320valid
62.0ms450×body640valid
35.0ms554×body160valid