Details

Time bar (total: 11.7s)

sample206.0ms

Algorithm
intervals
Results
66.0ms133×body1280valid
36.0ms60×body1280nan
22.0ms51×body640valid
20.0ms50×body640nan
14.0ms28×body10240exit
8.0ms187×body80nan
8.0ms30×body320nan
6.0ms24×body320valid
4.0ms93×body80valid
2.0ms14×body160nan
2.0ms13×body160valid

simplify35.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1356
2856
32496
49116
550016

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 32.4b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(pow x (/ 1.0 n))
1.9b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
sqr-pow
pow-to-exp sub-neg pow-unpow flip3-- fma-neg prod-diff flip-- div-inv difference-of-squares
Counts
2 → 10
Calls
2 calls:
2.0ms
(pow x (/ 1.0 n))
4.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series355.0ms

Counts
2 → 6
Calls
2 calls:
64.0ms
(pow x (/ 1.0 n))
291.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify107.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 3 (103.0ms)

IterNodesCost
0267192
1864170
24257158
35001152

prune62.0ms

Filtered
16 candidates to 14 candidates (87.5%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New13316
Fresh000
Picked101
Done000
Total14317

Merged error: 21.7b

Counts
17 → 3

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))
0.0b
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))))
1.9b
(- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
12×sqr-pow
frac-times flip3-- flip3-+ flip-- flip-+
distribute-rgt-in sub-neg distribute-lft-in prod-diff
associate-*r/ associate-*l/ difference-of-squares
+-commutative fma-def fma-neg associate-*r* *-commutative
Counts
3 → 27
Calls
3 calls:
8.0ms
(+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))
10.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))))
5.0ms
(- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))

series1.0s

Counts
3 → 9
Calls
3 calls:
220.0ms
(+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))
515.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))))
295.0ms
(- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))

simplify44.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0365787
11342762
25001740

prune145.0ms

Filtered
36 candidates to 31 candidates (86.1%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New33336
Fresh022
Picked011
Done000
Total33639

Merged error: 21.6b

Counts
39 → 6

localize35.0ms

Local error

Found 4 expressions with local error:

3.5b
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (fma (- 0.25) (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))) (/ (/ 0.5 n) x)))
4.0b
(fma (- 0.25) (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))) (/ (/ 0.5 n) x))
7.5b
(* x (pow n 2))
9.4b
(* (pow x 2) n)

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative fma-udef
associate-*r* associate-*l* associate-*l/ unpow2 sqr-pow
distribute-rgt-in distribute-lft-in flip3-+ flip-+
Counts
4 → 12
Calls
4 calls:
6.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (fma (- 0.25) (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))) (/ (/ 0.5 n) x)))
1.0ms
(fma (- 0.25) (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))) (/ (/ 0.5 n) x))
3.0ms
(* x (pow n 2))
3.0ms
(* (pow x 2) n)

series545.0ms

Counts
4 → 12
Calls
4 calls:
399.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (fma (- 0.25) (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))) (/ (/ 0.5 n) x)))
98.0ms
(fma (- 0.25) (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))) (/ (/ 0.5 n) x))
30.0ms
(* x (pow n 2))
18.0ms
(* (pow x 2) n)

simplify37.0ms

Algorithm
egg-herbie
Counts
24 → 24
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0328269
11324265
25002253

prune108.0ms

Filtered
24 candidates to 16 candidates (66.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New22224
Fresh134
Picked101
Done011
Total24630

Merged error: 21.6b

Counts
30 → 6

localize37.0ms

Local error

Found 4 expressions with local error:

3.5b
(* (- (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))) (fma 0.25 (/ (log (/ 1 x)) (* x (pow n 2))) (/ (/ 0.25 n) (pow x 2))))
4.0b
(+ (* (- (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))) (fma 0.25 (/ (log (/ 1 x)) (* x (pow n 2))) (/ (/ 0.25 n) (pow x 2)))) (* (/ (/ 0.5 n) x) (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))))
7.5b
(* x (pow n 2))
8.9b
(/ (/ 0.25 n) (pow x 2))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
62×associate-*l/
48×distribute-neg-frac
46×frac-add
41×flip3-+ flip-+
28×frac-times
21×associate-/l/
14×frac-2neg clear-num
10×div-inv
associate-/l*
distribute-rgt-in associate-+r+ distribute-lft-in associate-*r/ fma-udef
+-commutative fma-def *-commutative unpow2 sqr-pow
neg-mul-1 associate-+l+ times-frac associate-*r* associate-*l* associate-/r*
distribute-lft-neg-out
Counts
4 → 79
Calls
4 calls:
6.0ms
(* (- (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))) (fma 0.25 (/ (log (/ 1 x)) (* x (pow n 2))) (/ (/ 0.25 n) (pow x 2))))
18.0ms
(+ (* (- (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))) (fma 0.25 (/ (log (/ 1 x)) (* x (pow n 2))) (/ (/ 0.25 n) (pow x 2)))) (* (/ (/ 0.5 n) x) (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))))
3.0ms
(* x (pow n 2))
4.0ms
(/ (/ 0.25 n) (pow x 2))

series1.3s

Counts
4 → 12
Calls
4 calls:
527.0ms
(* (- (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))) (fma 0.25 (/ (log (/ 1 x)) (* x (pow n 2))) (/ (/ 0.25 n) (pow x 2))))
667.0ms
(+ (* (- (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))) (fma 0.25 (/ (log (/ 1 x)) (* x (pow n 2))) (/ (/ 0.25 n) (pow x 2)))) (* (/ (/ 0.5 n) x) (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))))
37.0ms
(* x (pow n 2))
26.0ms
(/ (/ 0.25 n) (pow x 2))

simplify73.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
012844972
150024758

prune586.0ms

Filtered
91 candidates to 75 candidates (82.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New89291
Fresh134
Picked101
Done011
Total91697

Merged error: 21.6b

Counts
97 → 6

regimes212.0ms

Accuracy

84.5% (1.6b remaining)

Error of 23.3b against oracle of 21.7b and baseline of 32.2b

bsearch2.0ms

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
077181
182181
283181
383181

end0.0ms

sample6.7s

Algorithm
intervals
Results
1.9s3926×body1280valid
1.4s2181×body1280nan
759.0ms1799×body640nan
625.0ms1410×body10240exit
608.0ms1762×body640valid
268.0ms6260×body80nan
227.0ms868×body320nan
195.0ms861×body320valid
165.0ms3228×body80valid
66.0ms462×body160valid
65.0ms430×body160nan