Details

Time bar (total: 4.8s)

sample314.0ms

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

simplify13.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (3.0ms)

IterNodesCost
0125
1165
2205
3215
4215

prune4.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.2b
(* r (/ (sin b) (cos (+ a b))))
0.2b
(/ (sin b) (cos (+ a b)))
4.7b
(cos (+ a b))

rewrite14.0ms

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

series168.0ms

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

simplify43.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (40.0ms)

IterNodesCost
09569
128969
2126369
3500167

prune42.0ms

Filtered
20 candidates to 11 candidates (55.0%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New16420
Fresh000
Picked101
Done000
Total17421

Merged error: 0.3b

Counts
21 → 4

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite28.0ms

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

series440.0ms

Counts
4 → 12
Calls
4 calls:
207.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
79.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
108.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))
46.0ms
(* (sin a) (sin b))

simplify69.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 3 (64.0ms)

IterNodesCost
0211373
1676364
22733338
35001306

prune133.0ms

Filtered
43 candidates to 32 candidates (74.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New37643
Fresh303
Picked101
Done000
Total41647

Merged error: 0.1b

Counts
47 → 6

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite10.0ms

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

series456.0ms

Counts
4 → 12
Calls
4 calls:
85.0ms
(fma (cos a) (cos b) (- (* (sin a) (sin b))))
211.0ms
(* r (/ (sin b) (fma (cos a) (cos b) (- (* (sin a) (sin b))))))
112.0ms
(/ (sin b) (fma (cos a) (cos b) (- (* (sin a) (sin b)))))
48.0ms
(* (sin a) (sin b))

simplify43.0ms

Algorithm
egg-herbie
Counts
24 → 24
Iterations

Useful iterations: 3 (40.0ms)

IterNodesCost
0112117
1318117
21352117
35002114

prune84.0ms

Filtered
24 candidates to 16 candidates (66.7%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New22224
Fresh055
Picked101
Done000
Total23730

Merged error: 0.1b

Counts
30 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite10.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:
3.0ms
(* r (sin b))
1.0ms
(fma (cos a) (cos b) (- (* (sin a) (sin b))))
3.0ms
(* (sin a) (sin b))
4.0ms
(/ (* r (sin b)) (fma (cos a) (cos b) (- (* (sin a) (sin b)))))

series377.0ms

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

simplify78.0ms

Algorithm
egg-herbie
Counts
21 → 21
Iterations

Useful iterations: 4 (75.0ms)

IterNodesCost
0101112
1222112
2704112
32379110
45002107

prune82.0ms

Filtered
21 candidates to 14 candidates (66.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New18321
Fresh336
Picked101
Done000
Total22628

Merged error: 0.1b

Counts
28 → 6

regimes95.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02011
12011

end0.0ms

sample2.2s

Algorithm
intervals
Results
1.2s2932×body1280valid
472.0ms1830×body640valid
138.0ms758×body320valid
127.0ms2147×body80valid
42.0ms334×body160valid