Details

Time bar (total: 5.8s)

sample78.0ms

Algorithm
intervals
Results
53.0ms285×body10240exit
6.0ms197×body80valid
3.0ms17×body640valid
2.0ms26×body320valid
1.0ms18×body160valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune7.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 14.0b

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

rewrite397.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:
6.0ms
(/ x (+ wj 1))
5.0ms
(/ wj (+ wj 1))
13.0ms
(/ (/ x (+ wj 1)) (exp wj))
364.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series140.0ms

Counts
4 → 12
Calls
4 calls:
23.0ms
(/ x (+ wj 1))
21.0ms
(/ wj (+ wj 1))
43.0ms
(/ (/ x (+ wj 1)) (exp wj))
54.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify78.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
07211524
133031471
250011469

prune439.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.3b

localize10.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:
5.0ms
(+ x (pow wj 2))
6.0ms
(* 2 (* wj x))

series50.0ms

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

simplify75.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0149122
1550108
22362107
35001107

prune72.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.2b

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite1.3s

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:
155.0ms
(cbrt (- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1))))
363.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
365.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))
366.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series290.0ms

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

simplify50.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
03681425
112041352
250021319

prune299.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ x (pow wj 2))
0.0b
(* 2 (* wj x))
3.4b
(exp (log (+ x (pow wj 2))))

rewrite18.0ms

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

series81.0ms

Counts
3 → 9
Calls
3 calls:
29.0ms
(+ x (pow wj 2))
22.0ms
(* 2 (* wj x))
29.0ms
(exp (log (+ x (pow wj 2))))

simplify74.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0189216
1626192
22423187
35001181

prune102.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.2b

regimes62.0ms

Accuracy

0% (1.5b remaining)

Error of 2.1b against oracle of 0.6b and baseline of 2.1b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0115
1115

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.4s7727×body10240exit
201.0ms6322×body80valid
75.0ms747×body320valid
70.0ms465×body640valid
33.0ms544×body160valid