Details

Time bar (total: 6.2s)

analyze1.0s

Algorithm
search

sample85.0ms

Algorithm
intervals
Results
46.0ms103×body1280valid
14.0ms49×body640valid
6.0ms28×body320valid
4.0ms68×body80valid
1.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0125
1165
2195
3205
4205

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 13.3b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite13.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))

series36.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 (26.0ms)

IterNodesCost
0198305
1861257
25001256

prune77.0ms

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

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New50656
Fresh000
Picked101
Done000
Total51657

Merged error: 0.2b

Counts
57 → 6

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

rewrite23.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:
4.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin 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))))

series83.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin 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))))

simplify48.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0344770
11513673
25002663

prune134.0ms

Filtered
64 candidates to 88 candidates (-37.5%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New771188
Fresh505
Picked101
Done000
Total831194

Merged error: 0.0b

Counts
94 → 11

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite30.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)))
8.0ms
(/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b))))
4.0ms
(* (sin a) (sin b))
11.0ms
(* r (/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b)))))

series105.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(- (* (cos b) (cos a)) (* (sin a) (sin b)))
28.0ms
(/ (sin b) (- (* (cos b) (cos a)) (* (sin a) (sin b))))
12.0ms
(* (sin a) (sin b))
49.0ms
(* r (/ (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

prune139.0ms

Filtered
84 candidates to 112 candidates (-33.3%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New1084112
Fresh3710
Picked011
Done000
Total11112123

Merged error: 0.0b

Counts
123 → 12

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite37.0ms

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

series112.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(/ 1 (- (* (cos b) (cos a)) (* (sin a) (sin b))))
9.0ms
(* (sin a) (sin b))
49.0ms
(* r (* (sin b) (/ 1 (- (* (cos b) (cos a)) (* (sin a) (sin b))))))
30.0ms
(* (sin b) (/ 1 (- (* (cos b) (cos a)) (* (sin a) (sin b)))))

simplify62.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04561485
119841270
250011238

prune94.0ms

Filtered
79 candidates to 130 candidates (-64.6%)
Pruning

12 alts after pruning (10 fresh and 2 done)

PrunedKeptTotal
New1300130
Fresh01010
Picked011
Done011
Total13012142

Merged error: 0.0b

Counts
142 → 12

regimes258.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01510
11510

end0.0ms

analyze1.2s

Algorithm
search

sample2.5s

Algorithm
intervals
Results
1.4s2890×body1280valid
535.0ms1844×body640valid
154.0ms729×body320valid
141.0ms2206×body80valid
54.0ms331×body160valid
1.0msbody1280invalid
0.0msbody320invalid
0.0msbody80invalid

Profiling

Loading profile data...