Details

Time bar (total: 4.6s)

sample34.0ms

Algorithm
intervals
Results
12.0ms273×body80valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0157
1157

prune4.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 26.1b

Counts
2 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

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

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-exp-log add-cbrt-cube add-log-exp
flip3-+ associate-/r* flip-+ associate-/l*
pow1 associate-/r/ associate-/l/
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv
Counts
2 → 42
Calls
2 calls:
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)))

series119.0ms

Counts
2 → 6
Calls
2 calls:
34.0ms
(+ (* x.re y.re) (* x.im y.im))
85.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0231450
1847413
22837412
35001412

prune161.0ms

Filtered
48 candidates to 38 candidates (20.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New40848
Fresh000
Picked101
Done000
Total41849

Merged error: 25.4b

Counts
49 → 8

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im)))) (sqrt (+ (* y.re y.re) (* y.im y.im))))
15.5b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
28.3b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
28.3b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
288×times-frac
164×add-sqr-sqrt
162×add-cube-cbrt *-un-lft-identity
156×sqrt-prod
27×associate-/l*
22×sqrt-div
18×associate-/r/
12×flip3-+ associate-/r* flip-+
11×add-exp-log add-cbrt-cube
div-inv
pow1
cbrt-undiv div-exp add-log-exp
associate-/l/
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 clear-num
Counts
4 → 264
Calls
4 calls:
16.0ms
(/ (/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im)))) (sqrt (+ (* y.re y.re) (* y.im y.im))))
11.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series281.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(/ (/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im)))) (sqrt (+ (* y.re y.re) (* y.im y.im))))
114.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
40.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
45.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify83.0ms

Algorithm
egg-herbie
Counts
276 → 276
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
07145680
125165201
250015144

prune976.0ms

Filtered
276 candidates to 145 candidates (47.5%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New2715276
Fresh257
Picked011
Done000
Total27311284

Merged error: 22.5b

Counts
284 → 11

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (/ 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)))))
15.5b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
28.3b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
28.3b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite47.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:
23.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))))
5.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series359.0ms

Counts
4 → 12
Calls
4 calls:
159.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)))))
115.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
40.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
44.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
05672505
132822242
250012117

prune627.0ms

Filtered
172 candidates to 112 candidates (34.9%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New1720172
Fresh099
Picked011
Done011
Total17211183

Merged error: 22.5b

Counts
183 → 11

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* x.re y.re) (* x.im y.im))
0.6b
(/ 1 (+ (* y.re y.re) (* y.im y.im)))
25.1b
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (+ (* y.re y.re) (* y.im y.im))))

rewrite22.0ms

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

series171.0ms

Counts
3 → 9
Calls
3 calls:
35.0ms
(+ (* x.re y.re) (* x.im y.im))
45.0ms
(/ 1 (+ (* y.re y.re) (* y.im y.im)))
90.0ms
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (+ (* y.re y.re) (* y.im y.im))))

simplify47.0ms

Algorithm
egg-herbie
Counts
95 → 95
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0352774
11671681
25002653

prune199.0ms

Filtered
95 candidates to 58 candidates (38.9%)
Pruning

11 alts after pruning (8 fresh and 3 done)

PrunedKeptTotal
New95095
Fresh088
Picked011
Done022
Total9511106

Merged error: 22.5b

Counts
106 → 11

regimes390.0ms

Accuracy

0% (3.0b remaining)

Error of 26.0b against oracle of 23.0b and baseline of 26.0b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01713
11713

end0.0ms

sample765.0ms

Algorithm
intervals
Results
372.0ms8477×body80valid

Profiling

Loading profile data...