Details

Time bar (total: 3.5s)

sample37.0ms

Algorithm
intervals
Results
9.0ms184×body80valid
7.0ms27×body2560valid
6.0ms15×body1280valid
3.0msbody5120valid
2.0ms14×body320valid
1.0msbody640valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

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: 36.0b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
26.5b
(sqrt (+ (* re re) (* im im)))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-sqr-sqrt add-log-exp
pow1 add-cube-cbrt sqrt-prod
add-exp-log flip3-+ sqrt-div add-cbrt-cube flip-+
+-commutative rem-sqrt-square sqrt-pow1 pow1/2 sum-log distribute-lft-out
Counts
2 → 27
Calls
2 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series82.0ms

Counts
2 → 6
Calls
2 calls:
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify79.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (28.0ms)

IterNodesCost
0141198
1358186
2866182
32557181
45001181

prune105.0ms

Filtered
33 candidates to 29 candidates (87.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New28533
Fresh000
Picked101
Done000
Total29534

Merged error: 16.4b

Counts
34 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.0b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.5b
(sqrt (+ (* re re) (* im im)))
26.5b
(sqrt (+ (* re re) (* im im)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series157.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
44.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
02671096
1974974
25001950

prune277.0ms

Filtered
136 candidates to 74 candidates (54.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1342136
Fresh044
Picked011
Done000
Total1347141

Merged error: 16.4b

Counts
141 → 7

localize20.0ms

Local error

Found 4 expressions with local error:

26.5b
(sqrt (+ (* re re) (* im im)))
27.4b
(cbrt (+ (* re re) (* im im)))
27.4b
(cbrt (+ (* re re) (* im im)))
27.4b
(cbrt (+ (* re re) (* im im)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-div
pow1
add-exp-log flip3-+ add-cbrt-cube flip-+ add-log-exp
pow1/3 sqrt-prod
sqrt-div
rem-sqrt-square sqrt-pow1 pow1/2
Counts
4 → 54
Calls
4 calls:
4.0ms
(sqrt (+ (* 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)))

series314.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(sqrt (+ (* re re) (* im im)))
91.0ms
(cbrt (+ (* re re) (* im im)))
99.0ms
(cbrt (+ (* re re) (* im im)))
91.0ms
(cbrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0141466
1440436
21469430
35002429

prune344.0ms

Filtered
66 candidates to 60 candidates (90.9%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New66066
Fresh055
Picked011
Done011
Total66773

Merged error: 16.4b

Counts
73 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite17.0ms

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

series147.0ms

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

simplify142.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (136.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune302.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New72072
Fresh044
Picked011
Done022
Total72779

Merged error: 16.4b

Counts
79 → 7

regimes195.0ms

Accuracy

54.8% (9.6b remaining)

Error of 27.8b against oracle of 18.2b and baseline of 39.4b

bsearch100.0ms

Steps
ItersRangePoint
9
4.0160950957056723e+121
1.2392158031794936e+127
4.493210959094433e+125
2
1.834686345066682e-161
2.1192662046019758e-161
1.8702588275085934e-161
9
2.852999908040723e-205
7.330065439830617e-197
7.184067081095878e-197

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04333
14333

end0.0ms

sample907.0ms

Algorithm
intervals
Results
285.0ms6005×body80valid
197.0ms700×body2560valid
114.0ms497×body1280valid
93.0ms267×body5120valid
50.0ms283×body640valid
20.0ms149×body320valid
9.0ms99×body160valid