Details

Time bar (total: 3.6s)

sample27.0ms

Algorithm
intervals
Results
6.0ms184×body80valid
5.0ms28×body2560valid
2.0ms16×body1280valid
2.0msbody5120valid
1.0ms11×body640valid
1.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 (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.2b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite66.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:
24.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
20.0ms
(- (sqrt (+ (* re re) (* im im))) re)
19.0ms
(sqrt (+ (* re re) (* im im)))

series246.0ms

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

simplify93.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0277577
1946551
23328541
35001540

prune182.0ms

Filtered
73 candidates to 52 candidates (71.2%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New67673
Fresh000
Picked101
Done000
Total68674

Merged error: 18.7b

Counts
74 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
10.2b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite159.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:
46.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
68.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)))

series153.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
47.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify51.0ms

Algorithm
egg-herbie
Counts
205 → 205
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
02751581
18851452
250021428

prune289.0ms

Filtered
205 candidates to 76 candidates (37.1%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New2023205
Fresh235
Picked101
Done000
Total2056211

Merged error: 18.7b

Counts
211 → 6

localize17.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (- (* (sqrt (sqrt (* 1 1))) (sqrt (+ (* re re) (* im im)))) re)))
1.0b
(- (* (sqrt (sqrt (* 1 1))) (sqrt (+ (* re re) (* im im)))) re)
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite137.0ms

Algorithm
rewrite-expression-head
Rules
143×sqrt-prod
141×add-sqr-sqrt
62×unswap-sqr
51×*-un-lft-identity
46×difference-of-squares
28×associate-*r*
10×swap-sqr
associate-*l*
pow1 add-cube-cbrt
*-commutative distribute-lft-out add-log-exp
sqrt-div distribute-lft-out--
add-exp-log rem-sqrt-square sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip--
sub-neg flip3-+ diff-log pow-prod-down flip-+
Counts
3 → 108
Calls
3 calls:
57.0ms
(sqrt (* 2.0 (- (* (sqrt (sqrt (* 1 1))) (sqrt (+ (* re re) (* im im)))) re)))
54.0ms
(- (* (sqrt (sqrt (* 1 1))) (sqrt (+ (* re re) (* im im)))) re)
16.0ms
(sqrt (+ (* re re) (* im im)))

series251.0ms

Counts
3 → 9
Calls
3 calls:
167.0ms
(sqrt (* 2.0 (- (* (sqrt (sqrt (* 1 1))) (sqrt (+ (* re re) (* im im)))) re)))
48.0ms
(- (* (sqrt (sqrt (* 1 1))) (sqrt (+ (* re re) (* im im)))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify121.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 3 (106.0ms)

IterNodesCost
03941687
111671578
243801494
350011492

prune206.0ms

Filtered
117 candidates to 52 candidates (44.4%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1161117
Fresh145
Picked011
Done000
Total1176123

Merged error: 18.7b

Counts
123 → 6

localize21.0ms

Local error

Found 4 expressions with local error:

27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite72.0ms

Algorithm
rewrite-expression-head
Rules
56×*-un-lft-identity
32×sqrt-prod
20×distribute-lft-out
16×associate-*l*
12×add-sqr-sqrt
pow1 add-cube-cbrt sqrt-div swap-sqr
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 80
Calls
4 calls:
20.0ms
(sqrt (+ (* re re) (* im im)))
16.0ms
(sqrt (+ (* re re) (* im im)))
16.0ms
(sqrt (+ (* re re) (* im im)))
16.0ms
(sqrt (+ (* re re) (* im im)))

series141.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify154.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
092476
1223464
2539464
31396464
44413464
55002464

prune305.0ms

Filtered
92 candidates to 60 candidates (65.2%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New92092
Fresh044
Picked011
Done011
Total92698

Merged error: 18.7b

Counts
98 → 6

regimes157.0ms

Accuracy

59.7% (8.4b remaining)

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

bsearch81.0ms

Steps
ItersRangePoint
9
-6.547406122260382e-303
-6.7102388536115e-309
-7.119203138679085e-309
6
-3.245969229886643e+141
-4.4689590379865175e+140
-5.416049338382167e+140

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04726
15126
25126

end0.0ms

sample685.0ms

Algorithm
intervals
Results
208.0ms6021×body80valid
138.0ms723×body2560valid
80.0ms479×body1280valid
71.0ms292×body5120valid
33.0ms273×body640valid
13.0ms144×body320valid
4.0ms68×body160valid