Details

Time bar (total: 6.7s)

sample95.0ms

Algorithm
intervals
Results
47.0ms129×body10240exit
16.0ms198×body80valid
8.0ms122×body80overflowed
4.0ms26×body320valid
4.0ms15×body640valid
2.0ms19×body160valid

simplify48.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.2b

localize12.0ms

Local error

Found 4 expressions with local error:

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

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

series140.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(/ wj (+ wj 1))
39.0ms
(/ (/ x (+ wj 1)) (exp wj))
26.0ms
(/ x (+ wj 1))
54.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify123.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (88.0ms)

IterNodesCost
010154090
145553249
250013243

prune512.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.5b

localize7.0ms

Local error

Found 3 expressions with local error:

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

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

series81.0ms

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

simplify37.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0237340
1926292
25001274

prune144.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.5b

localize6.0ms

Local error

Found 2 expressions with local error:

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

rewrite12.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)))
8.0ms
(* 2 (* wj x))

series47.0ms

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

simplify133.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (129.0ms)

IterNodesCost
0185232
1729206
24842196
35001191

prune94.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.5b

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

rewrite54.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:
38.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)))
5.0ms
(cbrt (+ x (pow wj 2)))

series1.2s

Counts
4 → 12
Calls
4 calls:
280.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
324.0ms
(cbrt (+ x (pow wj 2)))
318.0ms
(cbrt (+ x (pow wj 2)))
318.0ms
(cbrt (+ x (pow wj 2)))

simplify169.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0259918
1988867
24915790
35001790

prune299.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.5b

regimes84.0ms

Accuracy

63.8% (0.8b remaining)

Error of 1.1b against oracle of 0.3b and baseline of 2.4b

bsearch46.0ms

Steps
ItersRangePoint
8
2.921432904961236e-10
1.5703764843175337e-06
9.06252678575456e-09

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02915
12915

end0.0ms

sample2.8s

Algorithm
intervals
Results
1.4s3816×body10240exit
433.0ms6236×body80valid
239.0ms3757×body80overflowed
142.0ms822×body320valid
117.0ms480×body640valid
69.0ms548×body160valid