Details

Time bar (total: 2.9s)

sample22.0ms

Algorithm
intervals
Results
11.0ms272×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: 26.5b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

0.5b
(+ (* x.re y.re) (* x.im y.im))
26.2b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite16.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:
6.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)))

series106.0ms

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

simplify84.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0231450
1847413
22851412
35003412

prune125.0ms

Filtered
48 candidates to 38 candidates (79.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New41748
Fresh000
Picked011
Done000
Total41849

Merged error: 25.8b

Counts
49 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

0.5b
(+ (* x.re y.re) (* x.im y.im))
15.4b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
18×times-frac sqrt-prod
pow1 add-exp-log sqrt-div associate-/r* add-cbrt-cube add-log-exp
flip3-+ flip-+
associate-/l*
rem-sqrt-square sqrt-pow1 pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv
Counts
4 → 84
Calls
4 calls:
3.0ms
(+ (* x.re y.re) (* x.im y.im))
9.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)))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series205.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(+ (* x.re y.re) (* x.im y.im))
103.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
34.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
37.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 2 (24.0ms)

IterNodesCost
0273893
1868840
22693828
35001828

prune232.0ms

Filtered
96 candidates to 74 candidates (77.1%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New90696
Fresh336
Picked101
Done011
Total9410104

Merged error: 23.1b

Counts
104 → 10

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(+ (* x.re y.re) (* x.im y.im))
15.5b
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
34×add-sqr-sqrt
24×associate-*r*
22×*-un-lft-identity times-frac
20×add-cube-cbrt
17×sqrt-prod
13×add-exp-log
add-cbrt-cube
pow1
flip3-+ sqrt-div flip-+ add-log-exp
unswap-sqr
prod-exp
associate-*l*
frac-times rem-sqrt-square sqrt-pow1 pow1/2 div-exp associate-*l/ associate-/r/ cbrt-unprod
cbrt-undiv +-commutative rec-exp 1-exp associate-*r/ pow-prod-down sum-log un-div-inv *-commutative div-inv
Counts
4 → 94
Calls
4 calls:
3.0ms
(+ (* x.re y.re) (* x.im y.im))
15.0ms
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series232.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(+ (* x.re y.re) (* x.im y.im))
131.0ms
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))))
33.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
37.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
106 → 106
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0385911
11913826
25002802

prune228.0ms

Filtered
106 candidates to 74 candidates (69.8%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1060106
Fresh088
Picked011
Done011
Total10610116

Merged error: 23.1b

Counts
116 → 10

localize14.0ms

Local error

Found 4 expressions with local error:

8.1b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (sqrt (+ (* y.re y.re) (* y.im y.im)))))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
29.6b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
45×sqrt-prod
32×add-sqr-sqrt
29×add-cube-cbrt *-un-lft-identity
27×times-frac
10×sqrt-div
associate-/r*
pow1
add-exp-log add-cbrt-cube
flip3-+ flip-+
add-log-exp
rem-sqrt-square sqrt-pow1 pow1/2 associate-/l*
associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-exp clear-num div-inv
Counts
4 → 100
Calls
4 calls:
11.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (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)))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series298.0ms

Counts
4 → 12
Calls
4 calls:
191.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (sqrt (+ (* y.re y.re) (* y.im y.im)))))
34.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
35.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
38.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify79.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
02941227
18711172
225451144
350011144

prune271.0ms

Filtered
112 candidates to 82 candidates (73.2%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New1120112
Fresh077
Picked011
Done022
Total11210122

Merged error: 23.1b

Counts
122 → 10

regimes191.0ms

Accuracy

30.5% (2.1b remaining)

Error of 25.1b against oracle of 23.0b and baseline of 26.1b

bsearch2.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02726
12726

end0.0ms

sample576.0ms

Algorithm
intervals
Results
362.0ms8447×body80valid