Details

Time bar (total: 9.8s)

sample167.0ms

Algorithm
intervals
Results
46.0ms94×body1280valid
25.0ms64×body640valid
18.0ms56×body10240exit
14.0ms33×body640nan
12.0ms151×body80valid
11.0ms26×body1280nan
9.0ms209×body80nan
7.0ms31×body320valid
2.0ms18×body160valid
2.0ms10×body320nan
1.0msbody160nan

simplify35.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1356
2856
32496
49116
550016

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 31.3b

localize8.0ms

Local error

Found 3 expressions with local error:

0.5b
(pow x (/ 1.0 n))
1.2b
(pow (+ x 1.0) (/ 1.0 n))
1.6b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

rewrite116.0ms

Algorithm
rewrite-expression-head
Rules
76×*-un-lft-identity
73×unpow-prod-down
63×add-sqr-sqrt
56×prod-diff
51×add-cube-cbrt
26×pow-unpow
24×sqr-pow
18×times-frac
10×distribute-lft-out
difference-of-squares
fma-neg
pow1 add-exp-log add-log-exp
expm1-log1p-u add-cbrt-cube log1p-expm1-u distribute-lft-out--
pow-to-exp pow-pow pow-exp div-inv
sub-neg flip3-- diff-log flip--
Counts
3 → 149
Calls
3 calls:
4.0ms
(pow x (/ 1.0 n))
11.0ms
(pow (+ x 1.0) (/ 1.0 n))
95.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series437.0ms

Counts
3 → 9
Calls
3 calls:
51.0ms
(pow x (/ 1.0 n))
135.0ms
(pow (+ x 1.0) (/ 1.0 n))
251.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify70.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
06542164
121641642
250021637

prune533.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 24.1b

localize11.0ms

Local error

Found 4 expressions with local error:

0.5b
(pow x (/ 1.0 n))
1.2b
(pow (+ x 1.0) (/ 1.0 n))
1.6b
(log (exp (- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))))
1.6b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

rewrite294.0ms

Algorithm
rewrite-expression-head
Rules
135×unpow-prod-down
130×*-un-lft-identity
112×prod-diff
108×add-sqr-sqrt
84×add-cube-cbrt
61×log-prod
58×exp-sum
45×sqr-pow
26×pow-unpow
18×times-frac distribute-lft-out difference-of-squares
16×log-pow
15×exp-prod
fma-neg
pow1
add-exp-log distribute-lft-out-- add-log-exp
expm1-log1p-u add-cbrt-cube log1p-expm1-u
pow-to-exp sub-neg pow-pow pow-exp div-inv
log-div flip3-- exp-diff diff-log rem-log-exp flip--
Counts
4 → 237
Calls
4 calls:
4.0ms
(pow x (/ 1.0 n))
11.0ms
(pow (+ x 1.0) (/ 1.0 n))
174.0ms
(log (exp (- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))))
93.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series694.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(pow x (/ 1.0 n))
131.0ms
(pow (+ x 1.0) (/ 1.0 n))
253.0ms
(log (exp (- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))))
253.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify82.0ms

Algorithm
egg-herbie
Counts
249 → 249
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
08353935
124772885
250012880

prune862.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 24.1b

localize20.0ms

Local error

Found 4 expressions with local error:

0.8b
(/ 1 (* x n))
3.0b
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
8.0b
(* (pow x 2) n)
8.3b
(* x (pow n 2))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
25×add-exp-log
24×add-sqr-sqrt
13×add-cbrt-cube
12×add-cube-cbrt *-un-lft-identity
11×associate-*r* associate-*l*
prod-exp
unpow-prod-down unswap-sqr
pow1
expm1-log1p-u div-exp log1p-expm1-u unpow2 add-log-exp sqr-pow
times-frac cbrt-unprod associate-/l*
cbrt-undiv pow-to-exp rec-exp pow-flip 1-exp pow-exp *-commutative
frac-2neg pow-prod-down clear-num associate-/r* fma-udef div-inv inv-pow
Counts
4 → 98
Calls
4 calls:
11.0ms
(/ 1 (* x n))
0.0ms
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
14.0ms
(* (pow x 2) n)
12.0ms
(* x (pow n 2))

series132.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(/ 1 (* x n))
80.0ms
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
16.0ms
(* (pow x 2) n)
26.0ms
(* x (pow n 2))

simplify54.0ms

Algorithm
egg-herbie
Counts
110 → 110
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
0383546
11807466
25001459

prune490.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 23.3b

localize19.0ms

Local error

Found 4 expressions with local error:

0.5b
(/ 1 (* (pow x 2) n))
3.0b
(fma 1.0 (/ (/ 1 x) n) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
8.0b
(* (pow x 2) n)
8.3b
(* x (pow n 2))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
36×add-exp-log
24×add-sqr-sqrt
15×prod-exp
13×add-cbrt-cube
12×add-cube-cbrt *-un-lft-identity
11×associate-*r* associate-*l*
unpow-prod-down div-exp unswap-sqr
pow1 pow-to-exp pow-exp
expm1-log1p-u rec-exp 1-exp log1p-expm1-u unpow2 add-log-exp sqr-pow
times-frac cbrt-unprod associate-/l*
cbrt-undiv *-commutative
pow-flip frac-2neg clear-num associate-/r* fma-udef div-inv inv-pow
Counts
4 → 103
Calls
4 calls:
14.0ms
(/ 1 (* (pow x 2) n))
0.0ms
(fma 1.0 (/ (/ 1 x) n) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
12.0ms
(* (pow x 2) n)
12.0ms
(* x (pow n 2))

series139.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(/ 1 (* (pow x 2) n))
81.0ms
(fma 1.0 (/ (/ 1 x) n) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
16.0ms
(* (pow x 2) n)
27.0ms
(* x (pow n 2))

simplify52.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0382604
11725520
25001513

prune452.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 23.3b

regimes385.0ms

Accuracy

82.5% (1.5b remaining)

Error of 22.6b against oracle of 21.1b and baseline of 29.6b

bsearch181.0ms

Steps
ItersRangePoint
7
16603184964.807266
1028783679204.0626
132305818796.19409
7
-46937230644809.76
-668239200238.3602
-681378613956.7775

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04638
14638

end0.0ms

sample4.5s

Algorithm
intervals
Results
1.6s3177×body1280valid
612.0ms1619×body640valid
541.0ms1175×body10240exit
308.0ms625×body1280nan
280.0ms4655×body80valid
224.0ms645×body640nan
216.0ms5005×body80nan
199.0ms815×body320valid
76.0ms364×body320nan
75.0ms503×body160valid
26.0ms203×body160nan