Details

Time bar (total: 5.8s)

sample68.0ms

Algorithm
intervals
Results
41.0ms232×body10240exit
6.0ms198×body80valid
3.0ms29×body320valid
2.0ms16×body640valid
1.0ms17×body160valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0219
1529
21139
32408
416258
550018

prune7.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 14.4b

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

rewrite673.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
(/ x (+ wj 1))
11.0ms
(/ wj (+ wj 1))
24.0ms
(/ (/ x (+ wj 1)) (exp wj))
613.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series162.0ms

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

simplify122.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (90.0ms)

IterNodesCost
010154090
145553249
250013243

prune539.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.3b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite107.0ms

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

series55.0ms

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

simplify33.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0195286
1760241
25001222

prune99.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.3b

localize9.0ms

Local error

Found 4 expressions with local error:

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

rewrite377.0ms

Algorithm
rewrite-expression-head
Rules
145×*-un-lft-identity
75×add-sqr-sqrt
72×prod-diff
68×add-cube-cbrt
64×times-frac
37×distribute-lft-out
13×add-cbrt-cube
12×associate-/r/
11×add-exp-log
add-log-exp
flip3-+ flip-+
pow1 div-inv associate-/l*
associate-/r*
expm1-log1p-u fma-neg associate-*r/ associate-*r* log1p-expm1-u
cbrt-undiv div-exp associate-*l*
frac-2neg diff-log prod-exp clear-num frac-sub cbrt-unprod distribute-lft-out-- difference-of-squares
distribute-rgt-in sub-neg flip3-- distribute-lft-in pow-prod-down associate--l+ sum-log *-commutative flip-- unswap-sqr
Counts
4 → 183
Calls
4 calls:
15.0ms
(/ x (* (exp wj) (+ wj 1)))
11.0ms
(/ wj (+ wj 1))
24.0ms
(* (exp wj) (+ wj 1))
316.0ms
(- (+ (/ x (* (exp wj) (+ wj 1))) wj) (/ wj (+ wj 1)))

series167.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(/ x (* (exp wj) (+ wj 1)))
21.0ms
(/ wj (+ wj 1))
34.0ms
(* (exp wj) (+ wj 1))
64.0ms
(- (+ (/ x (* (exp wj) (+ wj 1))) wj) (/ wj (+ wj 1)))

simplify106.0ms

Algorithm
egg-herbie
Counts
195 → 195
Iterations

Useful iterations: 2 (82.0ms)

IterNodesCost
08013328
136832485
250012476

prune340.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.3b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite200.0ms

Algorithm
rewrite-expression-head
Rules
14×*-un-lft-identity
11×pow1
10×add-exp-log add-sqr-sqrt add-cube-cbrt
add-cbrt-cube add-log-exp
log-prod
expm1-log1p-u log-div exp-prod fma-neg prod-diff log1p-expm1-u
flip3-- associate-*l* exp-sum pow-prod-down prod-exp flip-- cbrt-unprod
exp-diff diff-log log-pow distribute-lft-out
sub-neg rem-log-exp associate-*r* associate--l+ sum-log *-commutative rem-exp-log
Counts
4 → 79
Calls
4 calls:
48.0ms
(log (- (+ x (pow wj 2)) (* 2 (* wj x))))
87.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
16.0ms
(* 2 (* wj x))
46.0ms
(exp (log (- (+ x (pow wj 2)) (* 2 (* wj x)))))

series229.0ms

Counts
4 → 12
Calls
4 calls:
141.0ms
(log (- (+ x (pow wj 2)) (* 2 (* wj x))))
36.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
20.0ms
(* 2 (* wj x))
32.0ms
(exp (log (- (+ x (pow wj 2)) (* 2 (* wj x)))))

simplify40.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0302670
11058576
25001541

prune188.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.3b

regimes67.0ms

Accuracy

67.7% (0.6b remaining)

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

bsearch36.0ms

Steps
ItersRangePoint
10
3.2716599026957865e-16
2.5556453819330236
4.160404689641217e-09

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02713
12713

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.3s7548×body10240exit
181.0ms6299×body80valid
71.0ms489×body640valid
71.0ms793×body320valid
28.0ms493×body160valid