Details

Time bar (total: 7.0s)

sample79.0ms

Algorithm
intervals
Results
41.0ms97×body1280valid
17.0ms54×body640valid
4.0ms24×body320valid
4.0ms73×body80valid
1.0msbody160valid

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

rewrite22.0ms

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

series169.0ms

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

simplify47.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 1 (9.0ms)

IterNodesCost
0335803
11423755
25001755

prune208.0ms

Filtered
107 candidates to 81 candidates (75.7%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New998107
Fresh000
Picked101
Done000
Total1008108

Merged error: 0.2b

Counts
108 → 8

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

rewrite80.0ms

Algorithm
rewrite-expression-head
Rules
378×add-sqr-sqrt
244×*-un-lft-identity
173×associate-*l*
144×prod-diff
132×add-cube-cbrt times-frac
117×associate-*r*
95×unswap-sqr
56×distribute-lft-out-- difference-of-squares
39×*-commutative
13×add-exp-log add-cbrt-cube
12×fma-neg associate-/l*
11×associate-/r*
pow1
add-log-exp
sin-mult
expm1-log1p-u associate-/r/ cos-mult log1p-expm1-u
prod-exp cbrt-unprod
cbrt-undiv flip3-- div-exp pow-prod-down frac-sub flip-- sub-div
sub-neg frac-2neg diff-log clear-num div-inv
Counts
4 → 396
Calls
4 calls:
4.0ms
(* r (sin b))
24.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
5.0ms
(* (sin a) (sin b))
24.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series399.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(* r (sin b))
85.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
45.0ms
(* (sin a) (sin b))
228.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify148.0ms

Algorithm
egg-herbie
Counts
408 → 408
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
010707826
140746379
250026379

prune696.0ms

Filtered
408 candidates to 188 candidates (46.1%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New39612408
Fresh707
Picked101
Done000
Total40412416

Merged error: 0.0b

Counts
416 → 12

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite117.0ms

Algorithm
rewrite-expression-head
Rules
465×add-sqr-sqrt
341×*-un-lft-identity
276×times-frac
197×add-cube-cbrt
150×associate-*l*
144×prod-diff
98×unswap-sqr
78×associate-*r*
72×distribute-lft-out-- difference-of-squares
43×associate-/r*
26×*-commutative
25×associate-/l*
21×associate-/r/
13×add-exp-log add-cbrt-cube
12×fma-neg
associate-/l/
sin-mult
pow1 cos-mult div-inv add-log-exp
cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u
flip3-- frac-2neg clear-num frac-sub flip-- sub-div
sub-neg diff-log div-sub pow-prod-down prod-exp cbrt-unprod
Counts
4 → 455
Calls
4 calls:
21.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
30.0ms
(/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b))
30.0ms
(/ r (/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b)))
5.0ms
(* (sin a) (sin b))

series498.0ms

Counts
4 → 12
Calls
4 calls:
88.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
125.0ms
(/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b))
239.0ms
(/ r (/ (- (* (cos a) (cos b)) (* (sin a) (sin b))) (sin b)))
46.0ms
(* (sin a) (sin b))

simplify177.0ms

Algorithm
egg-herbie
Counts
467 → 467
Iterations

Useful iterations: 1 (30.0ms)

IterNodesCost
012708955
147377446
250017446

prune908.0ms

Filtered
467 candidates to 240 candidates (51.4%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New4607467
Fresh6511
Picked101
Done000
Total46712479

Merged error: 0.0b

Counts
479 → 12

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite21.0ms

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

series502.0ms

Counts
4 → 12
Calls
4 calls:
88.0ms
(fma (* (cos a) 1) (cos b) (- (* (sin b) (sin a))))
120.0ms
(/ (fma (* (cos a) 1) (cos b) (- (* (sin b) (sin a)))) (sin b))
242.0ms
(/ r (/ (fma (* (cos a) 1) (cos b) (- (* (sin b) (sin a)))) (sin b)))
52.0ms
(* (sin b) (sin a))

simplify71.0ms

Algorithm
egg-herbie
Counts
152 → 152
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
04912326
122152140
250012131

prune420.0ms

Filtered
152 candidates to 125 candidates (82.2%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New1484152
Fresh4711
Picked101
Done000
Total15311164

Merged error: 0.0b

Counts
164 → 11

regimes169.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01510
11510

end0.0ms

sample2.2s

Algorithm
intervals
Results
1.2s2871×body1280valid
462.0ms1810×body640valid
145.0ms791×body320valid
135.0ms2160×body80valid
48.0ms368×body160valid