Details

Time bar (total: 5.4s)

sample144.0ms

Algorithm
intervals
Results
81.0ms64×body2560valid
38.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))

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

series52.0ms

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

simplify145.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 3 (32.0ms)

IterNodesCost
011876
130376
283476
3353575
4500175

prune48.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

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* 1/24 (pow x 3)) (+ (* 1/240 (pow x 5)) (* 1/2 x)))
0.1b
(* 1/24 (pow x 3))
0.3b
(* 1/240 (pow x 5))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
+-commutative associate-+r+ *-commutative sqr-pow
flip3-+ unpow3 flip-+
Counts
3 → 10
Calls
3 calls:
10.0ms
(+ (* 1/24 (pow x 3)) (+ (* 1/240 (pow x 5)) (* 1/2 x)))
3.0ms
(* 1/24 (pow x 3))
3.0ms
(* 1/240 (pow x 5))

series140.0ms

Counts
3 → 9
Calls
3 calls:
55.0ms
(+ (* 1/24 (pow x 3)) (+ (* 1/240 (pow x 5)) (* 1/2 x)))
38.0ms
(* 1/24 (pow x 3))
47.0ms
(* 1/240 (pow x 5))

simplify88.0ms

Algorithm
egg-herbie
Counts
19 → 19
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
010196
135895
2189295
3500195

prune45.0ms

Filtered
19 candidates to 10 candidates (52.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New19019
Fresh077
Picked011
Done000
Total19827

Merged error: 0.3b

Counts
27 → 8

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

series67.0ms

Counts
3 → 9
Calls
3 calls:
13.0ms
(/ 1 (sin x))
34.0ms
(* (- 1.0 (cos x)) (/ 1 (sin x)))
20.0ms
(- 1.0 (cos x))

simplify80.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0152153
1582153
22899153
35002153

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

series89.0ms

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

simplify61.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0137125
1435123
21758121
35001121

prune47.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

regimes87.0ms

Accuracy

99.2% (0.2b remaining)

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

bsearch61.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
03719
13719

end0.0ms

sample4.1s

Algorithm
intervals
Results
2.1s1640×body2560valid
1.2s2761×body1280valid
421.0ms1824×body640valid
147.0ms913×body320valid
53.0ms483×body160valid
24.0ms376×body80valid
10.0msbody5120valid