Details

Time bar (total: 4.1s)

sample79.0ms

Algorithm
intervals
Results
34.0ms76×body1280valid
16.0ms61×body640valid
5.0ms85×body80valid
5.0ms26×body320valid
1.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0125
1165
2195
3205
4205

prune9.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 13.1b

Counts
2 → 1

localize11.0ms

Local error

Found 3 expressions with local error:

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

rewrite14.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)))
4.0ms
(cos (+ a b))

series37.0ms

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

simplify31.0ms

Algorithm
egg-herbie
Counts
56 → 56
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0198305
1861257
25001256

prune94.0ms

Filtered
40 candidates to 56 candidates (-40.0%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New461056
Fresh000
Picked101
Done000
Total471057

Merged error: 0.2b

Counts
57 → 10

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
18×add-sqr-sqrt
15×add-exp-log add-cbrt-cube
12×add-cube-cbrt *-un-lft-identity
10×pow1
associate-*r* associate-*l*
prod-exp associate-/r/ cbrt-unprod add-log-exp
times-frac pow-prod-down associate-/r* cos-mult *-commutative sin-mult unswap-sqr
cbrt-undiv div-exp
flip3-- frac-2neg clear-num frac-sub flip-- div-inv associate-/l* sub-div
Counts
4 → 81
Calls
4 calls:
4.0ms
(* (cos a) (cos b))
4.0ms
(* r (sin b))
4.0ms
(* (sin a) (sin b))
8.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series75.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(* (cos a) (cos b))
7.0ms
(* r (sin b))
9.0ms
(* (sin a) (sin b))
51.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify46.0ms

Algorithm
egg-herbie
Counts
93 → 93
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0367682
11616593
25001592

prune140.0ms

Filtered
65 candidates to 93 candidates (-43.1%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New821193
Fresh909
Picked101
Done000
Total9211103

Merged error: 0.0b

Counts
103 → 11

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(* r (sin b))
0.1b
(/ 1 (- (* (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)))))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
34×add-exp-log
27×add-sqr-sqrt
23×add-cube-cbrt *-un-lft-identity associate-*r*
22×add-cbrt-cube
18×times-frac
14×pow1 prod-exp
associate-/r/ cbrt-unprod
associate-*l*
div-exp
pow-prod-down sin-mult
cos-mult add-log-exp
cbrt-undiv rec-exp 1-exp associate-/r* *-commutative associate-/l*
flip3-- frac-sub flip-- div-inv sub-div unswap-sqr
pow-flip frac-2neg associate-*r/ clear-num un-div-inv inv-pow
Counts
4 → 114
Calls
4 calls:
4.0ms
(* r (sin b))
6.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
4.0ms
(* (sin a) (sin b))
12.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series90.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(* r (sin b))
23.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
9.0ms
(* (sin a) (sin b))
51.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify62.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
04741263
124191082
250011054

prune141.0ms

Filtered
75 candidates to 126 candidates (-68.0%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New1233126
Fresh1910
Picked011
Done000
Total12413137

Merged error: 0.0b

Counts
137 → 13

localize21.0ms

Local error

Found 4 expressions with local error:

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

rewrite73.0ms

Algorithm
rewrite-expression-head
Rules
96×pow1
72×add-exp-log
54×add-cbrt-cube
43×pow-prod-down prod-exp
35×associate-*l*
31×cbrt-unprod
26×cos-mult sin-mult
25×associate-*r/
20×add-sqr-sqrt
16×frac-times associate-/r/
14×*-un-lft-identity times-frac associate-*l/
13×add-cube-cbrt
frac-sub
pow-sqr pow-prod-up
div-exp associate-*r*
distribute-rgt-in distribute-lft-in sub-div
flip3-+ pow-plus frac-add *-commutative flip-+ add-log-exp
cbrt-undiv rec-exp 1-exp difference-of-squares unswap-sqr
pow2 swap-sqr
flip3-- flip-- div-inv
Counts
4 → 177
Calls
4 calls:
24.0ms
(* (/ 1 (- (* (* (cos a) (cos b)) (* (cos a) (cos b))) (* (* (sin a) (sin b)) (* (sin a) (sin b))))) (+ (* (cos a) (cos b)) (* (sin a) (sin b))))
9.0ms
(* (* (sin a) (sin b)) (* (sin a) (sin b)))
24.0ms
(* (* r (sin b)) (* (/ 1 (- (* (* (cos a) (cos b)) (* (cos a) (cos b))) (* (* (sin a) (sin b)) (* (sin a) (sin b))))) (+ (* (cos a) (cos b)) (* (sin a) (sin b)))))
8.0ms
(* (* (cos a) (cos b)) (* (cos a) (cos b)))

series206.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(* (/ 1 (- (* (* (cos a) (cos b)) (* (cos a) (cos b))) (* (* (sin a) (sin b)) (* (sin a) (sin b))))) (+ (* (cos a) (cos b)) (* (sin a) (sin b))))
13.0ms
(* (* (sin a) (sin b)) (* (sin a) (sin b)))
118.0ms
(* (* r (sin b)) (* (/ 1 (- (* (* (cos a) (cos b)) (* (cos a) (cos b))) (* (* (sin a) (sin b)) (* (sin a) (sin b))))) (+ (* (cos a) (cos b)) (* (sin a) (sin b)))))
12.0ms
(* (* (cos a) (cos b)) (* (cos a) (cos b)))

simplify51.0ms

Algorithm
egg-herbie
Counts
189 → 189
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
010023521
150022767

prune191.0ms

Filtered
110 candidates to 189 candidates (-71.8%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New1854189
Fresh4711
Picked101
Done101
Total19111202

Merged error: 0b

Counts
202 → 11

regimes265.0ms

Accuracy

0% (0.4b remaining)

Error of 0.5b against oracle of 0.1b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02934
12934

end0.0ms

sample2.4s

Algorithm
intervals
Results
1.3s2871×body1280valid
488.0ms1827×body640valid
160.0ms781×body320valid
145.0ms2191×body80valid
50.0ms331×body160valid

Profiling

Loading profile data...