Details

Time bar (total: 6.8s)

sample70.0ms

Algorithm
intervals
Results
44.0ms252×body10240exit
9.0ms206×body80valid
2.0ms14×body640valid
2.0ms21×body320valid
1.0ms16×body160valid

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

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

rewrite450.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:
7.0ms
(/ wj (+ wj 1))
5.0ms
(/ x (+ wj 1))
12.0ms
(/ (/ x (+ wj 1)) (exp wj))
411.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series141.0ms

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

simplify130.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (94.0ms)

IterNodesCost
010154090
145553249
250013243

prune541.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite61.0ms

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

series82.0ms

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

simplify37.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0237344
1922293
25001274

prune140.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (fma wj wj x) (* 2 (* wj x)))
0.0b
(* 2 (* wj x))

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
add-log-exp
fma-neg associate-*l* prod-diff pow-prod-down prod-exp cbrt-unprod
expm1-log1p-u log1p-expm1-u
sub-neg flip3-- diff-log associate-*r* associate--l+ *-commutative flip-- fma-udef
Counts
2 → 41
Calls
2 calls:
3.0ms
(- (fma wj wj x) (* 2 (* wj x)))
6.0ms
(* 2 (* wj x))

series45.0ms

Counts
2 → 6
Calls
2 calls:
26.0ms
(- (fma wj wj x) (* 2 (* wj x)))
19.0ms
(* 2 (* wj x))

simplify132.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (128.0ms)

IterNodesCost
0185232
1729206
24842196
35001191

prune95.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite409.0ms

Algorithm
rewrite-expression-head
Rules
555×times-frac
403×*-un-lft-identity
289×add-sqr-sqrt
253×add-cube-cbrt
76×swap-sqr
66×distribute-lft-out
58×associate-*r* associate-*l*
50×add-cbrt-cube
43×associate-*l/
40×associate-/r/
36×add-exp-log
33×flip3-- flip--
32×frac-sub
31×flip3-+ flip-+
23×cbrt-undiv div-exp
22×div-inv
21×frac-times associate-/l*
19×associate-/l/
11×pow1 associate-*r/
10×prod-exp cbrt-unprod
unswap-sqr
add-log-exp
expm1-log1p-u associate-/r* log1p-expm1-u
frac-2neg associate--l+ clear-num
pow2 distribute-rgt-in sub-neg distribute-lft-in pow-plus fma-neg diff-log div-sub prod-diff pow-prod-down pow-sqr *-commutative pow-prod-up
Counts
4 → 413
Calls
4 calls:
12.0ms
(/ (/ x (+ wj 1)) (exp wj))
92.0ms
(* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj)))
86.0ms
(- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj))
184.0ms
(/ (- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) (+ wj 1)))

series670.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(/ (/ x (+ wj 1)) (exp wj))
57.0ms
(* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj)))
214.0ms
(- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj))
359.0ms
(/ (- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) (+ wj 1)))

simplify119.0ms

Algorithm
egg-herbie
Counts
425 → 425
Iterations

Useful iterations: 1 (48.0ms)

IterNodesCost
025498445
150017971

prune1.4s

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

regimes81.0ms

Accuracy

55.5% (0.8b remaining)

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

bsearch38.0ms

Steps
ItersRangePoint
9
5.409776585196184e-17
1.0238400441369445e-09
1.0018755083909558e-09

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02930
12930

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.4s7661×body10240exit
197.0ms6278×body80valid
77.0ms807×body320valid
63.0ms440×body640valid
38.0ms540×body160valid