Details

Time bar (total: 6.1s)

sample72.0ms

Algorithm
intervals
Results
48.0ms228×body10240exit
7.0ms210×body80valid
3.0ms24×body320valid
1.0ms17×body160valid
1.0msbody640valid

simplify45.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (6.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 10.8b

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite56.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:
5.0ms
(/ x (+ wj 1))
5.0ms
(/ wj (+ wj 1))
10.0ms
(/ (/ x (+ wj 1)) (exp wj))
29.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series148.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(/ x (+ wj 1))
24.0ms
(/ wj (+ wj 1))
41.0ms
(/ (/ x (+ wj 1)) (exp wj))
60.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify76.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
07211524
133031471
250011469

prune447.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.3b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ x (pow wj 2))
0.0b
(* 2 (* wj x))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt associate-*l* pow-prod-down prod-exp cbrt-unprod
+-commutative flip3-+ associate-*r* sum-log *-commutative flip-+ distribute-lft-out
Counts
2 → 30
Calls
2 calls:
6.0ms
(+ x (pow wj 2))
5.0ms
(* 2 (* wj x))

series51.0ms

Counts
2 → 6
Calls
2 calls:
30.0ms
(+ x (pow wj 2))
20.0ms
(* 2 (* wj x))

simplify67.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (16.0ms)

IterNodesCost
0149122
1550108
22362107
35001107

prune72.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.3b

localize14.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
0.6b
(cbrt (+ x (pow wj 2)))
0.6b
(cbrt (+ x (pow wj 2)))
0.6b
(cbrt (+ x (pow wj 2)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
36×cbrt-prod
35×*-un-lft-identity
23×add-sqr-sqrt
18×cbrt-div
15×add-cube-cbrt
11×pow1
flip3-+ pow1/3 swap-sqr flip-+ distribute-lft-out
associate-*r* associate-*l*
add-exp-log
frac-times add-cbrt-cube add-log-exp unswap-sqr
associate-*r/ pow-prod-down associate-*l/ pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 95
Calls
4 calls:
13.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
4.0ms
(cbrt (+ x (pow wj 2)))
4.0ms
(cbrt (+ x (pow wj 2)))
4.0ms
(cbrt (+ x (pow wj 2)))

series1.3s

Counts
4 → 12
Calls
4 calls:
290.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
340.0ms
(cbrt (+ x (pow wj 2)))
341.0ms
(cbrt (+ x (pow wj 2)))
333.0ms
(cbrt (+ x (pow wj 2)))

simplify162.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 3 (153.0ms)

IterNodesCost
0252878
1944827
24715760
35001749

prune288.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite68.0ms

Algorithm
rewrite-expression-head
Rules
115×times-frac
103×*-un-lft-identity
69×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
sub-neg associate-+r+ flip3-- frac-2neg diff-log frac-add clear-num sum-log flip-- distribute-lft-out-- difference-of-squares
+-commutative associate-+r- associate-/l/
Counts
4 → 157
Calls
4 calls:
34.0ms
(+ (/ (/ x (+ wj 1)) (exp wj)) (- wj (/ wj (+ wj 1))))
5.0ms
(/ wj (+ wj 1))
10.0ms
(/ (/ x (+ wj 1)) (exp wj))
12.0ms
(- wj (/ wj (+ wj 1)))

series156.0ms

Counts
4 → 12
Calls
4 calls:
61.0ms
(+ (/ (/ x (+ wj 1)) (exp wj)) (- wj (/ wj (+ wj 1))))
22.0ms
(/ wj (+ wj 1))
42.0ms
(/ (/ x (+ wj 1)) (exp wj))
31.0ms
(- wj (/ wj (+ wj 1)))

simplify75.0ms

Algorithm
egg-herbie
Counts
169 → 169
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
07301398
132791356
250011354

prune415.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

regimes55.0ms

Accuracy

76.2% (0.3b remaining)

Error of 0.3b against oracle of 0.1b and baseline of 1.1b

bsearch52.0ms

Steps
ItersRangePoint
9
1.5006309519768893e-05
21.660028671588154
0.00011314185047418014

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03531
13531

end0.0ms

sample2.4s

Algorithm
intervals
Results
1.7s7635×body10240exit
216.0ms6293×body80valid
83.0ms486×body640valid
81.0ms775×body320valid
36.0ms524×body160valid