Details

Time bar (total: 5.2s)

sample69.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (6.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

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

rewrite523.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:
11.0ms
(/ x (+ wj 1))
11.0ms
(/ wj (+ wj 1))
22.0ms
(/ (/ x (+ wj 1)) (exp wj))
471.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series133.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(/ x (+ wj 1))
19.0ms
(/ wj (+ wj 1))
37.0ms
(/ (/ x (+ wj 1)) (exp wj))
56.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify81.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
07211524
133031471
250011469

prune419.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.3b

localize11.0ms

Local error

Found 2 expressions with local error:

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

rewrite89.0ms

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

series48.0ms

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

simplify108.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0162200
1641179
23838177
35001177

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

rewrite303.0ms

Algorithm
rewrite-expression-head
Rules
32×*-un-lft-identity
24×add-sqr-sqrt
17×add-cube-cbrt
16×times-frac
13×add-cbrt-cube
11×add-exp-log
add-log-exp
pow1 distribute-lft-out associate-/l*
associate-/r*
flip3-+ associate-*r/ associate-*r* associate-/r/ flip-+
cbrt-undiv div-exp associate-*l*
frac-2neg diff-log prod-exp clear-num frac-sub cbrt-unprod div-inv 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 → 99
Calls
4 calls:
15.0ms
(/ x (* (exp wj) (+ wj 1)))
11.0ms
(/ wj (+ wj 1))
24.0ms
(* (exp wj) (+ wj 1))
251.0ms
(- (+ (/ x (* (exp wj) (+ wj 1))) wj) (/ wj (+ wj 1)))

series147.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(/ x (* (exp wj) (+ wj 1)))
24.0ms
(/ wj (+ wj 1))
31.0ms
(* (exp wj) (+ wj 1))
54.0ms
(- (+ (/ x (* (exp wj) (+ wj 1))) wj) (/ wj (+ wj 1)))

simplify57.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
0493762
12288711
25001708

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

rewrite171.0ms

Algorithm
rewrite-expression-head
Rules
11×pow1
10×add-exp-log
add-cbrt-cube add-log-exp
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
log-prod
log-div exp-prod
flip3-- associate-*l* exp-sum pow-prod-down prod-exp flip-- cbrt-unprod
exp-diff diff-log log-pow
sub-neg rem-log-exp associate-*r* associate--l+ sum-log *-commutative rem-exp-log
Counts
4 → 63
Calls
4 calls:
40.0ms
(log (- (+ x (pow wj 2)) (* 2 (* wj x))))
70.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
17.0ms
(* 2 (* wj x))
42.0ms
(exp (log (- (+ x (pow wj 2)) (* 2 (* wj x)))))

series207.0ms

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

simplify134.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0265556
1927502
24911487
35001487

prune134.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.3b

regimes65.0ms

Accuracy

67.7% (0.6b remaining)

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

bsearch37.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.0s

Algorithm
intervals
Results
1.3s7548×body10240exit
177.0ms6299×body80valid
76.0ms793×body320valid
70.0ms489×body640valid
28.0ms493×body160valid