Details

Time bar (total: 5.6s)

sample66.0ms

Algorithm
intervals
Results
41.0ms250×body10240exit
6.0ms207×body80valid
2.0ms27×body320valid
2.0ms12×body640valid
1.0ms12×body160valid

simplify49.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0219
1529
21139
32408
416258
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 11.8b

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

rewrite626.0ms

Algorithm
rewrite-expression-head
Rules
231×*-un-lft-identity
175×times-frac
129×add-sqr-sqrt
124×add-cube-cbrt
72×prod-diff
52×distribute-lft-out
24×associate-/l*
20×associate-/r/
13×add-cbrt-cube
11×add-exp-log flip3-+ associate-/r* flip-+ div-inv
add-log-exp
cbrt-undiv div-exp
pow1 expm1-log1p-u fma-neg log1p-expm1-u
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 → 260
Calls
4 calls:
11.0ms
(/ wj (+ wj 1))
10.0ms
(/ x (+ wj 1))
22.0ms
(/ (/ x (+ wj 1)) (exp wj))
567.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series137.0ms

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

simplify128.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (93.0ms)

IterNodesCost
010154090
145553249
250013243

prune512.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize8.0ms

Local error

Found 1 expressions with local error:

0.0b
(* 2 (* wj x))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
associate-*l* pow-prod-down prod-exp cbrt-unprod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
expm1-log1p-u associate-*r* *-commutative log1p-expm1-u add-log-exp
Counts
1 → 20
Calls
1 calls:
16.0ms
(* 2 (* wj x))

series22.0ms

Counts
1 → 3
Calls
1 calls:
22.0ms
(* 2 (* wj x))

simplify81.0ms

Algorithm
egg-herbie
Counts
23 → 23
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
08872
132062
2123762
3344862
4500162

prune39.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

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))
6.3b
(- wj (/ wj (+ wj 1)))

rewrite83.0ms

Algorithm
rewrite-expression-head
Rules
176×*-un-lft-identity
163×times-frac
121×add-sqr-sqrt
116×add-cube-cbrt
54×prod-diff
29×distribute-lft-out
24×associate-/l*
18×associate-/r/
13×add-cbrt-cube
11×add-exp-log associate-/r*
10×div-inv
flip3-+ flip-+
add-log-exp
cbrt-undiv div-exp
pow1 expm1-log1p-u log1p-expm1-u
frac-2neg fma-neg clear-num
difference-of-squares
sub-neg flip3-- diff-log flip-- associate-/l/ distribute-lft-out--
Counts
4 → 236
Calls
4 calls:
10.0ms
(/ wj (+ wj 1))
13.0ms
(/ x (+ wj 1))
22.0ms
(/ (/ x (+ wj 1)) (exp wj))
26.0ms
(- wj (/ wj (+ wj 1)))

series108.0ms

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

simplify109.0ms

Algorithm
egg-herbie
Counts
248 → 248
Iterations

Useful iterations: 2 (81.0ms)

IterNodesCost
09212790
140822167
250022164

prune492.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ x (+ wj 1))
0.0b
(- (pow wj 4) (pow wj 3))
0.0b
(fma wj wj (- (pow wj 4) (pow wj 3)))
0.0b
(/ (/ x (+ wj 1)) (exp wj))

rewrite75.0ms

Algorithm
rewrite-expression-head
Rules
145×*-un-lft-identity
128×add-sqr-sqrt
114×times-frac
111×add-cube-cbrt
84×prod-diff
67×unpow-prod-down
27×sqr-pow
24×cube-prod
21×associate-/l*
16×distribute-lft-out
12×difference-of-squares
11×add-cbrt-cube
10×associate-/r/
add-exp-log
cube-mult fma-neg unpow3 associate-/r*
div-inv add-log-exp
flip3-+ flip-+
pow1 cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u
frac-2neg clear-num
sub-neg flip3-- diff-log flip-- fma-udef associate-/l/ distribute-lft-out--
Counts
4 → 255
Calls
4 calls:
10.0ms
(/ x (+ wj 1))
24.0ms
(- (pow wj 4) (pow wj 3))
0.0ms
(fma wj wj (- (pow wj 4) (pow wj 3)))
25.0ms
(/ (/ x (+ wj 1)) (exp wj))

series164.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ x (+ wj 1))
77.0ms
(- (pow wj 4) (pow wj 3))
26.0ms
(fma wj wj (- (pow wj 4) (pow wj 3)))
38.0ms
(/ (/ x (+ wj 1)) (exp wj))

simplify123.0ms

Algorithm
egg-herbie
Counts
267 → 267
Iterations

Useful iterations: 2 (92.0ms)

IterNodesCost
08592535
137252066
250012047

prune582.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

regimes37.0ms

Accuracy

82.2% (0.2b remaining)

Error of 0.2b against oracle of 0.0b and baseline of 1.1b

bsearch41.0ms

Steps
ItersRangePoint
9
2.0513987020488157e-07
108.91027781997802
9.293516541346028e-05

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03220
13220

end0.0ms

sample2.0s

Algorithm
intervals
Results
1.3s7529×body10240exit
172.0ms6275×body80valid
70.0ms787×body320valid
61.0ms450×body640valid
37.0ms554×body160valid