Details

Time bar (total: 4.1s)

sample28.0ms

Algorithm
intervals
Results
7.0ms189×body80valid
5.0ms24×body2560valid
3.0ms11×body5120valid
3.0ms16×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.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 (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 40.3b

Counts
2 → 1

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
30.0b
(sqrt (+ (* re re) (* im im)))

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
25×sqrt-prod
23×*-un-lft-identity
21×add-sqr-sqrt
pow1 add-cube-cbrt associate-*l*
associate-*r*
distribute-lft-out add-log-exp
sqrt-div difference-of-squares
add-exp-log rem-sqrt-square sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ swap-sqr flip-- distribute-lft-out-- unswap-sqr
sub-neg flip3-+ diff-log pow-prod-down *-commutative flip-+
Counts
3 → 64
Calls
3 calls:
28.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
21.0ms
(- (sqrt (+ (* re re) (* im im))) re)
16.0ms
(sqrt (+ (* re re) (* im im)))

series271.0ms

Counts
3 → 9
Calls
3 calls:
182.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
51.0ms
(- (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify90.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0271577
1909551
23188541
35001540

prune155.0ms

Filtered
73 candidates to 52 candidates (28.8%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New66773
Fresh000
Picked101
Done000
Total67774

Merged error: 19.6b

Counts
74 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.2b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
30.0b
(sqrt (+ (* re re) (* im im)))
30.0b
(sqrt (+ (* re re) (* im im)))

rewrite162.0ms

Algorithm
rewrite-expression-head
Rules
238×sqrt-prod
166×*-un-lft-identity
108×add-sqr-sqrt
71×associate-*l*
62×distribute-lft-out
61×swap-sqr
34×sqrt-pow1
29×pow1
28×sqrt-div
21×difference-of-squares
18×add-cube-cbrt pow1/2 unswap-sqr
14×associate-*r*
pow-prod-up
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/ *-commutative distribute-lft-out--
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt flip-- cbrt-unprod
Counts
4 → 193
Calls
4 calls:
48.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
70.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
16.0ms
(sqrt (+ (* re re) (* im im)))
16.0ms
(sqrt (+ (* re re) (* im im)))

series170.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
53.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
43.0ms
(sqrt (+ (* re re) (* im im)))

simplify264.0ms

Algorithm
egg-herbie
Counts
205 → 205
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02681581
18511452
249371427
350011427

prune250.0ms

Filtered
205 candidates to 74 candidates (63.9%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New2032205
Fresh156
Picked011
Done000
Total2048212

Merged error: 19.6b

Counts
212 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
7.0b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
30.9b
(cbrt (+ (* re re) (* im im)))
30.9b
(cbrt (+ (* re re) (* im im)))

rewrite93.0ms

Algorithm
rewrite-expression-head
Rules
50×*-un-lft-identity
27×add-sqr-sqrt
26×cbrt-prod
16×associate-*l*
15×sqrt-prod distribute-lft-out
14×associate-*r*
10×add-cube-cbrt
pow1 add-exp-log cbrt-div swap-sqr add-cbrt-cube add-log-exp unswap-sqr
difference-of-squares
flip3-+ flip-+
pow1/3 sqrt-div associate-*r/ distribute-lft-out--
sub-neg flip3-- diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 87
Calls
4 calls:
23.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
30.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
19.0ms
(cbrt (+ (* re re) (* im im)))
17.0ms
(cbrt (+ (* re re) (* im im)))

series402.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
87.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
98.0ms
(cbrt (+ (* re re) (* im im)))
103.0ms
(cbrt (+ (* re re) (* im im)))

simplify140.0ms

Algorithm
egg-herbie
Counts
99 → 99
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
03171162
111451100
246161049
350021049

prune267.0ms

Filtered
99 candidates to 67 candidates (32.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New97299
Fresh066
Picked101
Done011
Total989107

Merged error: 19.6b

Counts
107 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
11.4b
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
30.0b
(sqrt (+ (* re re) (* im im)))
30.0b
(sqrt (+ (* re re) (* im im)))

rewrite139.0ms

Algorithm
rewrite-expression-head
Rules
109×sqrt-prod
84×add-sqr-sqrt
51×*-un-lft-identity
33×unpow-prod-down
26×difference-of-squares
24×unswap-sqr
15×distribute-lft-out
14×associate-*l*
11×add-cube-cbrt sqrt-pow1
10×pow1
pow-pow
swap-sqr add-log-exp
add-exp-log pow1/2 add-cbrt-cube sqr-pow
sqrt-div
pow-unpow
rem-sqrt-square flip3-+ unpow3 flip-+ distribute-lft-out--
pow-to-exp sub-neg flip3-- diff-log pow-exp sqrt-pow2 flip-- rem-cube-cbrt
Counts
4 → 120
Calls
4 calls:
24.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
75.0ms
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
17.0ms
(sqrt (+ (* re re) (* im im)))
17.0ms
(sqrt (+ (* re re) (* im im)))

series247.0ms

Counts
4 → 12
Calls
4 calls:
115.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
52.0ms
(- (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
42.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify51.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
03641526
111071326
250011187

prune253.0ms

Filtered
132 candidates to 64 candidates (51.5%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1302132
Fresh077
Picked101
Done011
Total13110141

Merged error: 19.6b

Counts
141 → 10

regimes234.0ms

Accuracy

38.4% (13.0b remaining)

Error of 30.6b against oracle of 17.7b and baseline of 38.7b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04536
14536

end0.0ms

sample700.0ms

Algorithm
intervals
Results
206.0ms6026×body80valid
142.0ms696×body2560valid
83.0ms473×body1280valid
76.0ms296×body5120valid
37.0ms279×body640valid
14.0ms144×body320valid
6.0ms86×body160valid