Details

Time bar (total: 6.1s)

sample71.0ms

Algorithm
intervals
Results
47.0ms241×body10240exit
6.0ms201×body80valid
3.0ms28×body320valid
1.0ms10×body640valid
1.0ms20×body160valid

simplify50.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: 13.3b

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

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

series144.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(/ x (+ wj 1))
20.0ms
(/ wj (+ wj 1))
39.0ms
(/ (/ x (+ wj 1)) (exp wj))
59.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify123.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (91.0ms)

IterNodesCost
010154090
145553249
250013243

prune546.0ms

Pruning

8 alts after pruning (8 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))

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

series52.0ms

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

simplify34.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0195282
1764240
25001222

prune112.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.3b

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
0.6b
(cbrt (+ x (pow wj 2)))
0.6b
(cbrt (+ x (pow wj 2)))
0.6b
(cbrt (+ x (pow wj 2)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
36×cbrt-prod
35×*-un-lft-identity
23×add-sqr-sqrt
18×cbrt-div
15×add-cube-cbrt
11×pow1
flip3-+ pow1/3 swap-sqr flip-+ distribute-lft-out
associate-*r* associate-*l*
add-exp-log
expm1-log1p-u frac-times add-cbrt-cube log1p-expm1-u add-log-exp unswap-sqr
associate-*r/ pow-prod-down associate-*l/ pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 103
Calls
4 calls:
13.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
4.0ms
(cbrt (+ x (pow wj 2)))
4.0ms
(cbrt (+ x (pow wj 2)))
4.0ms
(cbrt (+ x (pow wj 2)))

series1.2s

Counts
4 → 12
Calls
4 calls:
274.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
322.0ms
(cbrt (+ x (pow wj 2)))
322.0ms
(cbrt (+ x (pow wj 2)))
317.0ms
(cbrt (+ x (pow wj 2)))

simplify176.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0259918
1988867
24915790
35001790

prune395.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 0.3b

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

rewrite47.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:
7.0ms
(/ x (* (exp wj) (+ wj 1)))
5.0ms
(/ wj (+ wj 1))
7.0ms
(* (exp wj) (+ wj 1))
20.0ms
(- (+ (/ x (* (exp wj) (+ wj 1))) wj) (/ wj (+ wj 1)))

series155.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(/ x (* (exp wj) (+ wj 1)))
20.0ms
(/ wj (+ wj 1))
32.0ms
(* (exp wj) (+ wj 1))
57.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
07993369
136812495
250012486

prune341.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 0.3b

regimes111.0ms

Accuracy

42% (1.0b remaining)

Error of 1.3b against oracle of 0.3b and baseline of 2.0b

bsearch59.0ms

Steps
ItersRangePoint
10
5.2561196964825414e-17
2.348668524657356e-07
2.3299975505553626e-07

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04648
14648

end0.0ms

sample2.2s

Algorithm
intervals
Results
1.5s7666×body10240exit
199.0ms6312×body80valid
82.0ms820×body320valid
61.0ms412×body640valid
36.0ms536×body160valid