Details

Time bar (total: 10.0m)

sample133.0ms

Algorithm
intervals
Results
47.0ms110×body1280valid
19.0ms37×body10240exit
19.0ms56×body640valid
7.0ms140×body80valid
6.0ms17×body1280nan
6.0ms170×body80nan
4.0ms21×body320valid
4.0ms15×body640nan
3.0ms16×body320nan
2.0ms14×body160valid
1.0msbody160nan

simplify35.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1356
2856
32496
49116
550016

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 28.0b

localize8.0ms

Local error

Found 3 expressions with local error:

1.1b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
1.2b
(pow x (/ 1.0 n))
2.1b
(pow (+ x 1.0) (/ 1.0 n))

rewrite73.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:
57.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
2.0ms
(pow x (/ 1.0 n))
6.0ms
(pow (+ x 1.0) (/ 1.0 n))

series466.0ms

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

simplify65.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
06542164
121621642
250021637

prune318.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 20.9b

localize12.0ms

Local error

Found 3 expressions with local error:

1.1b
(fma (pow 1 (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n)) (- (pow x (/ 1.0 n))))
1.2b
(pow x (/ 1.0 n))
2.1b
(pow (+ x 1.0) (/ 1.0 n))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
26×pow-unpow
21×*-un-lft-identity
19×add-sqr-sqrt add-cube-cbrt
18×times-frac
unpow-prod-down
pow1 add-exp-log
expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
pow-to-exp pow-pow pow-exp div-inv sqr-pow
fma-udef distribute-lft-out
Counts
3 → 69
Calls
3 calls:
0.0ms
(fma (pow 1 (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n)) (- (pow x (/ 1.0 n))))
2.0ms
(pow x (/ 1.0 n))
6.0ms
(pow (+ x 1.0) (/ 1.0 n))

series7.0m

Counts
3 → 9
Calls
3 calls:
7.0m
(fma (pow 1 (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n)) (- (pow x (/ 1.0 n))))
53.0ms
(pow x (/ 1.0 n))
144.0ms
(pow (+ x 1.0) (/ 1.0 n))

simplify42.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0478525
11760492
25001485

prune232.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 20.6b

localize19.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (log (/ 1 x)) (* x (pow n 2)))
1.5b
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
9.2b
(* x (pow n 2))
9.7b
(* (pow x 2) n)

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
24×add-exp-log add-sqr-sqrt
13×add-cbrt-cube
12×add-cube-cbrt *-un-lft-identity
11×associate-*r* associate-*l*
prod-exp
pow1 unpow-prod-down unswap-sqr
times-frac log-pow associate-/l*
expm1-log1p-u div-exp log1p-expm1-u unpow2 add-log-exp sqr-pow
pow-to-exp pow-exp cbrt-unprod
cbrt-undiv pow-flip *-commutative inv-pow
log-div frac-2neg div-sub distribute-frac-neg log-rec clear-num associate-/r* fma-udef div-inv
Counts
4 → 101
Calls
4 calls:
10.0ms
(/ (log (/ 1 x)) (* x (pow n 2)))
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)))))))
6.0ms
(* x (pow n 2))
6.0ms
(* (pow x 2) n)

series191.0ms

Counts
4 → 12
Calls
4 calls:
68.0ms
(/ (log (/ 1 x)) (* x (pow n 2)))
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)))))))
27.0ms
(* x (pow n 2))
16.0ms
(* (pow x 2) n)

simplify50.0ms

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0383691
11703592
25002591

prune354.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 20.6b

localize21.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (log (/ 1 x)) (* x (pow n 2)))
1.5b
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (log1p (expm1 (* (pow x 2) n)))) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
9.2b
(* x (pow n 2))
9.7b
(* (pow x 2) n)

rewrite23.0ms

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

series242.0ms

Counts
4 → 12
Calls
4 calls:
69.0ms
(/ (log (/ 1 x)) (* x (pow n 2)))
127.0ms
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (log1p (expm1 (* (pow x 2) n)))) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
26.0ms
(* x (pow n 2))
19.0ms
(* (pow x 2) n)

simplify50.0ms

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0388715
11715609
25001607

prune371.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 20.6b

regimes221.0ms

Accuracy

82.5% (1.5b remaining)

Error of 22.2b against oracle of 20.7b and baseline of 29.2b

bsearch117.0ms

Steps
ItersRangePoint
4
35684799163967.39
65476467807244.016
38477768099274.57
8
-1.4656833132303516e+19
-5.137140036294433e+16
-5.194583831257681e+16

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04425
14425

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.3s3139×body1280valid
520.0ms1607×body640valid
396.0ms1116×body10240exit
278.0ms647×body1280nan
232.0ms4738×body80valid
210.0ms675×body640nan
185.0ms865×body320valid
171.0ms5153×body80nan
63.0ms366×body320nan
55.0ms438×body160valid
21.0ms207×body160nan

end2.9m