Details

Time bar (total: 2.9s)

sample52.0ms

Algorithm
intervals
Results
23.0ms52×body2560valid
10.0ms47×body1280valid
7.0ms45×body640valid
3.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))

rewrite10.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))
8.0ms
(/ (- 1.0 (cos x)) (* x x))

series58.0ms

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

simplify163.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (36.0ms)

IterNodesCost
012981
142177
2117377
3469276
4500176

prune49.0ms

Filtered
18 candidates to 13 candidates (72.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New12618
Fresh000
Picked011
Done000
Total12719

Merged error: 0.0b

Counts
19 → 7

localize10.0ms

Local error

Found 2 expressions with local error:

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

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
*-commutative fma-udef unpow2 sqr-pow
Counts
2 → 4
Calls
2 calls:
3.0ms
(* 1/24 (pow x 2))
1.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

series68.0ms

Counts
2 → 6
Calls
2 calls:
24.0ms
(* 1/24 (pow x 2))
45.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

simplify73.0ms

Algorithm
egg-herbie
Counts
10 → 10
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03728
110725
234825
3169025
4500125

prune25.0ms

Filtered
10 candidates to 5 candidates (50.0%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New10010
Fresh055
Picked011
Done011
Total10717

Merged error: 0.0b

Counts
17 → 7

localize7.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))

series103.0ms

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

simplify61.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0169118
1491111
21801109
35001109

prune55.0ms

Filtered
29 candidates to 20 candidates (69.0%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New24529
Fresh224
Picked101
Done022
Total27936

Merged error: 0.0b

Counts
36 → 9

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (- (pow 1.0 3) (pow (cos x) 3)) (fma (cos x) (+ 1.0 (cos x)) (* 1.0 1.0)))
0.4b
(+ 1.0 (cos x))
0.4b
(pow (cos x) 3)
2.0b
(- (pow 1.0 3) (pow (cos x) 3))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
10×sqr-pow
unpow3
prod-diff
difference-cubes flip3-- fma-neg flip-- associate-/l/ associate-/l* difference-of-squares
+-commutative pow-to-exp sub-neg frac-2neg flip3-+ div-sub clear-num flip-+ div-inv
Counts
4 → 26
Calls
4 calls:
6.0ms
(/ (- (pow 1.0 3) (pow (cos x) 3)) (fma (cos x) (+ 1.0 (cos x)) (* 1.0 1.0)))
2.0ms
(+ 1.0 (cos x))
2.0ms
(pow (cos x) 3)
5.0ms
(- (pow 1.0 3) (pow (cos x) 3))

series201.0ms

Counts
4 → 12
Calls
4 calls:
116.0ms
(/ (- (pow 1.0 3) (pow (cos x) 3)) (fma (cos x) (+ 1.0 (cos x)) (* 1.0 1.0)))
9.0ms
(+ 1.0 (cos x))
27.0ms
(pow (cos x) 3)
49.0ms
(- (pow 1.0 3) (pow (cos x) 3))

simplify132.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 2 (25.0ms)

IterNodesCost
0236295
1869265
24051260
35001260

prune95.0ms

Filtered
38 candidates to 28 candidates (73.7%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New38038
Fresh066
Picked011
Done022
Total38947

Merged error: 0.0b

Counts
47 → 9

regimes66.0ms

Accuracy

99.5% (0.1b remaining)

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

bsearch54.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
03215
13215

end0.0ms

sample1.6s

Algorithm
intervals
Results
735.0ms1565×body2560valid
296.0ms1299×body1280valid
225.0ms1465×body640valid
96.0ms931×body320valid
76.0ms2271×body80valid
34.0ms469×body160valid