Details

Time bar (total: 5.7s)

sample90.0ms

Algorithm
intervals
Results
52.0ms112×body1280valid
15.0ms58×body640valid
5.0ms24×body320valid
4.0ms52×body80valid
1.0ms10×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: 16.2b

Counts
2 → 1

localize12.0ms

Local error

Found 3 expressions with local error:

0.1b
(* r (sin b))
0.3b
(/ (* r (sin b)) (cos (+ a b)))
3.0b
(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
times-frac associate-*r* associate-*l* associate-/r* 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 → 47
Calls
3 calls:
4.0ms
(* r (sin b))
5.0ms
(/ (* r (sin b)) (cos (+ a b)))
6.0ms
(cos (+ a b))

series158.0ms

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

simplify33.0ms

Algorithm
egg-herbie
Counts
56 → 56
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0198305
1861257
25001256

prune136.0ms

Filtered
56 candidates to 40 candidates (71.4%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New47956
Fresh000
Picked101
Done000
Total48957

Merged error: 0.2b

Counts
57 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite24.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
associate-/r/ cos-mult
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 diff-log clear-num div-inv associate-/l*
Counts
4 → 76
Calls
4 calls:
5.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
4.0ms
(* r (sin b))
8.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))
5.0ms
(* (sin a) (sin b))

series373.0ms

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

simplify49.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0344770
11513673
25002663

prune282.0ms

Filtered
88 candidates to 64 candidates (72.7%)
Pruning

16 alts after pruning (16 fresh and 0 done)

PrunedKeptTotal
New721688
Fresh808
Picked101
Done000
Total811697

Merged error: 0.0b

Counts
97 → 16

localize19.0ms

Local error

Found 4 expressions with local error:

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

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
22×add-cube-cbrt *-un-lft-identity
20×associate-*r*
19×times-frac
13×add-exp-log add-cbrt-cube
pow1 associate-/r/
sin-mult
associate-*l* cos-mult add-log-exp
flip3-- prod-exp associate-/r* frac-sub flip-- cbrt-unprod associate-/l* sub-div unswap-sqr
cbrt-undiv div-exp pow-prod-down *-commutative div-inv
sub-neg frac-2neg diff-log associate-*r/ clear-num
Counts
4 → 100
Calls
4 calls:
5.0ms
(- (* (cos b) (cos a)) (* (sin a) (sin b)))
11.0ms
(* r (/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b)))))
5.0ms
(* (sin a) (sin b))
8.0ms
(/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b))))

series448.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(- (* (cos b) (cos a)) (* (sin a) (sin b)))
211.0ms
(* r (/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b)))))
47.0ms
(* (sin a) (sin b))
108.0ms
(/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b))))

simplify55.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
04011307
117331182
250011178

prune334.0ms

Filtered
112 candidates to 84 candidates (75.0%)
Pruning

14 alts after pruning (14 fresh and 0 done)

PrunedKeptTotal
New1084112
Fresh51015
Picked101
Done000
Total11414128

Merged error: 0.0b

Counts
128 → 14

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
156×times-frac
108×add-sqr-sqrt
94×*-un-lft-identity
92×add-cube-cbrt
47×associate-*r*
38×add-exp-log
22×add-cbrt-cube
16×associate-/r*
15×div-exp
10×div-inv
pow1
prod-exp
cbrt-undiv
associate-*l* associate-/l* unswap-sqr
rec-exp 1-exp cbrt-unprod associate-/l/ add-log-exp
sin-mult
frac-2neg pow-prod-down clear-num associate-/r/ cos-mult *-commutative
flip3-- pow-flip div-sub associate-*r/ un-div-inv frac-sub flip-- inv-pow sub-div
Counts
4 → 200
Calls
4 calls:
7.0ms
(/ 1 (/ (- (* (cos b) (cos a)) (* (sin a) (sin b))) (sin b)))
19.0ms
(* r (/ 1 (/ (- (* (cos b) (cos a)) (* (sin a) (sin b))) (sin b))))
5.0ms
(* (sin a) (sin b))
9.0ms
(/ (- (* (cos b) (cos a)) (* (sin a) (sin b))) (sin b))

series474.0ms

Counts
4 → 12
Calls
4 calls:
108.0ms
(/ 1 (/ (- (* (cos b) (cos a)) (* (sin a) (sin b))) (sin b)))
218.0ms
(* r (/ 1 (/ (- (* (cos b) (cos a)) (* (sin a) (sin b))) (sin b))))
43.0ms
(* (sin a) (sin b))
105.0ms
(/ (- (* (cos b) (cos a)) (* (sin a) (sin b))) (sin b))

simplify94.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
07103077
135952767
250022623

prune472.0ms

Filtered
212 candidates to 136 candidates (64.2%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New2084212
Fresh5813
Picked101
Done000
Total21412226

Merged error: 0.0b

Counts
226 → 12

regimes160.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
0128
1128

end0.0ms

sample2.3s

Algorithm
intervals
Results
1.3s2867×body1280valid
509.0ms1829×body640valid
153.0ms807×body320valid
136.0ms2133×body80valid
50.0ms367×body160valid

Profiling

Loading profile data...