Details

Time bar (total: 5.5s)

sample79.0ms

Algorithm
intervals
Results
42.0ms90×body1280valid
15.0ms52×body640valid
5.0ms80×body80valid
4.0ms22×body320valid
2.0ms12×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.3b

Counts
2 → 1

localize11.0ms

Local error

Found 3 expressions with local error:

0.2b
(* r (sin b))
0.2b
(/ (* r (sin b)) (cos (+ a b)))
3.4b
(cos (+ a b))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
10×add-exp-log add-cbrt-cube
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
expm1-log1p-u times-frac associate-*r* associate-*l* associate-/r* log1p-expm1-u add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod
cos-sum frac-2neg pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
3 → 53
Calls
3 calls:
4.0ms
(* r (sin b))
5.0ms
(/ (* r (sin b)) (cos (+ a b)))
6.0ms
(cos (+ a b))

series159.0ms

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

simplify33.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
0207327
1884279
25001279

prune145.0ms

Filtered
62 candidates to 46 candidates (74.2%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New55762
Fresh000
Picked101
Done000
Total56763

Merged error: 0.2b

Counts
63 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
13×add-exp-log add-cbrt-cube
10×add-cube-cbrt *-un-lft-identity
pow1
associate-*r* associate-*l* add-log-exp
sin-mult
expm1-log1p-u associate-/r/ cos-mult log1p-expm1-u
times-frac prod-exp associate-/r* cbrt-unprod
cbrt-undiv flip3-- div-exp pow-prod-down *-commutative frac-sub flip-- sub-div unswap-sqr
sub-neg frac-2neg fma-neg diff-log prod-diff clear-num div-inv associate-/l*
Counts
4 → 86
Calls
4 calls:
5.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
4.0ms
(* r (sin b))
5.0ms
(* (sin a) (sin b))
9.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series372.0ms

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

simplify49.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0369835
11591735
25002730

prune316.0ms

Filtered
98 candidates to 74 candidates (75.5%)
Pruning

16 alts after pruning (16 fresh and 0 done)

PrunedKeptTotal
New821698
Fresh606
Picked101
Done000
Total8916105

Merged error: 0.0b

Counts
105 → 16

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

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
13×add-exp-log add-cbrt-cube
10×add-cube-cbrt *-un-lft-identity
pow1
associate-*r* associate-*l*
expm1-log1p-u log1p-expm1-u add-log-exp
times-frac prod-exp associate-/r* cbrt-unprod
cbrt-undiv div-exp pow-prod-down *-commutative unswap-sqr
frac-2neg clear-num fma-udef div-inv sin-mult associate-/l*
Counts
4 → 74
Calls
4 calls:
3.0ms
(fma (cos a) (cos b) (- (* (sin a) (sin b))))
4.0ms
(* r (sin b))
5.0ms
(* (sin a) (sin b))
5.0ms
(/ (* r (sin b)) (fma (cos a) (cos b) (- (* (sin a) (sin b)))))

series379.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(fma (cos a) (cos b) (- (* (sin a) (sin b))))
38.0ms
(* r (sin b))
44.0ms
(* (sin a) (sin b))
216.0ms
(/ (* r (sin b)) (fma (cos a) (cos b) (- (* (sin a) (sin b)))))

simplify39.0ms

Algorithm
egg-herbie
Counts
86 → 86
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0273680
11161578
25002578

prune262.0ms

Filtered
86 candidates to 63 candidates (73.3%)
Pruning

15 alts after pruning (15 fresh and 0 done)

PrunedKeptTotal
New84286
Fresh21315
Picked101
Done000
Total8715102

Merged error: 0.0b

Counts
102 → 15

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
84×times-frac
58×add-sqr-sqrt
56×add-cube-cbrt *-un-lft-identity
16×associate-/r*
13×add-exp-log add-cbrt-cube
pow1 div-inv associate-/l* add-log-exp
sin-mult
cbrt-undiv expm1-log1p-u div-exp cos-mult log1p-expm1-u associate-/l/
associate-*r* associate-*l*
flip3-- frac-2neg clear-num frac-sub flip-- sub-div
sub-neg fma-neg diff-log div-sub prod-diff pow-prod-down prod-exp associate-/r/ *-commutative cbrt-unprod unswap-sqr
Counts
4 → 145
Calls
4 calls:
6.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
5.0ms
(* (sin a) (sin b))
8.0ms
(/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b))
7.0ms
(/ r (/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b)))

series468.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
48.0ms
(* (sin a) (sin b))
111.0ms
(/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b))
225.0ms
(/ r (/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b)))

simplify77.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
05952224
125392085
250032062

prune442.0ms

Filtered
157 candidates to 129 candidates (82.2%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New1543157
Fresh5914
Picked101
Done000
Total16012172

Merged error: 0.0b

Counts
172 → 12

regimes165.0ms

Accuracy

0% (0.4b 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
0128
1128

end0.0ms

sample2.3s

Algorithm
intervals
Results
1.3s2913×body1280valid
494.0ms1861×body640valid
149.0ms789×body320valid
134.0ms2079×body80valid
53.0ms360×body160valid