Details

Time bar (total: 3.2s)

sample54.0ms

Algorithm
intervals
Results
23.0ms49×body2560valid
10.0ms49×body1280valid
7.0ms52×body640valid
2.0ms24×body320valid
2.0ms62×body80valid
1.0ms20×body160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0134
1214
2264
3284
4284

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.1b

localize6.0ms

Local error

Found 2 expressions with local error:

1.8b
(- 1.0 (cos x))
14.2b
(/ (- 1.0 (cos x)) (* x x))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt *-un-lft-identity
add-exp-log add-cbrt-cube
times-frac associate-/l*
add-cube-cbrt add-log-exp
distribute-lft-out-- difference-of-squares
pow1 cbrt-undiv flip3-- div-exp flip-- associate-/l/
sub-neg frac-2neg diff-log div-sub prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
2 → 42
Calls
2 calls:
6.0ms
(- 1.0 (cos x))
23.0ms
(/ (- 1.0 (cos x)) (* x x))

series67.0ms

Counts
2 → 6
Calls
2 calls:
23.0ms
(- 1.0 (cos x))
44.0ms
(/ (- 1.0 (cos x)) (* x x))

simplify60.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0221271
1735239
22396239
35002239

prune106.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 1/720 (pow x 4))
0.4b
(* 1/24 (pow x 2))
10.2b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

rewrite76.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
sqr-pow
pow1
pow-to-exp diff-log pow-exp *-commutative cbrt-unprod unpow2
sub-neg flip3-- associate--l+ sum-log flip--
Counts
3 → 66
Calls
3 calls:
11.0ms
(* 1/720 (pow x 4))
12.0ms
(* 1/24 (pow x 2))
52.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

series111.0ms

Counts
3 → 9
Calls
3 calls:
37.0ms
(* 1/720 (pow x 4))
29.0ms
(* 1/24 (pow x 2))
44.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

simplify38.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0268347
11132316
25001310

prune150.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 1/720 (pow x 4))
0.4b
(* 1/24 (pow x 2))
10.2b
(+ (* 1/720 (pow x 4)) (- 1/2 (* 1/24 (pow x 2))))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
sqr-pow
pow1
pow-to-exp associate-+r+ pow-exp sum-log *-commutative cbrt-unprod unpow2
+-commutative associate-+r- sub-neg flip3-+ diff-log flip-+
Counts
3 → 67
Calls
3 calls:
11.0ms
(* 1/720 (pow x 4))
14.0ms
(* 1/24 (pow x 2))
15.0ms
(+ (* 1/720 (pow x 4)) (- 1/2 (* 1/24 (pow x 2))))

series111.0ms

Counts
3 → 9
Calls
3 calls:
37.0ms
(* 1/720 (pow x 4))
30.0ms
(* 1/24 (pow x 2))
44.0ms
(+ (* 1/720 (pow x 4)) (- 1/2 (* 1/24 (pow x 2))))

simplify37.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0274345
11103314
25001314

prune155.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.1b

localize6.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (/ (- 1.0 (cos x)) x) x)
0.1b
(/ (- 1.0 (cos x)) x)
1.8b
(- 1.0 (cos x))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
132×times-frac
103×add-sqr-sqrt *-un-lft-identity
69×add-cube-cbrt
24×associate-/l*
17×distribute-lft-out-- difference-of-squares
10×add-exp-log add-cbrt-cube
associate-/r* div-inv
add-log-exp
cbrt-undiv div-exp
pow1 div-sub associate-/l/
flip3-- frac-2neg clear-num flip--
sub-neg diff-log
Counts
3 → 147
Calls
3 calls:
23.0ms
(/ (/ (- 1.0 (cos x)) x) x)
15.0ms
(/ (- 1.0 (cos x)) x)
6.0ms
(- 1.0 (cos x))

series112.0ms

Counts
3 → 9
Calls
3 calls:
44.0ms
(/ (/ (- 1.0 (cos x)) x) x)
49.0ms
(/ (- 1.0 (cos x)) x)
20.0ms
(- 1.0 (cos x))

simplify49.0ms

Algorithm
egg-herbie
Counts
156 → 156
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
05311270
118991197
250011186

prune256.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.1b

regimes43.0ms

Accuracy

99.6% (0.1b remaining)

Error of 0.3b against oracle of 0.1b and baseline of 31.7b

bsearch55.0ms

Steps
ItersRangePoint
8
1.317141247235427e-05
0.43775957865898985
0.03384107969428519
9
-3096.4512561506854
-0.0006592480666379122
-0.033917851243536225

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03816
14216
24216

end0.0ms

sample1.6s

Algorithm
intervals
Results
701.0ms1569×body2560valid
273.0ms1248×body1280valid
216.0ms1497×body640valid
101.0ms967×body320valid
73.0ms2257×body80valid
37.0ms462×body160valid