Details

Time bar (total: 3.5s)

sample51.0ms

Algorithm
intervals
Results
21.0ms48×body2560valid
10.0ms45×body1280valid
7.0ms54×body640valid
2.0ms26×body320valid
2.0ms65×body80valid
1.0ms18×body160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0134
1214
2264
3284
4284

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 32.2b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

2.2b
(- 1.0 (cos x))
14.6b
(/ (- 1.0 (cos x)) (* x x))

rewrite12.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:
4.0ms
(- 1.0 (cos x))
7.0ms
(/ (- 1.0 (cos x)) (* x x))

series66.0ms

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

simplify65.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0221271
1735239
22396239
35002239

prune112.0ms

Filtered
48 candidates to 34 candidates (70.8%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New371148
Fresh000
Picked101
Done000
Total381149

Merged error: 0.0b

Counts
49 → 11

localize10.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 1/720 (pow x 4))
0.2b
(* 1/24 (pow x 2))
12.4b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

rewrite19.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:
5.0ms
(* 1/720 (pow x 4))
5.0ms
(* 1/24 (pow x 2))
7.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

series112.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(* 1/720 (pow x 4))
24.0ms
(* 1/24 (pow x 2))
47.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

simplify41.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0268347
11132316
25001310

prune140.0ms

Filtered
75 candidates to 46 candidates (61.3%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New74175
Fresh1910
Picked011
Done000
Total751186

Merged error: 0.0b

Counts
86 → 11

localize12.0ms

Local error

Found 4 expressions with local error:

7.7b
(sqrt (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))))
7.7b
(sqrt (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))))
12.4b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))
12.4b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
14×add-log-exp
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity sqrt-prod
add-exp-log flip3-- sqrt-div diff-log add-cbrt-cube flip--
sub-neg rem-sqrt-square sqrt-pow1 pow1/2 associate--l+ sum-log
Counts
4 → 58
Calls
4 calls:
6.0ms
(sqrt (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))))
6.0ms
(sqrt (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))))
7.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))
7.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

series300.0ms

Counts
4 → 12
Calls
4 calls:
109.0ms
(sqrt (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))))
104.0ms
(sqrt (- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2))))
41.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))
45.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

simplify172.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0202748
1828692
24536678
35002678

prune190.0ms

Filtered
70 candidates to 50 candidates (71.4%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New70070
Fresh099
Picked011
Done011
Total701181

Merged error: 0.0b

Counts
81 → 11

localize6.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (/ (- 1.0 (cos x)) x) x)
0.1b
(/ (- 1.0 (cos x)) x)
2.2b
(- 1.0 (cos x))

rewrite26.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:
9.0ms
(/ (/ (- 1.0 (cos x)) x) x)
6.0ms
(/ (- 1.0 (cos x)) x)
4.0ms
(- 1.0 (cos x))

series108.0ms

Counts
3 → 9
Calls
3 calls:
42.0ms
(/ (/ (- 1.0 (cos x)) x) x)
47.0ms
(/ (- 1.0 (cos x)) x)
18.0ms
(- 1.0 (cos x))

simplify56.0ms

Algorithm
egg-herbie
Counts
156 → 156
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
05311270
118991197
250011186

prune220.0ms

Filtered
156 candidates to 104 candidates (66.7%)
Pruning

12 alts after pruning (10 fresh and 2 done)

PrunedKeptTotal
New1524156
Fresh268
Picked101
Done022
Total15512167

Merged error: 0.0b

Counts
167 → 12

regimes100.0ms

Accuracy

99.4% (0.2b remaining)

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

bsearch61.0ms

Steps
ItersRangePoint
7
0.00999808388340962
0.475758948552502
0.030798941289724838
9
-164485.30314980465
-0.009598081335721272
-0.03106715975092916

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03011
13011

end0.0ms

sample1.6s

Algorithm
intervals
Results
738.0ms1621×body2560valid
268.0ms1232×body1280valid
224.0ms1497×body640valid
101.0ms946×body320valid
68.0ms2270×body80valid
35.0ms434×body160valid