Details

Time bar (total: 10.6s)

sample190.0ms

Algorithm
intervals
Results
67.0ms117×body1280valid
25.0ms39×body10240exit
20.0ms48×body640valid
15.0ms155×body80valid
14.0ms197×body80nan
10.0ms23×body640nan
9.0ms18×body1280nan
5.0ms16×body320valid
4.0ms15×body320nan
3.0ms13×body160valid
0.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: 29.2b

localize8.0ms

Local error

Found 3 expressions with local error:

0.7b
(pow x (/ 1.0 n))
0.7b
(pow (+ x 1.0) (/ 1.0 n))
1.8b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

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

series462.0ms

Counts
3 → 9
Calls
3 calls:
57.0ms
(pow x (/ 1.0 n))
141.0ms
(pow (+ x 1.0) (/ 1.0 n))
264.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify65.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
06542164
121641642
250021637

prune326.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 18.7b

localize17.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt n)
0.7b
(pow x (/ 1.0 n))
0.8b
(pow (+ x 1.0) (/ (* (cbrt 1.0) (cbrt 1.0)) (* (cbrt n) (cbrt n))))
1.8b
(- (pow (pow (+ x 1.0) (/ (* (cbrt 1.0) (cbrt 1.0)) (* (cbrt n) (cbrt n)))) (/ (cbrt 1.0) (cbrt n))) (pow x (/ 1.0 n)))

rewrite126.0ms

Algorithm
rewrite-expression-head
Rules
156×unpow-prod-down
84×prod-diff
83×*-un-lft-identity
82×add-sqr-sqrt
63×add-cube-cbrt
41×sqr-pow
18×pow-unpow
15×difference-of-squares
12×fma-neg
10×times-frac
distribute-lft-out
pow1 add-exp-log add-log-exp
expm1-log1p-u add-cbrt-cube log1p-expm1-u
cbrt-prod
pow-to-exp pow-pow pow-exp div-inv
sub-neg flip3-- pow1/3 diff-log flip-- distribute-lft-out--
Counts
4 → 190
Calls
4 calls:
0.0ms
(cbrt n)
2.0ms
(pow x (/ 1.0 n))
5.0ms
(pow (+ x 1.0) (/ (* (cbrt 1.0) (cbrt 1.0)) (* (cbrt n) (cbrt n))))
108.0ms
(- (pow (pow (+ x 1.0) (/ (* (cbrt 1.0) (cbrt 1.0)) (* (cbrt n) (cbrt n)))) (/ (cbrt 1.0) (cbrt n))) (pow x (/ 1.0 n)))

series1.4s

Counts
4 → 12
Calls
4 calls:
181.0ms
(cbrt n)
55.0ms
(pow x (/ 1.0 n))
424.0ms
(pow (+ x 1.0) (/ (* (cbrt 1.0) (cbrt 1.0)) (* (cbrt n) (cbrt n))))
711.0ms
(- (pow (pow (+ x 1.0) (/ (* (cbrt 1.0) (cbrt 1.0)) (* (cbrt n) (cbrt n)))) (/ (cbrt 1.0) (cbrt n))) (pow x (/ 1.0 n)))

simplify119.0ms

Algorithm
egg-herbie
Counts
202 → 202
Iterations

Useful iterations: 2 (82.0ms)

IterNodesCost
010255369
142334230
250014226

prune585.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 18.7b

localize20.0ms

Local error

Found 4 expressions with local error:

0.6b
(/ 1 (* (pow x 2) n))
2.8b
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
7.7b
(* x (pow n 2))
9.7b
(* (pow x 2) n)

rewrite21.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:
6.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)))))))
6.0ms
(* x (pow n 2))
6.0ms
(* (pow x 2) n)

series158.0ms

Counts
4 → 12
Calls
4 calls:
18.0ms
(/ 1 (* (pow x 2) n))
89.0ms
(fma 1.0 (/ 1 (* x n)) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
33.0ms
(* x (pow n 2))
18.0ms
(* (pow x 2) n)

simplify53.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0377604
11714520
25001513

prune342.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 18.4b

localize20.0ms

Local error

Found 4 expressions with local error:

0.6b
(/ 1 (* (pow x 2) n))
2.8b
(+ (/ (/ 1.0 n) x) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
7.7b
(* x (pow n 2))
9.7b
(* (pow x 2) n)

rewrite70.0ms

Algorithm
rewrite-expression-head
Rules
69×times-frac
59×add-sqr-sqrt
51×*-un-lft-identity
47×add-cube-cbrt
43×fma-def
36×add-exp-log
15×prod-exp
13×add-cbrt-cube
11×associate-*r* associate-*l*
unpow-prod-down div-exp add-log-exp unswap-sqr
pow1 pow-to-exp pow-exp div-inv
expm1-log1p-u rec-exp 1-exp log1p-expm1-u unpow2 sqr-pow
cbrt-unprod associate-/l*
cbrt-undiv sum-log *-commutative distribute-lft-out
+-commutative neg-sub0 associate-+r- associate-+r+ distribute-neg-in pow-flip distribute-rgt-neg-in frac-2neg flip3-+ unsub-neg neg-log clear-num associate-/r* flip-+ fma-udef inv-pow
Counts
4 → 156
Calls
4 calls:
6.0ms
(/ 1 (* (pow x 2) n))
45.0ms
(+ (/ (/ 1.0 n) x) (- (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)

series139.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ 1 (* (pow x 2) n))
66.0ms
(+ (/ (/ 1.0 n) x) (- (fma 0.5 (/ 1 (* (pow x 2) n)) (* 1.0 (/ (log (/ 1 x)) (* x (pow n 2)))))))
33.0ms
(* x (pow n 2))
18.0ms
(* (pow x 2) n)

simplify63.0ms

Algorithm
egg-herbie
Counts
168 → 168
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
0468757
12235667
25001660

prune540.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 18.4b

regimes141.0ms

Accuracy

84.2% (1.4b remaining)

Error of 22.7b against oracle of 21.3b and baseline of 30.3b

bsearch262.0ms

Steps
ItersRangePoint
9
0.24914757354793585
16478977.782200867
7221255.7902708035
11
-897362988193.2484
-1.3005244035742512e-14
-27760508.405810945

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05347
15547
25547

end0.0ms

sample5.4s

Algorithm
intervals
Results
1.8s3253×body1280valid
717.0ms1632×body640valid
571.0ms1111×body10240exit
455.0ms4572×body80valid
370.0ms5135×body80nan
365.0ms637×body1280nan
259.0ms876×body320valid
251.0ms606×body640nan
102.0ms380×body320nan
92.0ms451×body160valid
32.0ms183×body160nan