Details

Time bar (total: 5.0s)

sample317.0ms

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

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.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

localize13.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:
4.0ms
(* r (/ (sin b) (cos (+ a b))))
3.0ms
(/ (sin b) (cos (+ a b)))
6.0ms
(cos (+ a b))

series175.0ms

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

simplify42.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (39.0ms)

IterNodesCost
09073
126673
2111970
3500169

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

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:
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))

series453.0ms

Counts
4 → 12
Calls
4 calls:
213.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
81.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
112.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))
46.0ms
(* (sin a) (sin b))

simplify65.0ms

Algorithm
egg-herbie
Counts
37 → 37
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
0188316
1604314
22406285
35001276

prune126.0ms

Filtered
37 candidates to 28 candidates (75.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New31637
Fresh303
Picked101
Done000
Total35641

Merged error: 0.1b

Counts
41 → 6

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))
9.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series388.0ms

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

simplify53.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
0181253
1526251
21627235
35001225

prune103.0ms

Filtered
30 candidates to 20 candidates (66.7%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New27330
Fresh145
Picked101
Done000
Total29736

Merged error: 0.1b

Counts
36 → 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)))))

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

series445.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
82.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
43.0ms
(* (sin a) (sin b))
224.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify92.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0203327
1700323
23436291
35001291

prune110.0ms

Filtered
41 candidates to 29 candidates (70.7%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New39241
Fresh066
Picked011
Done000
Total39948

Merged error: 0.1b

Counts
48 → 9

regimes136.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.3s

Algorithm
intervals
Results
1.3s2932×body1280valid
472.0ms1830×body640valid
139.0ms758×body320valid
124.0ms2147×body80valid
44.0ms334×body160valid