Details

Time bar (total: 9.8s)

sample71.0ms

Algorithm
intervals
Results
42.0ms247×body10240exit
8.0ms197×body80valid
3.0ms28×body320valid
2.0ms11×body640valid
2.0ms25×body160valid

simplify47.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: 14.3b

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

rewrite530.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:
12.0ms
(/ wj (+ wj 1))
11.0ms
(/ x (+ wj 1))
22.0ms
(/ (/ x (+ wj 1)) (exp wj))
478.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series130.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(/ wj (+ wj 1))
20.0ms
(/ x (+ wj 1))
41.0ms
(/ (/ x (+ wj 1)) (exp wj))
50.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

prune424.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.4b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite28.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:
8.0ms
(+ x (pow wj 2))
19.0ms
(* 2 (* wj x))

series44.0ms

Counts
2 → 6
Calls
2 calls:
26.0ms
(+ x (pow wj 2))
18.0ms
(* 2 (* wj x))

simplify66.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (16.0ms)

IterNodesCost
0149122
1550108
22362107
35001107

prune73.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.4b

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (exp wj) (+ (* wj wj) (- 1 (* wj 1))))
0.0b
(/ (/ x (+ (pow wj 3) (pow 1 3))) (/ (exp wj) (+ (* wj wj) (- 1 (* wj 1)))))
0.0b
(/ x (+ (pow wj 3) (pow 1 3)))
5.5b
(- (+ (/ (/ x (+ (pow wj 3) (pow 1 3))) (/ (exp wj) (+ (* wj wj) (- 1 (* wj 1))))) wj) (/ wj (+ wj 1)))

rewrite3.3s

Algorithm
rewrite-expression-head
Rules
1393×times-frac
1087×*-un-lft-identity
515×add-sqr-sqrt
510×add-cube-cbrt
313×distribute-lft-out
208×unpow-prod-down cube-prod
111×associate-/r/
56×flip3-+ flip-+ div-inv
52×cube-mult sum-cubes
42×associate-/l*
28×associate-/r*
20×add-cbrt-cube
17×add-exp-log
10×cbrt-undiv div-exp
add-log-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 → 717
Calls
4 calls:
27.0ms
(/ (exp wj) (+ (* wj wj) (- 1 (* wj 1))))
97.0ms
(/ (/ x (+ (pow wj 3) (pow 1 3))) (/ (exp wj) (+ (* wj wj) (- 1 (* wj 1)))))
34.0ms
(/ x (+ (pow wj 3) (pow 1 3)))
3.1s
(- (+ (/ (/ x (+ (pow wj 3) (pow 1 3))) (/ (exp wj) (+ (* wj wj) (- 1 (* wj 1))))) wj) (/ wj (+ wj 1)))

series318.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(/ (exp wj) (+ (* wj wj) (- 1 (* wj 1))))
84.0ms
(/ (/ x (+ (pow wj 3) (pow 1 3))) (/ (exp wj) (+ (* wj wj) (- 1 (* wj 1)))))
46.0ms
(/ x (+ (pow wj 3) (pow 1 3)))
160.0ms
(- (+ (/ (/ x (+ (pow wj 3) (pow 1 3))) (/ (exp wj) (+ (* wj wj) (- 1 (* wj 1))))) wj) (/ wj (+ wj 1)))

simplify178.0ms

Algorithm
egg-herbie
Counts
729 → 729
Iterations

Useful iterations: 1 (43.0ms)

IterNodesCost
0262914586
1500114346

prune1.7s

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0.4b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(- x (pow wj 2))
0.0b
(+ (* x x) (- (pow wj 4)))
0.0b
(* 2 (* wj x))
21.6b
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

rewrite105.0ms

Algorithm
rewrite-expression-head
Rules
48×add-sqr-sqrt
28×*-un-lft-identity
24×times-frac
20×difference-of-squares
18×add-cube-cbrt
11×add-exp-log add-cbrt-cube
10×add-log-exp
pow1
associate-/r*
unpow-prod-down distribute-lft-out-- unpow2 sqr-pow
div-sub associate-*l* pow-prod-down prod-exp cbrt-unprod associate-/l*
neg-sub0 associate-+r- flip3-- flip3-+ unsub-neg sum-log associate-/r/ flip-- flip-+ associate-/l/
cbrt-undiv +-commutative sub-neg frac-2neg diff-log div-exp associate-*r* neg-log clear-num *-commutative div-inv
Counts
4 → 104
Calls
4 calls:
9.0ms
(- x (pow wj 2))
16.0ms
(+ (* x x) (- (pow wj 4)))
15.0ms
(* 2 (* wj x))
61.0ms
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

series183.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(- x (pow wj 2))
51.0ms
(+ (* x x) (- (pow wj 4)))
17.0ms
(* 2 (* wj x))
80.0ms
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

simplify48.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0391963
11738841
25002817

prune261.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0.4b

regimes80.0ms

Accuracy

64% (0.7b remaining)

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

bsearch26.0ms

Steps
ItersRangePoint
6
2.0679924946935743e-09
1.0429233478297456e-08
7.4073141940656076e-09

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03819
14919
24919

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.4s7586×body10240exit
191.0ms6314×body80valid
73.0ms801×body320valid
65.0ms455×body640valid
30.0ms510×body160valid