Details

Time bar (total: 5.6s)

sample87.0ms

Algorithm
intervals
Results
50.0ms101×body1280valid
16.0ms59×body640valid
4.0ms19×body320valid
4.0ms63×body80valid
2.0ms14×body160valid

simplify9.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: 19.4b

Counts
2 → 1

localize12.0ms

Local error

Found 3 expressions with local error:

0.1b
(* r (sin b))
0.2b
(/ (* r (sin b)) (cos (+ a b)))
4.9b
(cos (+ a b))

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

series162.0ms

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

simplify34.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
0207327
1884279
25001279

prune155.0ms

Filtered
62 candidates to 46 candidates (74.2%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New521062
Fresh000
Picked101
Done000
Total531063

Merged error: 0.2b

Counts
63 → 10

localize20.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.2b
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

rewrite26.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:
4.0ms
(* r (sin b))
5.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
5.0ms
(* (sin a) (sin b))
9.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series384.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(* r (sin b))
83.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
47.0ms
(* (sin a) (sin b))
216.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify52.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0369835
11591735
25002730

prune320.0ms

Filtered
98 candidates to 74 candidates (75.5%)
Pruning

15 alts after pruning (15 fresh and 0 done)

PrunedKeptTotal
New841498
Fresh819
Picked101
Done000
Total9315108

Merged error: 0.0b

Counts
108 → 15

localize17.0ms

Local error

Found 4 expressions with local error:

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

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

series384.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* r (sin b))
81.0ms
(fma (cos a) (cos b) (- (* (sin a) (sin b))))
47.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

prune264.0ms

Filtered
86 candidates to 63 candidates (73.3%)
Pruning

14 alts after pruning (14 fresh and 0 done)

PrunedKeptTotal
New82486
Fresh41014
Picked101
Done000
Total8714101

Merged error: 0.0b

Counts
101 → 14

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

series467.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
47.0ms
(* (sin a) (sin b))
221.0ms
(/ r (/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b)))
116.0ms
(/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b))

simplify78.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
05952226
125392087
250032064

prune458.0ms

Filtered
157 candidates to 130 candidates (82.8%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New1543157
Fresh4913
Picked011
Done000
Total15813171

Merged error: 0.0b

Counts
171 → 13

regimes178.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
01410
11410

end0.0ms

sample2.4s

Algorithm
intervals
Results
1.3s2938×body1280valid
496.0ms1776×body640valid
163.0ms782×body320valid
130.0ms2171×body80valid
52.0ms335×body160valid