Details

Time bar (total: 26.1s)

sample198.0ms

Algorithm
intervals
Results
64.0ms133×body1280valid
34.0ms60×body1280nan
19.0ms50×body640nan
17.0ms51×body640valid
13.0ms28×body10240exit
11.0ms187×body80nan
7.0ms30×body320nan
6.0ms24×body320valid
4.0ms93×body80valid
2.0ms14×body160nan
2.0ms13×body160valid

simplify152.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1346
2806
32366
48686
549966
650016

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

localize8.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-- flip-- div-inv difference-of-squares
Counts
2 → 8
Calls
2 calls:
2.0ms
(pow x (/ 1.0 n))
4.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series331.0ms

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

simplify97.0ms

Algorithm
egg-herbie
Counts
14 → 14
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0248158
1788157
23833145
35001145

prune50.0ms

Filtered
14 candidates to 12 candidates (85.7%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New11314
Fresh000
Picked101
Done000
Total12315

Merged error: 21.6b

Counts
15 → 3

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

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
frac-times flip3-- flip3-+ flip-- flip-+ sqr-pow
sub-neg
distribute-rgt-in distribute-lft-in associate-*r/ associate-*l/ difference-of-squares
+-commutative associate-*r* *-commutative
Counts
3 → 22
Calls
3 calls:
4.0ms
(+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))
9.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)))

series966.0ms

Counts
3 → 9
Calls
3 calls:
200.0ms
(+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))
496.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))))
270.0ms
(- (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2)))

simplify43.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0324654
11183637
25002626

prune116.0ms

Filtered
31 candidates to 27 candidates (87.1%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New30131
Fresh022
Picked011
Done000
Total30434

Merged error: 21.6b

Counts
34 → 4

localize28.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))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x)))
4.0b
(+ (- (* 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)

rewrite384.0ms

Algorithm
rewrite-expression-head
Rules
3192×frac-add
2032×associate-*r/
1680×associate-/r*
1624×distribute-neg-frac
884×frac-2neg clear-num
816×frac-times
696×associate-/l/
450×associate-*l*
441×flip3-+ flip-+
428×associate-/l*
423×*-commutative
422×unpow2 sqr-pow
394×associate-*r*
232×div-inv
196×log-pow inv-pow
12×distribute-rgt-in associate-+l+ distribute-neg-in distribute-lft-in
+-commutative
associate-*l/
neg-sub0 associate-+l-
Counts
4 → 1659
Calls
4 calls:
103.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x)))
31.0ms
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x))
3.0ms
(* x (pow n 2))
4.0ms
(* (pow x 2) n)

series518.0ms

Counts
4 → 12
Calls
4 calls:
381.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x)))
82.0ms
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x))
36.0ms
(* x (pow n 2))
18.0ms
(* (pow x 2) n)

simplify729.0ms

Algorithm
egg-herbie
Counts
1671 → 1671
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
0500178331

prune10.0s

Filtered
1671 candidates to 1497 candidates (89.6%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New166561671
Fresh022
Picked011
Done011
Total1665101675

Merged error: 21.5b

Counts
1675 → 10

localize28.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))) (- (+ (* 0.5 (/ 1 (* x n))) (* 0.25 (/ (log x) (* x (pow n 2))))) (* 0.25 (/ 1 (* (pow x 2) n)))))
4.0b
(+ (* 0.5 (/ 1 (* x n))) (* 0.25 (/ (log x) (* x (pow n 2)))))
7.5b
(* x (pow n 2))
9.4b
(* (pow x 2) n)

rewrite400.0ms

Algorithm
rewrite-expression-head
Rules
4244×associate-*r/
1937×associate-/r*
1571×frac-add
1566×frac-sub
1188×clear-num
1050×frac-times
992×un-div-inv
600×*-commutative
594×frac-2neg
554×flip3-+ flip-+
397×associate-*r*
378×unpow2
372×sqr-pow
353×associate-*l*
distribute-rgt-in distribute-lft-in associate--l+
+-commutative flip3-- flip-- sub-div
sub-neg associate-*l/
Counts
4 → 1651
Calls
4 calls:
133.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (- (+ (* 0.5 (/ 1 (* x n))) (* 0.25 (/ (log x) (* x (pow n 2))))) (* 0.25 (/ 1 (* (pow x 2) n)))))
11.0ms
(+ (* 0.5 (/ 1 (* x n))) (* 0.25 (/ (log x) (* x (pow n 2)))))
3.0ms
(* x (pow n 2))
3.0ms
(* (pow x 2) n)

series566.0ms

Counts
4 → 12
Calls
4 calls:
371.0ms
(* (+ (pow (+ x 1.0) (/ (/ 1.0 n) 2)) (pow x (/ (/ 1.0 n) 2))) (- (+ (* 0.5 (/ 1 (* x n))) (* 0.25 (/ (log x) (* x (pow n 2))))) (* 0.25 (/ 1 (* (pow x 2) n)))))
148.0ms
(+ (* 0.5 (/ 1 (* x n))) (* 0.25 (/ (log x) (* x (pow n 2)))))
29.0ms
(* x (pow n 2))
18.0ms
(* (pow x 2) n)

simplify732.0ms

Algorithm
egg-herbie
Counts
1663 → 1663
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
0500174215

prune3.9s

Filtered
1663 candidates to 575 candidates (34.6%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New165941663
Fresh257
Picked011
Done112
Total1662111673

Merged error: 21.4b

Counts
1673 → 11

regimes276.0ms

Accuracy

83.8% (1.7b remaining)

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

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04747
14747

end0.0ms

sample6.6s

Algorithm
intervals
Results
1.8s3926×body1280valid
1.3s2181×body1280nan
743.0ms1410×body10240exit
708.0ms1799×body640nan
595.0ms1762×body640valid
263.0ms6260×body80nan
215.0ms868×body320nan
193.0ms861×body320valid
155.0ms3228×body80valid
65.0ms462×body160valid
61.0ms430×body160nan