Details

Time bar (total: 5.6s)

sample138.0ms

Algorithm
intervals
Results
77.0ms64×body2560valid
37.0ms91×body1280valid
11.0ms50×body640valid
4.0ms26×body320valid
2.0ms15×body160valid
1.0ms10×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: 32.1b

Counts
2 → 1

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite11.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:
8.0ms
(/ (- 1.0 (cos x)) (sin x))
2.0ms
(- 1.0 (cos x))

series53.0ms

Counts
2 → 6
Calls
2 calls:
34.0ms
(/ (- 1.0 (cos x)) (sin x))
19.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

prune55.0ms

Filtered
16 candidates to 11 candidates (68.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New8816
Fresh000
Picked101
Done000
Total9817

Merged error: 0.3b

Counts
17 → 8

localize10.0ms

Local error

Found 2 expressions with local error:

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

rewrite1.0ms

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

series176.0ms

Counts
2 → 6
Calls
2 calls:
52.0ms
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
123.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

simplify186.0ms

Algorithm
egg-herbie
Counts
8 → 8
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03828
17728
216928
338428
4144828
5479428
6500128

prune24.0ms

Filtered
8 candidates to 3 candidates (37.5%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New808
Fresh077
Picked011
Done000
Total8816

Merged error: 0.3b

Counts
16 → 8

localize8.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1 (sin x))
0.1b
(* (- 1.0 (cos x)) (/ 1 (sin x)))
1.5b
(- 1.0 (cos x))

rewrite9.0ms

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

series69.0ms

Counts
3 → 9
Calls
3 calls:
12.0ms
(/ 1 (sin x))
38.0ms
(* (- 1.0 (cos x)) (/ 1 (sin x)))
18.0ms
(- 1.0 (cos x))

simplify83.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 3 (79.0ms)

IterNodesCost
0159150
1603146
23062146
35002145

prune65.0ms

Filtered
32 candidates to 18 candidates (56.3%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New30232
Fresh156
Picked011
Done011
Total31940

Merged error: 0.3b

Counts
40 → 9

localize8.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (sin x) (- 1.0 (cos x)))
0.1b
(/ 1 (/ (sin x) (- 1.0 (cos x))))
1.5b
(- 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
(/ (sin x) (- 1.0 (cos x)))
4.0ms
(/ 1 (/ (sin x) (- 1.0 (cos x))))
2.0ms
(- 1.0 (cos x))

series90.0ms

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

simplify62.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0145122
1470119
21902117
35001117

prune51.0ms

Filtered
29 candidates to 19 candidates (65.5%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New26329
Fresh246
Picked011
Done112
Total29938

Merged error: 0.3b

Counts
38 → 9

regimes92.0ms

Accuracy

99.2% (0.2b remaining)

Error of 0.5b against oracle of 0.3b and baseline of 31.3b

bsearch60.0ms

Steps
ItersRangePoint
6
0.018000635171863108
0.09117784756913819
0.02109815153064932
10
-1421.6155834850151
-1.485944467815708e-07
-0.020610258751472033

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03117
13117

end0.0ms

sample4.1s

Algorithm
intervals
Results
2.1s1640×body2560valid
1.2s2761×body1280valid
415.0ms1824×body640valid
141.0ms913×body320valid
52.0ms483×body160valid
24.0ms376×body80valid
10.0msbody5120valid