Details

Time bar (total: 2.8s)

sample51.0ms

Algorithm
intervals
Results
23.0ms52×body2560valid
10.0ms47×body1280valid
6.0ms45×body640valid
2.0ms24×body320valid
2.0ms70×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.7b

Counts
2 → 1

localize6.0ms

Local error

Found 2 expressions with local error:

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

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
flip3-- associate-/r* flip-- associate-/l/
sub-neg frac-2neg div-sub clear-num *-commutative div-inv
Counts
2 → 12
Calls
2 calls:
2.0ms
(- 1.0 (cos x))
4.0ms
(/ (- 1.0 (cos x)) (* x x))

series67.0ms

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

simplify160.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (35.0ms)

IterNodesCost
012481
139681
2105081
3420080
4500180

prune48.0ms

Filtered
18 candidates to 13 candidates (72.2%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New12618
Fresh000
Picked101
Done000
Total13619

Merged error: 0.0b

Counts
19 → 6

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.6b
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
associate--l+ *-commutative sqr-pow
+-commutative sub-neg flip3-- flip-- unpow2
Counts
3 → 11
Calls
3 calls:
3.0ms
(* 1/720 (pow x 4))
3.0ms
(* 1/24 (pow x 2))
5.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

series109.0ms

Counts
3 → 9
Calls
3 calls:
36.0ms
(* 1/720 (pow x 4))
25.0ms
(* 1/24 (pow x 2))
48.0ms
(- (+ (* 1/720 (pow x 4)) 1/2) (* 1/24 (pow x 2)))

simplify77.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 2 (12.0ms)

IterNodesCost
09492
135390
2171786
3500186

prune41.0ms

Filtered
20 candidates to 10 candidates (50.0%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New19120
Fresh055
Picked101
Done000
Total20626

Merged error: 0.0b

Counts
26 → 6

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
*-commutative sqr-pow
sub-neg flip3-- flip-- unpow2
Counts
3 → 9
Calls
3 calls:
3.0ms
(* 1/720 (pow x 4))
3.0ms
(* 1/24 (pow x 2))
5.0ms
(- (* 1/720 (pow x 4)) (* 1/24 (pow x 2)))

series179.0ms

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

simplify68.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
08772
129267
2140464
3500162

prune35.0ms

Filtered
18 candidates to 8 candidates (44.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New18018
Fresh055
Picked011
Done000
Total18624

Merged error: 0.0b

Counts
24 → 6

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)
2.2b
(- 1.0 (cos x))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
associate-/l/
flip3-- frac-2neg div-sub clear-num flip-- div-inv
sub-neg associate-/l*
Counts
3 → 20
Calls
3 calls:
4.0ms
(/ (/ (- 1.0 (cos x)) x) x)
3.0ms
(/ (- 1.0 (cos x)) x)
2.0ms
(- 1.0 (cos x))

series108.0ms

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

simplify64.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (56.0ms)

IterNodesCost
0163118
1458117
21640115
35001114

prune43.0ms

Filtered
29 candidates to 20 candidates (69.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New26329
Fresh134
Picked101
Done011
Total28735

Merged error: 0.0b

Counts
35 → 7

regimes37.0ms

Accuracy

99.6% (0.1b remaining)

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

bsearch58.0ms

Steps
ItersRangePoint
9
2.5653698016906928e-06
357.20278190505735
0.03297101109879089
7
-0.6319501064166059
-0.005814372128176944
-0.03299151901246776

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03516
13516

end0.0ms

sample1.6s

Algorithm
intervals
Results
714.0ms1565×body2560valid
306.0ms1299×body1280valid
216.0ms1465×body640valid
99.0ms931×body320valid
69.0ms2271×body80valid
34.0ms469×body160valid