Details

Time bar (total: 8.7s)

sample66.0ms

Algorithm
intervals
Results
39.0ms215×body10240exit
6.0ms199×body80valid
4.0ms22×body640valid
2.0ms26×body320valid
1.0ms10×body160valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 13.7b

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

rewrite525.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
(/ x (+ wj 1))
11.0ms
(/ wj (+ wj 1))
23.0ms
(/ (/ x (+ wj 1)) (exp wj))
474.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series155.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(/ x (+ wj 1))
21.0ms
(/ wj (+ wj 1))
42.0ms
(/ (/ x (+ wj 1)) (exp wj))
63.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify78.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
07211524
133031471
250011469

prune433.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.1b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite25.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:
15.0ms
(* 2 (* wj x))
9.0ms
(+ x (pow wj 2))

series54.0ms

Counts
2 → 6
Calls
2 calls:
19.0ms
(* 2 (* wj x))
34.0ms
(+ x (pow wj 2))

simplify112.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
0149122
1551108
22352107
35001107

prune71.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.1b

localize11.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)))

rewrite89.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:
62.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
7.0ms
(cbrt (+ x (pow wj 2)))
10.0ms
(cbrt (+ x (pow wj 2)))
7.0ms
(cbrt (+ x (pow wj 2)))

series1.5s

Counts
4 → 12
Calls
4 calls:
477.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
346.0ms
(cbrt (+ x (pow wj 2)))
340.0ms
(cbrt (+ x (pow wj 2)))
332.0ms
(cbrt (+ x (pow wj 2)))

simplify171.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 3 (162.0ms)

IterNodesCost
0252878
1944827
24715760
35001749

prune267.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0.1b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite2.2s

Algorithm
rewrite-expression-head
Rules
59×*-un-lft-identity
55×add-sqr-sqrt
46×times-frac
34×add-cube-cbrt
15×associate-/r*
14×difference-of-squares
10×add-cbrt-cube
add-exp-log associate-/l* add-log-exp
associate-/r/ distribute-lft-out--
distribute-lft-out
pow1 difference-of-sqr-1
cbrt-undiv flip3-- frac-2neg div-exp clear-num flip-- div-inv
flip3-+ diff-log frac-sub flip-+
sub-neg associate--l+ sum-log
Counts
4 → 131
Calls
4 calls:
12.0ms
(/ x (- (* wj wj) (* 1 1)))
10.0ms
(/ wj (+ wj 1))
13.0ms
(/ (exp wj) (- wj 1))
2.2s
(- (+ (/ (/ x (- (* wj wj) (* 1 1))) (/ (exp wj) (- wj 1))) wj) (/ wj (+ wj 1)))

series224.0ms

Counts
4 → 12
Calls
4 calls:
61.0ms
(/ x (- (* wj wj) (* 1 1)))
21.0ms
(/ wj (+ wj 1))
20.0ms
(/ (exp wj) (- wj 1))
122.0ms
(- (+ (/ (/ x (- (* wj wj) (* 1 1))) (/ (exp wj) (- wj 1))) wj) (/ wj (+ wj 1)))

simplify61.0ms

Algorithm
egg-herbie
Counts
143 → 143
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
06051141
125401079
250031076

prune386.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 0.1b

regimes76.0ms

Accuracy

51.8% (0.9b remaining)

Error of 1.2b against oracle of 0.3b and baseline of 2.1b

bsearch38.0ms

Steps
ItersRangePoint
10
8.1526231088842e-19
9.180403440793369e-05
2.114553828895714e-06

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03131
13131

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.3s7413×body10240exit
189.0ms6266×body80valid
69.0ms788×body320valid
66.0ms461×body640valid
36.0ms554×body160valid