Details

Time bar (total: 3.5s)

sample20.0ms

Algorithm
intervals
Results
9.0ms273×body80valid

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0157
1157

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: 28.5b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
0.0b
(+ (* x.re y.re) (* x.im y.im))
28.0b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-log-exp
add-exp-log add-cbrt-cube
flip3-+ flip-+
pow1 associate-/r* associate-/l*
+-commutative sum-log associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-exp clear-num div-inv
Counts
3 → 53
Calls
3 calls:
6.0ms
(+ (* y.re y.re) (* y.im y.im))
3.0ms
(+ (* x.re y.re) (* x.im y.im))
8.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

series143.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(+ (* y.re y.re) (* y.im y.im))
36.0ms
(+ (* x.re y.re) (* x.im y.im))
79.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify133.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0272527
11164479
24451477
35003477

prune178.0ms

Filtered
62 candidates to 49 candidates (79.0%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New521062
Fresh000
Picked101
Done000
Total531063

Merged error: 27.8b

Counts
63 → 10

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))) (/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im)))))
14.6b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
31.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
31.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
95×add-sqr-sqrt
76×times-frac
53×*-un-lft-identity
47×add-cube-cbrt sqrt-prod
28×add-exp-log
24×associate-*r* associate-*l*
18×add-cbrt-cube
15×unswap-sqr
10×sqrt-div
div-exp
pow1 prod-exp
flip3-+ associate-/r* associate-/r/ flip-+
cbrt-undiv
cbrt-unprod add-log-exp
div-inv associate-/l*
rem-sqrt-square rec-exp sqrt-pow1 pow1/2 1-exp associate-/l/
frac-times frac-2neg associate-*r/ pow-prod-down associate-*l/ clear-num *-commutative
Counts
4 → 160
Calls
4 calls:
28.0ms
(* (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))) (/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im)))))
9.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series326.0ms

Counts
4 → 12
Calls
4 calls:
143.0ms
(* (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))) (/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im)))))
107.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
41.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
36.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify78.0ms

Algorithm
egg-herbie
Counts
172 → 172
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
05672507
133032242
250012117

prune415.0ms

Filtered
172 candidates to 113 candidates (65.7%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New1675172
Fresh279
Picked011
Done000
Total16913182

Merged error: 26.0b

Counts
182 → 13

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
0.0b
(+ (* x.re y.re) (* x.im y.im))
0.5b
(/ 1 (/ (+ (* y.re y.re) (* y.im y.im)) (+ (* x.re y.re) (* x.im y.im))))
27.6b
(/ (+ (* y.re y.re) (* y.im y.im)) (+ (* x.re y.re) (* x.im y.im)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
90×times-frac
56×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
18×associate-/r*
17×add-exp-log
11×associate-/r/ add-cbrt-cube
flip3-+ div-exp flip-+ add-log-exp
div-inv associate-/l*
pow1
cbrt-undiv
+-commutative rec-exp frac-2neg 1-exp clear-num sum-log associate-/l/
pow-flip inv-pow
Counts
4 → 137
Calls
4 calls:
5.0ms
(+ (* y.re y.re) (* y.im y.im))
3.0ms
(+ (* x.re y.re) (* x.im y.im))
9.0ms
(/ 1 (/ (+ (* y.re y.re) (* y.im y.im)) (+ (* x.re y.re) (* x.im y.im))))
8.0ms
(/ (+ (* y.re y.re) (* y.im y.im)) (+ (* x.re y.re) (* x.im y.im)))

series298.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* y.re y.re) (* y.im y.im))
29.0ms
(+ (* x.re y.re) (* x.im y.im))
170.0ms
(/ 1 (/ (+ (* y.re y.re) (* y.im y.im)) (+ (* x.re y.re) (* x.im y.im))))
74.0ms
(/ (+ (* y.re y.re) (* y.im y.im)) (+ (* x.re y.re) (* x.im y.im)))

simplify69.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
05181821
126321656
250011569

prune295.0ms

Filtered
149 candidates to 85 candidates (57.0%)
Pruning

13 alts after pruning (11 fresh and 2 done)

PrunedKeptTotal
New1481149
Fresh11011
Picked011
Done011
Total14913162

Merged error: 26.0b

Counts
162 → 13

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* x.re y.re) (* x.im y.im))
0.5b
(/ 1 (* (+ (* y.re y.re) (* y.im y.im)) (/ 1 (+ (* x.re y.re) (* x.im y.im)))))
0.7b
(/ 1 (+ (* x.re y.re) (* x.im y.im)))
27.3b
(* (+ (* y.re y.re) (* y.im y.im)) (/ 1 (+ (* x.re y.re) (* x.im y.im))))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
52×add-exp-log
29×add-sqr-sqrt
23×*-un-lft-identity times-frac
22×add-cube-cbrt
20×div-exp add-cbrt-cube
16×prod-exp
15×associate-*r*
10×pow1 rec-exp 1-exp associate-/r/
flip3-+ flip-+
cbrt-undiv associate-/l* add-log-exp
frac-times associate-*l/ associate-/r* cbrt-unprod
pow-flip associate-*l* div-inv unswap-sqr
frac-2neg associate-*r/ pow-prod-down clear-num un-div-inv inv-pow
+-commutative sum-log *-commutative
Counts
4 → 130
Calls
4 calls:
3.0ms
(+ (* x.re y.re) (* x.im y.im))
11.0ms
(/ 1 (* (+ (* y.re y.re) (* y.im y.im)) (/ 1 (+ (* x.re y.re) (* x.im y.im)))))
5.0ms
(/ 1 (+ (* x.re y.re) (* x.im y.im)))
12.0ms
(* (+ (* y.re y.re) (* y.im y.im)) (/ 1 (+ (* x.re y.re) (* x.im y.im))))

series274.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(+ (* x.re y.re) (* x.im y.im))
152.0ms
(/ 1 (* (+ (* y.re y.re) (* y.im y.im)) (/ 1 (+ (* x.re y.re) (* x.im y.im)))))
26.0ms
(/ 1 (+ (* x.re y.re) (* x.im y.im)))
55.0ms
(* (+ (* y.re y.re) (* y.im y.im)) (/ 1 (+ (* x.re y.re) (* x.im y.im))))

simplify83.0ms

Algorithm
egg-herbie
Counts
142 → 142
Iterations

Useful iterations: 2 (67.0ms)

IterNodesCost
04891237
123621038
25002998

prune207.0ms

Filtered
142 candidates to 79 candidates (55.6%)
Pruning

13 alts after pruning (10 fresh and 3 done)

PrunedKeptTotal
New1420142
Fresh01010
Picked011
Done022
Total14213155

Merged error: 26.0b

Counts
155 → 13

regimes284.0ms

Accuracy

25.7% (2.3b remaining)

Error of 25.6b against oracle of 23.3b and baseline of 26.4b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02827
12827

end0.0ms

sample545.0ms

Algorithm
intervals
Results
312.0ms8502×body80valid

Profiling

Loading profile data...