Details

Time bar (total: 10.1s)

sample176.0ms

Algorithm
intervals
Results
61.0ms100×body1280valid
25.0ms52×body640valid
19.0ms140×body80valid
13.0ms164×body80nan
13.0ms17×body1280nan
9.0ms27×body320valid
8.0ms19×body640nan
4.0ms16×body160valid
3.0ms31×body80overflowed
3.0ms10×body320nan
2.0ms10×body160nan

simplify33.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1346
2806
32366
48686
550016

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 29.4b

localize8.0ms

Local error

Found 3 expressions with local error:

0.5b
(pow x (/ 1.0 n))
1.0b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
1.7b
(pow (+ x 1.0) (/ 1.0 n))

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

series462.0ms

Counts
3 → 9
Calls
3 calls:
53.0ms
(pow x (/ 1.0 n))
271.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
138.0ms
(pow (+ x 1.0) (/ 1.0 n))

simplify42.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0476639
11600623
25001609

prune247.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 20.3b

localize10.0ms

Local error

Found 4 expressions with local error:

0.1b
(log (- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n))))
0.5b
(pow x (/ 1.0 n))
1.0b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
1.7b
(pow (+ x 1.0) (/ 1.0 n))

rewrite76.0ms

Algorithm
rewrite-expression-head
Rules
45×add-sqr-sqrt
37×*-un-lft-identity
27×unpow-prod-down
26×pow-unpow
21×add-cube-cbrt
18×times-frac difference-of-squares
15×log-prod
14×sqr-pow
pow1 add-exp-log
distribute-lft-out-- add-log-exp
add-cbrt-cube
distribute-lft-out
pow-to-exp log-div flip3-- pow-pow pow-exp flip-- div-inv
sub-neg diff-log rem-log-exp log-pow
Counts
4 → 105
Calls
4 calls:
21.0ms
(log (- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n))))
2.0ms
(pow x (/ 1.0 n))
43.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
6.0ms
(pow (+ x 1.0) (/ 1.0 n))

series907.0ms

Counts
4 → 12
Calls
4 calls:
441.0ms
(log (- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n))))
59.0ms
(pow x (/ 1.0 n))
266.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))
141.0ms
(pow (+ x 1.0) (/ 1.0 n))

simplify50.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
05581053
118411010
25002996

prune389.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 20.3b

localize16.0ms

Local error

Found 4 expressions with local error:

1.0b
(/ (* (log x) 1.0) (* x (pow n 2)))
2.3b
(- (/ (/ 1.0 n) x) (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
9.6b
(* x (pow n 2))
10.9b
(/ (/ 0.5 n) (pow x 2))

rewrite228.0ms

Algorithm
rewrite-expression-head
Rules
189×times-frac
113×add-sqr-sqrt
103×*-un-lft-identity
98×add-cube-cbrt
46×add-exp-log unpow-prod-down
23×add-cbrt-cube
17×div-exp
16×unpow2 sqr-pow
14×associate-/l*
13×prod-exp
11×div-inv
associate-/r* add-log-exp
associate-*r*
cbrt-undiv
pow-to-exp pow-exp cbrt-unprod
pow1 frac-sub unswap-sqr
diff-log associate-*l* distribute-lft-out-- difference-of-squares
sub-neg flip3-- frac-2neg clear-num flip-- associate--r+
*-commutative associate-/l/ associate--r-
Counts
4 → 220
Calls
4 calls:
5.0ms
(/ (* (log x) 1.0) (* x (pow n 2)))
199.0ms
(- (/ (/ 1.0 n) x) (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
6.0ms
(* x (pow n 2))
8.0ms
(/ (/ 0.5 n) (pow x 2))

series204.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(/ (* (log x) 1.0) (* x (pow n 2)))
62.0ms
(- (/ (/ 1.0 n) x) (- (/ (/ 0.5 n) (pow x 2)) (/ (* (log x) 1.0) (* x (pow n 2)))))
33.0ms
(* x (pow n 2))
26.0ms
(/ (/ 0.5 n) (pow x 2))

simplify51.0ms

Algorithm
egg-herbie
Counts
232 → 232
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
011122049
150011858

prune656.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 20.2b

localize19.0ms

Local error

Found 4 expressions with local error:

2.2b
(log (exp (/ 0.5 (* (pow x 2) n))))
2.3b
(- (/ (/ 1.0 n) x) (- (log (exp (/ 0.5 (* (pow x 2) n)))) (/ (* (log x) 1.0) (* x (pow n 2)))))
9.6b
(* x (pow n 2))
10.7b
(* (pow x 2) n)

rewrite112.0ms

Algorithm
rewrite-expression-head
Rules
35×add-sqr-sqrt
21×*-un-lft-identity
14×add-exp-log add-cube-cbrt
11×associate-*r* associate-*l*
log-pow
unpow-prod-down add-cbrt-cube add-log-exp unswap-sqr
exp-prod
pow1 log-prod times-frac prod-exp
associate--r+ distribute-lft-out--
unpow2 sqr-pow
diff-log associate--l+ difference-of-squares
pow-to-exp sub-neg flip3-- pow-exp *-commutative frac-sub flip-- cbrt-unprod
rem-log-exp div-inv associate--r-
Counts
4 → 100
Calls
4 calls:
4.0ms
(log (exp (/ 0.5 (* (pow x 2) n))))
93.0ms
(- (/ (/ 1.0 n) x) (- (log (exp (/ 0.5 (* (pow x 2) n)))) (/ (* (log x) 1.0) (* x (pow n 2)))))
6.0ms
(* x (pow n 2))
6.0ms
(* (pow x 2) n)

series138.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(log (exp (/ 0.5 (* (pow x 2) n))))
66.0ms
(- (/ (/ 1.0 n) x) (- (log (exp (/ 0.5 (* (pow x 2) n)))) (/ (* (log x) 1.0) (* x (pow n 2)))))
29.0ms
(* x (pow n 2))
21.0ms
(* (pow x 2) n)

simplify71.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
0514973
12276880
25001868

prune365.0ms

Pruning

14 alts after pruning (13 fresh and 1 done)

Merged error: 20.2b

regimes365.0ms

Accuracy

77.3% (2.1b remaining)

Error of 22.6b against oracle of 20.4b and baseline of 29.8b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04026
14026

end0.0ms

sample5.4s

Algorithm
intervals
Results
2.0s3170×body1280valid
759.0ms1574×body640valid
522.0ms4747×body80valid
414.0ms5172×body80nan
376.0ms609×body1280nan
314.0ms939×body320valid
297.0ms630×body640nan
135.0ms1316×body80overflowed
103.0ms448×body160valid
101.0ms342×body320nan
31.0ms154×body160nan