Details

Time bar (total: 4.6s)

sample62.0ms

Algorithm
intervals
Results
28.0ms128×body5120exit
11.0ms205×body80valid
4.0ms124×body80overflowed
3.0ms24×body320valid
3.0ms16×body640valid
1.0ms14×body160valid

simplify47.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune6.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 12.4b

Counts
2 → 2

localize10.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.1b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

rewrite59.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
(/ wj (+ wj 1))
8.0ms
(/ x (+ wj 1))
9.0ms
(/ (/ x (+ wj 1)) (exp wj))
29.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series136.0ms

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

simplify84.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
07181538
133001483
250021481

prune377.0ms

Filtered
188 candidates to 138 candidates (73.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1826188
Fresh101
Picked101
Done000
Total1846190

Merged error: 0.4b

Counts
190 → 6

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite17.0ms

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

series79.0ms

Counts
3 → 9
Calls
3 calls:
29.0ms
(+ x (pow wj 2))
31.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
19.0ms
(* 2 (* wj x))

simplify130.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0202247
1793231
24232228
35001228

prune83.0ms

Filtered
53 candidates to 32 candidates (60.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New52153
Fresh055
Picked011
Done000
Total52759

Merged error: 0.4b

Counts
59 → 7

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ x (sqrt (exp wj))) (/ (/ 1 (+ wj 1)) (sqrt (exp wj))))
0.0b
(/ 1 (+ wj 1))
0.0b
(/ (/ 1 (+ wj 1)) (sqrt (exp wj)))
4.1b
(- (+ (* (/ x (sqrt (exp wj))) (/ (/ 1 (+ wj 1)) (sqrt (exp wj)))) wj) (/ wj (+ wj 1)))

rewrite137.0ms

Algorithm
rewrite-expression-head
Rules
447×times-frac
299×*-un-lft-identity
290×add-sqr-sqrt
205×add-cube-cbrt
136×sqrt-prod
112×associate-*r*
52×add-exp-log
43×distribute-lft-out
32×add-cbrt-cube
28×associate-/r/
25×div-exp
22×associate-*l*
21×associate-/l* unswap-sqr
17×div-inv
15×flip3-+ flip-+
13×cbrt-undiv
10×prod-exp associate-/r*
add-log-exp
pow1
cbrt-unprod
rec-exp 1-exp
frac-2neg diff-log clear-num frac-sub difference-of-squares
frac-times sub-neg flip3-- pow-flip associate-*r/ pow-prod-down associate-*l/ associate--l+ sum-log *-commutative flip-- associate-/l/ distribute-lft-out-- inv-pow
Counts
4 → 388
Calls
4 calls:
63.0ms
(* (/ x (sqrt (exp wj))) (/ (/ 1 (+ wj 1)) (sqrt (exp wj))))
5.0ms
(/ 1 (+ wj 1))
12.0ms
(/ (/ 1 (+ wj 1)) (sqrt (exp wj)))
28.0ms
(- (+ (* (/ x (sqrt (exp wj))) (/ (/ 1 (+ wj 1)) (sqrt (exp wj)))) wj) (/ wj (+ wj 1)))

series135.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(* (/ x (sqrt (exp wj))) (/ (/ 1 (+ wj 1)) (sqrt (exp wj))))
13.0ms
(/ 1 (+ wj 1))
30.0ms
(/ (/ 1 (+ wj 1)) (sqrt (exp wj)))
54.0ms
(- (+ (* (/ x (sqrt (exp wj))) (/ (/ 1 (+ wj 1)) (sqrt (exp wj)))) wj) (/ wj (+ wj 1)))

simplify81.0ms

Algorithm
egg-herbie
Counts
400 → 400
Iterations

Useful iterations: 1 (34.0ms)

IterNodesCost
014034781
150024155

prune548.0ms

Filtered
400 candidates to 182 candidates (45.5%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New4000400
Fresh055
Picked011
Done011
Total4007407

Merged error: 0.4b

Counts
407 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1))))
4.1b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
4.1b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
4.1b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

rewrite126.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt *-un-lft-identity
19×add-log-exp
frac-sub distribute-lft-out-- difference-of-squares
cbrt-prod
diff-log
add-cube-cbrt
pow1 add-exp-log cbrt-div flip3-- flip3-+ times-frac add-cbrt-cube flip-- flip-+ distribute-lft-out
sub-neg associate--l+ sum-log
pow1/3
Counts
4 → 79
Calls
4 calls:
30.0ms
(cbrt (- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1))))
33.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
30.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
31.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series280.0ms

Counts
4 → 12
Calls
4 calls:
117.0ms
(cbrt (- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1))))
52.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
54.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
57.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify46.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
03681425
112041352
250021319

prune247.0ms

Filtered
91 candidates to 70 candidates (76.9%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New88391
Fresh044
Picked101
Done022
Total89998

Merged error: 0.3b

Counts
98 → 9

regimes95.0ms

Accuracy

64.3% (0.7b remaining)

Error of 1.0b against oracle of 0.3b and baseline of 2.2b

bsearch23.0ms

Steps
ItersRangePoint
5
3.7253391743722696e-11
1.3393947446404039e-10
1.305370283524307e-10

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03018
13018

end0.0ms

sample1.7s

Algorithm
intervals
Results
844.0ms3695×body5120exit
237.0ms6335×body80valid
131.0ms3782×body80overflowed
89.0ms747×body320valid
85.0ms465×body640valid
40.0ms525×body160valid