Details

Time bar (total: 4.4s)

sample77.0ms

Algorithm
intervals
Results
29.0ms91×body1280valid
16.0ms74×body640valid
12.0ms253×body80valid
3.0ms20×body320valid
1.0ms13×body160valid

simplify16.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1507
2777
3967
41127
51277
61417
71417

prune6.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 0.5b

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

0.4b
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
0.7b
(/ (cos th) (sqrt 2.0))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
frac-times
frac-2neg flip3-+ clear-num flip-+
associate-*l/
+-commutative distribute-rgt-in distribute-lft-in associate-*r/ div-inv
associate-*l* *-commutative
Counts
2 → 20
Calls
2 calls:
7.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
3.0ms
(/ (cos th) (sqrt 2.0))

series274.0ms

Counts
2 → 6
Calls
2 calls:
211.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
63.0ms
(/ (cos th) (sqrt 2.0))

simplify32.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0248235
11137221
25001214

prune96.0ms

Filtered
26 candidates to 21 candidates (80.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New18826
Fresh000
Picked101
Done000
Total19827

Merged error: 0.2b

Counts
27 → 8

localize11.0ms

Local error

Found 2 expressions with local error:

0.2b
(/ (sqrt 2.0) (cos th))
0.4b
(/ (+ (* a1 a1) (* a2 a2)) (/ (sqrt 2.0) (cos th)))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
frac-2neg clear-num associate-/r/ div-inv
associate-/l/
flip3-+ associate-/r* flip-+
Counts
2 → 12
Calls
2 calls:
3.0ms
(/ (sqrt 2.0) (cos th))
7.0ms
(/ (+ (* a1 a1) (* a2 a2)) (/ (sqrt 2.0) (cos th)))

series208.0ms

Counts
2 → 6
Calls
2 calls:
45.0ms
(/ (sqrt 2.0) (cos th))
163.0ms
(/ (+ (* a1 a1) (* a2 a2)) (/ (sqrt 2.0) (cos th)))

simplify47.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (45.0ms)

IterNodesCost
0133113
1499110
21481107
3500299

prune68.0ms

Filtered
18 candidates to 14 candidates (77.8%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New15318
Fresh257
Picked011
Done000
Total17926

Merged error: 0.1b

Counts
26 → 9

localize12.0ms

Local error

Found 2 expressions with local error:

0.2b
(* (- (cos th)) (+ (* a1 a1) (* a2 a2)))
0.4b
(/ (* (- (cos th)) (+ (* a1 a1) (* a2 a2))) (- (sqrt 2.0)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
neg-mul-1
associate-*r/
times-frac associate-*l* *-commutative associate-/l*
+-commutative distribute-lft-neg-out distribute-rgt-in distribute-lft-in flip3-+ flip-+ associate-/l/
frac-2neg distribute-frac-neg clear-num associate-/r* div-inv
Counts
2 → 22
Calls
2 calls:
5.0ms
(* (- (cos th)) (+ (* a1 a1) (* a2 a2)))
8.0ms
(/ (* (- (cos th)) (+ (* a1 a1) (* a2 a2))) (- (sqrt 2.0)))

series337.0ms

Counts
2 → 6
Calls
2 calls:
124.0ms
(* (- (cos th)) (+ (* a1 a1) (* a2 a2)))
213.0ms
(/ (* (- (cos th)) (+ (* a1 a1) (* a2 a2))) (- (sqrt 2.0)))

simplify56.0ms

Algorithm
egg-herbie
Counts
28 → 28
Iterations

Useful iterations: 3 (52.0ms)

IterNodesCost
0198200
1691198
22149186
35001185

prune98.0ms

Filtered
28 candidates to 22 candidates (78.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New26228
Fresh257
Picked101
Done011
Total29837

Merged error: 0.1b

Counts
37 → 8

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1 (cos th))
0.2b
(/ (/ (+ (* a1 a1) (* a2 a2)) (sqrt 2.0)) (/ 1 (cos th)))
0.4b
(/ (+ (* a1 a1) (* a2 a2)) (sqrt 2.0))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
associate-/l/
div-inv
frac-2neg clear-num
associate-/r/
flip3-+ flip-+
times-frac associate-/r* associate-/l* inv-pow
Counts
3 → 23
Calls
3 calls:
2.0ms
(/ 1 (cos th))
7.0ms
(/ (/ (+ (* a1 a1) (* a2 a2)) (sqrt 2.0)) (/ 1 (cos th)))
6.0ms
(/ (+ (* a1 a1) (* a2 a2)) (sqrt 2.0))

series275.0ms

Counts
3 → 9
Calls
3 calls:
11.0ms
(/ 1 (cos th))
171.0ms
(/ (/ (+ (* a1 a1) (* a2 a2)) (sqrt 2.0)) (/ 1 (cos th)))
92.0ms
(/ (+ (* a1 a1) (* a2 a2)) (sqrt 2.0))

simplify155.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0165187
1753172
24037172
35001172

prune73.0ms

Filtered
32 candidates to 21 candidates (65.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New30232
Fresh156
Picked101
Done011
Total32840

Merged error: 0.1b

Counts
40 → 8

regimes226.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0127
1127

end0.0ms

sample2.2s

Algorithm
intervals
Results
809.0ms2560×body1280valid
453.0ms2073×body640valid
399.0ms8000×body80valid
162.0ms1043×body320valid
57.0ms509×body160valid