Details

Time bar (total: 10.2s)

sample86.0ms

Algorithm
intervals
Results
32.0ms88×body1280valid
16.0ms70×body640valid
15.0ms280×body80valid
5.0ms31×body320valid
2.0ms14×body160valid

simplify17.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1507
2777
3967
41127
51277
61417
71417

prune6.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 0.5b

Counts
2 → 1

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
0.7b
(/ (cos th) (sqrt 2.0))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt
38×times-frac
32×add-cube-cbrt *-un-lft-identity
22×associate-*l* sqrt-prod
10×add-exp-log add-cbrt-cube
associate-/r*
pow1 add-log-exp
flip3-+ associate-*r* flip-+ associate-/l* unswap-sqr
cbrt-undiv frac-times associate-*r/ div-exp prod-exp cbrt-unprod div-inv
+-commutative distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down associate-*l/ clear-num sum-log *-commutative
Counts
3 → 98
Calls
3 calls:
7.0ms
(+ (* a1 a1) (* a2 a2))
10.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ (cos th) (sqrt 2.0))

series293.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* a1 a1) (* a2 a2))
208.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
58.0ms
(/ (cos th) (sqrt 2.0))

simplify54.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0490872
12426805
25003791

prune271.0ms

Filtered
107 candidates to 75 candidates (70.1%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1007107
Fresh000
Picked101
Done000
Total1017108

Merged error: 0b

Counts
108 → 7

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
0.6b
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
0.7b
(/ (cos th) (sqrt (sqrt 2.0)))

rewrite142.0ms

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod
1119×times-frac
625×add-sqr-sqrt
578×add-cube-cbrt *-un-lft-identity
283×associate-*l*
34×associate-/l*
22×div-inv
20×add-exp-log add-cbrt-cube
18×associate-/r*
13×unswap-sqr
cbrt-undiv div-exp
pow1 add-log-exp
flip3-+ associate-*r* prod-exp cbrt-unprod flip-+
frac-times frac-2neg associate-*r/ clear-num
+-commutative distribute-rgt-in distribute-lft-in pow-prod-down associate-*l/ sum-log *-commutative associate-/l/
Counts
4 → 717
Calls
4 calls:
4.0ms
(+ (* a1 a1) (* a2 a2))
54.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
16.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
6.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

series408.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* a1 a1) (* a2 a2))
218.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
63.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
99.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

simplify126.0ms

Algorithm
egg-herbie
Counts
729 → 729
Iterations

Useful iterations: 1 (42.0ms)

IterNodesCost
0196110436
150019573

prune1.6s

Filtered
729 candidates to 374 candidates (51.3%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New7263729
Fresh336
Picked011
Done000
Total7297736

Merged error: 0b

Counts
736 → 7

localize19.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (/ (cos th) (sqrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))) (* (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2))))
0.4b
(* (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2)))
1.0b
(/ 1 (sqrt (sqrt 2.0)))
1.0b
(/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))

rewrite234.0ms

Algorithm
rewrite-expression-head
Rules
1522×sqrt-prod
1510×times-frac
861×add-sqr-sqrt
775×*-un-lft-identity
763×add-cube-cbrt
392×cbrt-prod associate-*l*
82×add-exp-log
52×add-cbrt-cube
34×associate-/l*
32×div-exp
29×div-inv unswap-sqr
27×prod-exp
21×associate-/r*
17×cbrt-undiv cbrt-unprod
15×pow1
11×frac-times associate-*r/
pow-flip sqrt-pow1
flip3-+ flip-+
distribute-rgt-in rec-exp distribute-lft-in 1-exp
associate-*r* pow-prod-down associate-*l/ add-log-exp
pow1/2
frac-2neg pow1/3 clear-num *-commutative pow-div
associate-/l/ inv-pow
Counts
4 → 987
Calls
4 calls:
48.0ms
(* (/ (cos th) (sqrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))) (* (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2))))
68.0ms
(* (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ 1 (sqrt (sqrt 2.0)))
19.0ms
(/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))

series632.0ms

Counts
4 → 8
Calls
4 calls:
231.0ms
(* (/ (cos th) (sqrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))) (* (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2))))
401.0ms
(* (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2)))
0.0ms
(/ 1 (sqrt (sqrt 2.0)))
0.0ms
(/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))

simplify179.0ms

Algorithm
egg-herbie
Counts
995 → 995
Iterations

Useful iterations: 1 (55.0ms)

IterNodesCost
0261515493
1500114498

prune2.7s

Filtered
995 candidates to 470 candidates (47.2%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New9950995
Fresh055
Picked011
Done011
Total99571002

Merged error: 0b

Counts
1002 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos th) (pow a2 2))
0.1b
(* (pow a1 2) (cos th))
0.3b
(/ (* (cos th) (pow a2 2)) (sqrt 2.0))
0.3b
(/ (* (pow a1 2) (cos th)) (sqrt 2.0))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
34×add-exp-log
30×add-sqr-sqrt
18×add-cube-cbrt *-un-lft-identity add-cbrt-cube
12×times-frac prod-exp associate-/r* sqrt-prod
11×associate-*r* associate-*l*
unpow-prod-down div-exp unswap-sqr
pow1 cbrt-undiv pow-to-exp pow-exp cbrt-unprod unpow2 add-log-exp sqr-pow
frac-2neg clear-num *-commutative div-inv associate-/l*
Counts
4 → 112
Calls
4 calls:
6.0ms
(* (cos th) (pow a2 2))
6.0ms
(* (pow a1 2) (cos th))
6.0ms
(/ (* (cos th) (pow a2 2)) (sqrt 2.0))
6.0ms
(/ (* (pow a1 2) (cos th)) (sqrt 2.0))

series299.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(* (cos th) (pow a2 2))
50.0ms
(* (pow a1 2) (cos th))
110.0ms
(/ (* (cos th) (pow a2 2)) (sqrt 2.0))
98.0ms
(/ (* (pow a1 2) (cos th)) (sqrt 2.0))

simplify65.0ms

Algorithm
egg-herbie
Counts
124 → 124
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0404742
12042641
25001641

prune296.0ms

Filtered
124 candidates to 77 candidates (62.1%)
Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New1240124
Fresh044
Picked011
Done022
Total1247131

Merged error: 0b

Counts
131 → 7

regimes231.0ms

Accuracy

0% (0.4b 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
02520
12520

end0.0ms

sample2.3s

Algorithm
intervals
Results
867.0ms2566×body1280valid
471.0ms2102×body640valid
433.0ms8126×body80valid
166.0ms1026×body320valid
58.0ms506×body160valid