Details

Time bar (total: 5.5s)

sample141.0ms

Algorithm
intervals
Results
71.0ms52×body2560valid
42.0ms89×body1280valid
14.0ms62×body640valid
4.0ms25×body320valid
2.0ms17×body160valid
1.0ms11×body80valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0114
1144
2164
3164

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: 31.4b

Counts
2 → 1

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
2.2b
(- 1.0 (cos x))

rewrite7.0ms

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

series57.0ms

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

simplify147.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 3 (34.0ms)

IterNodesCost
012474
133272
296472
3395671
4500171

prune46.0ms

Filtered
16 candidates to 11 candidates (68.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New9716
Fresh000
Picked011
Done000
Total9817

Merged error: 0.2b

Counts
17 → 8

localize13.0ms

Local error

Found 1 expressions with local error:

0.0b
(fma 1/240 (pow x 5) (* 1/2 x))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
Counts
1 → 1
Calls
1 calls:
1.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

series117.0ms

Counts
1 → 3
Calls
1 calls:
116.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

simplify111.0ms

Algorithm
egg-herbie
Counts
4 → 4
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01611
12811
25911
315211
469111
5239911
6500111

prune18.0ms

Filtered
4 candidates to 2 candidates (50.0%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New404
Fresh066
Picked011
Done011
Total4812

Merged error: 0.2b

Counts
12 → 8

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1 (/ (sin x) (- 1.0 (cos x))))
0.2b
(/ (sin x) (- 1.0 (cos x)))
2.2b
(- 1.0 (cos x))

rewrite10.0ms

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

series89.0ms

Counts
3 → 9
Calls
3 calls:
37.0ms
(/ 1 (/ (sin x) (- 1.0 (cos x))))
34.0ms
(/ (sin x) (- 1.0 (cos x)))
18.0ms
(- 1.0 (cos x))

simplify63.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0145122
1470119
21902117
35001117

prune63.0ms

Filtered
29 candidates to 18 candidates (62.1%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New26329
Fresh055
Picked101
Done022
Total271037

Merged error: 0.2b

Counts
37 → 10

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ 1 (- 1.0 (cos x)))
0.1b
(/ 1 (sin x))
0.2b
(/ (/ 1 (sin x)) (/ 1 (- 1.0 (cos x))))
2.2b
(- 1.0 (cos x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
associate-/r/ div-inv
frac-2neg clear-num
flip3-- flip--
times-frac associate-/r* associate-/l/
inv-pow
sub-neg associate-/l*
Counts
4 → 30
Calls
4 calls:
3.0ms
(/ 1 (- 1.0 (cos x)))
2.0ms
(/ 1 (sin x))
5.0ms
(/ (/ 1 (sin x)) (/ 1 (- 1.0 (cos x))))
2.0ms
(- 1.0 (cos x))

series96.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(/ 1 (- 1.0 (cos x)))
13.0ms
(/ 1 (sin x))
38.0ms
(/ (/ 1 (sin x)) (/ 1 (- 1.0 (cos x))))
18.0ms
(- 1.0 (cos x))

simplify134.0ms

Algorithm
egg-herbie
Counts
42 → 42
Iterations

Useful iterations: 2 (24.0ms)

IterNodesCost
0198182
1776168
24013167
35002167

prune63.0ms

Filtered
42 candidates to 24 candidates (57.1%)
Pruning

12 alts after pruning (9 fresh and 3 done)

PrunedKeptTotal
New38442
Fresh257
Picked011
Done022
Total401252

Merged error: 0.2b

Counts
52 → 12

regimes110.0ms

Accuracy

99.3% (0.2b remaining)

Error of 0.5b against oracle of 0.2b and baseline of 31.7b

bsearch59.0ms

Steps
ItersRangePoint
9
2.5653698016906928e-06
357.20278190505735
0.0230298891429469
7
-0.6319501064166059
-0.005814372128176944
-0.02054167097202016

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0269
1269

end0.0ms

sample4.1s

Algorithm
intervals
Results
2.0s1564×body2560valid
1.3s2838×body1280valid
423.0ms1870×body640valid
146.0ms931×body320valid
50.0ms464×body160valid
21.0ms332×body80valid
3.0msbody5120valid