Details

Time bar (total: 4.8s)

sample79.0ms

Algorithm
intervals
Results
40.0ms93×body1280valid
19.0ms63×body640valid
5.0ms27×body320valid
4.0ms70×body80valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0125
1165
2195
3205
4205

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

Counts
2 → 1

localize12.0ms

Local error

Found 3 expressions with local error:

0.1b
(* r (sin b))
0.3b
(/ (* r (sin b)) (cos (+ a b)))
4.7b
(cos (+ a b))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
cos-sum *-commutative associate-/l*
+-commutative frac-2neg clear-num div-inv
Counts
3 → 8
Calls
3 calls:
3.0ms
(* r (sin b))
4.0ms
(/ (* r (sin b)) (cos (+ a b)))
5.0ms
(cos (+ a b))

series156.0ms

Counts
3 → 9
Calls
3 calls:
38.0ms
(* r (sin b))
94.0ms
(/ (* r (sin b)) (cos (+ a b)))
23.0ms
(cos (+ a b))

simplify73.0ms

Algorithm
egg-herbie
Counts
17 → 17
Iterations

Useful iterations: 3 (18.0ms)

IterNodesCost
08166
116966
250165
3177064
4500264

prune41.0ms

Filtered
17 candidates to 10 candidates (58.8%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New12517
Fresh000
Picked101
Done000
Total13518

Merged error: 0.3b

Counts
18 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(* r (sin b))
0.2b
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
0.2b
(* (sin a) (sin b))
0.3b
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
sin-mult
associate-/r/ cos-mult
*-commutative
flip3-- frac-sub flip-- associate-/l* sub-div
sub-neg frac-2neg clear-num div-inv
Counts
4 → 18
Calls
4 calls:
2.0ms
(* r (sin b))
7.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
3.0ms
(* (sin a) (sin b))
8.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series379.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* r (sin b))
82.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
48.0ms
(* (sin a) (sin b))
213.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify50.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 3 (47.0ms)

IterNodesCost
0181253
1526251
21627235
35001225

prune100.0ms

Filtered
30 candidates to 22 candidates (73.3%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New23730
Fresh404
Picked101
Done000
Total28735

Merged error: 0.1b

Counts
35 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
0.2b
(* (sin a) (sin b))
0.3b
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
associate-/r/
sin-mult
cos-mult
associate-*r*
flip3-- associate-*r/ clear-num *-commutative frac-sub flip-- sub-div
frac-2neg associate-*l* un-div-inv div-inv
sub-neg inv-pow
Counts
4 → 29
Calls
4 calls:
7.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
7.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
3.0ms
(* (sin a) (sin b))
10.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series427.0ms

Counts
4 → 12
Calls
4 calls:
94.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
80.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
42.0ms
(* (sin a) (sin b))
210.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify88.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0203327
1700323
23436292
35001292

prune130.0ms

Filtered
41 candidates to 28 candidates (68.3%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New38341
Fresh066
Picked101
Done000
Total39948

Merged error: 0.1b

Counts
48 → 9

localize15.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
0.2b
(/ r (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(* (sin a) (sin b))
0.3b
(* (sin b) (/ r (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
associate-/r/
sin-mult
cos-mult
associate-*r*
flip3-- associate-*r/ clear-num frac-sub flip-- sub-div
frac-2neg *-commutative div-inv
sub-neg un-div-inv
Counts
4 → 25
Calls
4 calls:
7.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
7.0ms
(/ r (- (* (cos a) (cos b)) (* (sin a) (sin b))))
3.0ms
(* (sin a) (sin b))
9.0ms
(* (sin b) (/ r (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series525.0ms

Counts
4 → 12
Calls
4 calls:
80.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
177.0ms
(/ r (- (* (cos a) (cos b)) (* (sin a) (sin b))))
42.0ms
(* (sin a) (sin b))
226.0ms
(* (sin b) (/ r (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify67.0ms

Algorithm
egg-herbie
Counts
37 → 37
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0193310
1631308
22604279
35002274

prune100.0ms

Filtered
37 candidates to 28 candidates (75.7%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New34337
Fresh358
Picked011
Done000
Total37946

Merged error: 0.1b

Counts
46 → 9

regimes138.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01510
11510

end0.0ms

sample2.3s

Algorithm
intervals
Results
1.3s2932×body1280valid
478.0ms1830×body640valid
141.0ms758×body320valid
127.0ms2147×body80valid
49.0ms334×body160valid