Details

Time bar (total: 4.7s)

sample81.0ms

Algorithm
intervals
Results
45.0ms98×body1280valid
14.0ms55×body640valid
6.0ms26×body320valid
4.0ms64×body80valid
2.0ms13×body160valid

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: 15.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)))
5.0b
(cos (+ a b))

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

series157.0ms

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

simplify77.0ms

Algorithm
egg-herbie
Counts
17 → 17
Iterations

Useful iterations: 4 (74.0ms)

IterNodesCost
08464
118464
257964
3205263
4500161

prune45.0ms

Filtered
17 candidates to 10 candidates (58.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New11617
Fresh000
Picked101
Done000
Total12618

Merged error: 0.2b

Counts
18 → 6

localize18.0ms

Local error

Found 4 expressions with local error:

0.1b
(* r (sin b))
0.1b
(- (* (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))))

rewrite23.0ms

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

series377.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* r (sin b))
80.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
46.0ms
(* (sin a) (sin b))
216.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify52.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0202312
1590304
21892289
35002256

prune110.0ms

Filtered
36 candidates to 24 candidates (66.7%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New28836
Fresh505
Picked101
Done000
Total34842

Merged error: 0.1b

Counts
42 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite31.0ms

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

series498.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
43.0ms
(* (sin a) (sin b))
128.0ms
(/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) r)
247.0ms
(/ (sin b) (/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) r))

simplify74.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0247399
1735391
22636363
35001363

prune156.0ms

Filtered
45 candidates to 36 candidates (80.0%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New39645
Fresh437
Picked101
Done000
Total44953

Merged error: 0.1b

Counts
53 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
associate-/l*
frac-2neg clear-num fma-udef div-inv sin-mult
Counts
4 → 9
Calls
4 calls:
2.0ms
(* r (sin b))
1.0ms
(fma (cos b) (cos a) (- (* (sin a) (sin b))))
6.0ms
(* (sin a) (sin b))
3.0ms
(/ (* r (sin b)) (fma (cos b) (cos a) (- (* (sin a) (sin b)))))

series376.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(* r (sin b))
82.0ms
(fma (cos b) (cos a) (- (* (sin a) (sin b))))
42.0ms
(* (sin a) (sin b))
211.0ms
(/ (* r (sin b)) (fma (cos b) (cos a) (- (* (sin a) (sin b)))))

simplify74.0ms

Algorithm
egg-herbie
Counts
21 → 21
Iterations

Useful iterations: 4 (71.0ms)

IterNodesCost
095112
1211112
2629112
32073110
45001107

prune54.0ms

Filtered
21 candidates to 14 candidates (66.7%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New20121
Fresh088
Picked011
Done000
Total201030

Merged error: 0.1b

Counts
30 → 10

regimes146.0ms

Accuracy

0% (0.3b remaining)

Error of 0.4b against oracle of 0.0b and baseline of 0.4b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0179
1209
2209

end0.0ms

sample2.3s

Algorithm
intervals
Results
1.3s2919×body1280valid
479.0ms1866×body640valid
142.0ms765×body320valid
128.0ms2109×body80valid
45.0ms344×body160valid