Details

Time bar (total: 3.9s)

sample34.0ms

Algorithm
intervals
Results
8.0ms181×body80valid
7.0ms29×body2560valid
4.0ms11×body5120valid
3.0ms17×body640valid
2.0ms10×body1280valid
0.0msbody320valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.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: 40.9b

Counts
2 → 1

localize16.0ms

Local error

Found 2 expressions with local error:

1.1b
(- (sqrt (+ (* re re) (* im im))) re)
29.7b
(sqrt (+ (* re re) (* im im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
2 → 30
Calls
2 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series96.0ms

Counts
2 → 6
Calls
2 calls:
52.0ms
(- (sqrt (+ (* re re) (* im im))) re)
43.0ms
(sqrt (+ (* re re) (* im im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 4 (77.0ms)

IterNodesCost
0135228
1332216
2839212
32503211
45002210

prune105.0ms

Filtered
36 candidates to 28 candidates (77.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New30636
Fresh000
Picked011
Done000
Total30737

Merged error: 20.3b

Counts
37 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.9b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
30.7b
(cbrt (+ (* re re) (* im im)))
30.7b
(cbrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ associate-*l* flip-+ unswap-sqr
pow1/3 sqrt-div associate-*r/
sub-neg flip3-- diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 66
Calls
4 calls:
8.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series377.0ms

Counts
4 → 12
Calls
4 calls:
108.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
81.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
92.0ms
(cbrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))

simplify146.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0307930
11159870
24797842
35002842

prune265.0ms

Filtered
78 candidates to 64 candidates (82.1%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New75378
Fresh145
Picked101
Done011
Total77885

Merged error: 20.3b

Counts
85 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

10.6b
(- (* (fabs (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
29.7b
(sqrt (+ (* re re) (* im im)))
29.7b
(sqrt (+ (* re re) (* im im)))
30.7b
(cbrt (+ (* re re) (* im im)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod add-log-exp
add-exp-log sqrt-div add-cbrt-cube
cbrt-prod flip3-+ flip-+
rem-sqrt-square cbrt-div sqrt-pow1 pow1/2
sub-neg flip3-- pow1/3 diff-log flip--
Counts
4 → 55
Calls
4 calls:
9.0ms
(- (* (fabs (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series243.0ms

Counts
4 → 12
Calls
4 calls:
79.0ms
(- (* (fabs (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im)))))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify90.0ms

Algorithm
egg-herbie
Counts
67 → 67
Iterations

Useful iterations: 3 (82.0ms)

IterNodesCost
0259719
1892652
22925631
35001629

prune278.0ms

Filtered
67 candidates to 58 candidates (86.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New66167
Fresh066
Picked101
Done011
Total67875

Merged error: 20.3b

Counts
75 → 8

localize22.0ms

Local error

Found 4 expressions with local error:

30.7b
(cbrt (+ (* re re) (* im im)))
30.7b
(cbrt (+ (* re re) (* im im)))
30.7b
(cbrt (+ (* re re) (* im im)))
30.7b
(cbrt (+ (* re re) (* im im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
add-sqr-sqrt add-cube-cbrt cbrt-div *-un-lft-identity
pow1 add-exp-log flip3-+ pow1/3 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 52
Calls
4 calls:
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series370.0ms

Counts
4 → 12
Calls
4 calls:
93.0ms
(cbrt (+ (* re re) (* im im)))
92.0ms
(cbrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))

simplify51.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (12.0ms)

IterNodesCost
0123488
1408452
21386444
35001444

prune305.0ms

Filtered
64 candidates to 60 candidates (93.8%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New64064
Fresh066
Picked011
Done011
Total64872

Merged error: 20.3b

Counts
72 → 8

regimes456.0ms

Accuracy

55.9% (9.2b remaining)

Error of 26.8b against oracle of 17.6b and baseline of 38.5b

bsearch2.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04641
14641

end0.0ms

sample873.0ms

Algorithm
intervals
Results
280.0ms6036×body80valid
192.0ms715×body2560valid
97.0ms458×body1280valid
93.0ms305×body5120valid
44.0ms257×body640valid
18.0ms145×body320valid
7.0ms84×body160valid

Profiling

Loading profile data...