Details

Time bar (total: 3.8s)

sample78.0ms

Algorithm
intervals
Results
50.0ms279×body10240exit
10.0ms208×body80valid
3.0ms26×body320valid
2.0ms11×body640valid
1.0ms13×body160valid

simplify48.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (6.0ms)

IterNodesCost
0219
1529
21139
32408
416258
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 11.6b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (/ x (+ wj 1)) (exp wj))
0.0b
(/ x (+ wj 1))
0.0b
(/ wj (+ wj 1))
4.3b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

rewrite67.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:
9.0ms
(/ (/ x (+ wj 1)) (exp wj))
5.0ms
(/ x (+ wj 1))
8.0ms
(/ wj (+ wj 1))
32.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series141.0ms

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

simplify120.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (88.0ms)

IterNodesCost
010124140
145523266
250013260

prune513.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.1b

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

rewrite19.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:
7.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
5.0ms
(+ x (pow wj 2))
5.0ms
(* 2 (* wj x))

series80.0ms

Counts
3 → 9
Calls
3 calls:
29.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
31.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
0237340
1926292
25001274

prune139.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.1b

localize11.0ms

rewrite0.0ms

Algorithm
rewrite-expression-head
Rules
Counts
0 → 0

series0.0ms

Counts
0 → 0

simplify2.0ms

Algorithm
egg-herbie
Counts
0 → 0
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
000

prune8.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite31.0ms

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

series108.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
28.0ms
(+ x (pow wj 2))
18.0ms
(* 2 (* wj x))
29.0ms
(exp (log (- (+ x (pow wj 2)) (* 2 (* wj x)))))

simplify38.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0276524
1987454
25001420

prune195.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.1b

regimes55.0ms

Accuracy

63.5% (0.6b remaining)

Error of 1.2b against oracle of 0.6b and baseline of 2.3b

bsearch34.0ms

Steps
ItersRangePoint
8
1.7609357123327368e-10
9.598072339636849e-08
7.797590991129306e-08

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03524
13524

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.5s7700×body10240exit
190.0ms6334×body80valid
74.0ms772×body320valid
62.0ms429×body640valid
32.0ms531×body160valid