Details

Time bar (total: 12.8s)

sample215.0ms

Algorithm
intervals
Results
51.0ms87×body1280nan
49.0ms113×body1280valid
29.0ms42×body10240exit
21.0ms62×body640valid
19.0ms49×body640nan
8.0ms29×body320nan
7.0ms30×body320valid
6.0ms146×body80nan
4.0ms92×body80valid
3.0ms20×body160nan
1.0ms12×body160valid

simplify33.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1346
2806
32366
48686
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: 33.9b

Counts
2 → 1

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
28×*-un-lft-identity
26×pow-unpow
19×add-cube-cbrt
18×times-frac
17×unpow-prod-down
difference-of-squares
sqr-pow
pow1 add-exp-log add-log-exp
add-cbrt-cube distribute-lft-out--
pow-to-exp pow-pow pow-exp div-inv distribute-lft-out
sub-neg flip3-- diff-log flip--
Counts
3 → 79
Calls
3 calls:
6.0ms
(pow (+ x 1.0) (/ 1.0 n))
3.0ms
(pow x (/ 1.0 n))
9.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series467.0ms

Counts
3 → 9
Calls
3 calls:
144.0ms
(pow (+ x 1.0) (/ 1.0 n))
58.0ms
(pow x (/ 1.0 n))
265.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify42.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0476639
11600623
25001609

prune246.0ms

Filtered
88 candidates to 70 candidates (79.5%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New82688
Fresh000
Picked101
Done000
Total83689

Merged error: 20.4b

Counts
89 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (- (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))))
0.0b
(pow x (/ 1.0 n))
0.0b
(pow x (/ 1.0 n))
2.2b
(- (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n))))

rewrite59.0ms

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt
66×sqrt-prod
49×*-un-lft-identity
34×unpow-prod-down
32×difference-of-squares
26×pow-unpow
23×associate-*r*
22×add-cube-cbrt
18×times-frac sqr-pow
pow1 add-exp-log distribute-lft-out--
associate-*l* distribute-lft-out
add-cbrt-cube add-log-exp
frac-times flip3-- flip--
sub-neg flip3-+ flip-+
distribute-rgt-in pow-to-exp pow-pow distribute-lft-in associate-*r/ associate-*l/ pow-exp div-inv
diff-log pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 140
Calls
4 calls:
31.0ms
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (- (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))))
4.0ms
(pow x (/ 1.0 n))
4.0ms
(pow x (/ 1.0 n))
12.0ms
(- (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n))))

series1.1s

Counts
4 → 12
Calls
4 calls:
580.0ms
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (- (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))))
60.0ms
(pow x (/ 1.0 n))
54.0ms
(pow x (/ 1.0 n))
358.0ms
(- (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n))))

simplify74.0ms

Algorithm
egg-herbie
Counts
152 → 152
Iterations

Useful iterations: 2 (56.0ms)

IterNodesCost
06412018
126881864
250031836

prune495.0ms

Filtered
152 candidates to 108 candidates (71.1%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1484152
Fresh055
Picked101
Done000
Total1499158

Merged error: 20.3b

Counts
158 → 9

localize30.0ms

Local error

Found 4 expressions with local error:

2.6b
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x))
4.2b
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x)))
5.3b
(* x (pow n 2))
5.6b
(* (pow x 2) n)

rewrite69.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
25×*-un-lft-identity
18×associate-*l*
17×associate-*r/
16×add-exp-log frac-add
15×associate-*r*
14×flip3-+ flip-+
12×add-cube-cbrt unpow-prod-down distribute-neg-frac
10×frac-times add-cbrt-cube
unswap-sqr
add-log-exp
prod-exp distribute-lft-out
pow1 sqrt-prod
unpow2 sqr-pow
*-commutative cbrt-unprod
distribute-rgt-in pow-to-exp associate-+l+ distribute-neg-in distribute-lft-in associate-*l/ pow-exp sum-log
+-commutative neg-sub0 associate-+l- pow-prod-down neg-log
Counts
4 → 115
Calls
4 calls:
18.0ms
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x))
36.0ms
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x)))
6.0ms
(* x (pow n 2))
6.0ms
(* (pow x 2) n)

series596.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x))
458.0ms
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* x (pow n 2)))))) (/ (/ 0.5 n) x)))
34.0ms
(* x (pow n 2))
18.0ms
(* (pow x 2) n)

simplify45.0ms

Algorithm
egg-herbie
Counts
127 → 127
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
09442456
150022289

prune683.0ms

Filtered
127 candidates to 92 candidates (72.4%)
Pruning

16 alts after pruning (16 fresh and 0 done)

PrunedKeptTotal
New1189127
Fresh178
Picked101
Done000
Total12016136

Merged error: 20.1b

Counts
136 → 16

localize34.0ms

Local error

Found 4 expressions with local error:

2.6b
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2))))))) (/ (/ 0.5 n) x))
3.2b
(* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2)))
4.2b
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2))))))) (/ (/ 0.5 n) x)))
5.6b
(* (pow x 2) n)

rewrite75.0ms

Algorithm
rewrite-expression-head
Rules
35×add-exp-log
22×*-un-lft-identity prod-exp
17×add-sqr-sqrt associate-*r/
16×associate-*l* frac-add
14×flip3-+ add-cbrt-cube flip-+
12×distribute-neg-frac
11×pow1
10×frac-times cbrt-unprod
add-cube-cbrt
unpow-prod-down associate-*r* add-log-exp
distribute-lft-out
sqrt-prod
unswap-sqr
pow-prod-down
pow-to-exp pow-exp *-commutative
distribute-rgt-in associate-+l+ distribute-neg-in distribute-lft-in associate-*l/ sum-log unpow2 sqr-pow
+-commutative neg-sub0 associate-+l- neg-log
Counts
4 → 112
Calls
4 calls:
18.0ms
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2))))))) (/ (/ 0.5 n) x))
11.0ms
(* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2)))
36.0ms
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2))))))) (/ (/ 0.5 n) x)))
6.0ms
(* (pow x 2) n)

series670.0ms

Counts
4 → 12
Calls
4 calls:
115.0ms
(+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2))))))) (/ (/ 0.5 n) x))
48.0ms
(* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2)))
485.0ms
(* (+ (sqrt (pow (+ x 1.0) (/ 1.0 n))) (sqrt (pow x (/ 1.0 n)))) (+ (- (* 0.25 (+ (/ 1 (* (pow x 2) n)) (/ (log (/ 1 x)) (* (* (cbrt x) (cbrt x)) (* (cbrt x) (pow n 2))))))) (/ (/ 0.5 n) x)))
22.0ms
(* (pow x 2) n)

simplify50.0ms

Algorithm
egg-herbie
Counts
124 → 124
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
09853157
150012910

prune667.0ms

Filtered
124 candidates to 89 candidates (71.8%)
Pruning

15 alts after pruning (15 fresh and 0 done)

PrunedKeptTotal
New1213124
Fresh31215
Picked101
Done000
Total12515140

Merged error: 20.1b

Counts
140 → 15

regimes438.0ms

Accuracy

86% (1.9b remaining)

Error of 24.1b against oracle of 22.2b and baseline of 35.9b

bsearch181.0ms

Steps
ItersRangePoint
7
7528569012387.477
507061619645407.2
7633188339970.273
7
-1681.069840156335
-49.92425379146846
-1660.743692817158

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08093
19293
29893
39893

end0.0ms

sample6.5s

Algorithm
intervals
Results
1.8s3828×body1280valid
1.3s2322×body1280nan
729.0ms1849×body640nan
619.0ms1870×body640valid
616.0ms1411×body10240exit
246.0ms6075×body80nan
228.0ms969×body320nan
201.0ms918×body320valid
153.0ms3080×body80valid
68.0ms475×body160nan
64.0ms473×body160valid