Details

Time bar (total: 3.2s)

sample30.0ms

Algorithm
intervals
Results
6.0ms189×body80valid
5.0ms15×body1280valid
4.0ms19×body2560valid
3.0ms14×body5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify6.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: 37.2b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.5b
(+ (sqrt (+ (* re re) (* im im))) re)
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite16.0ms

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

series115.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(+ (* re re) (* im im))
51.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (59.0ms)

IterNodesCost
0178275
1689252
22017248
35001246

prune136.0ms

Filtered
47 candidates to 38 candidates (80.9%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New40747
Fresh000
Picked101
Done000
Total41748

Merged error: 18.9b

Counts
48 → 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)))))
8.1b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.7b
(sqrt (+ (* re re) (* im im)))
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite48.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:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series168.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
46.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
43.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify50.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
02671096
1974974
25001950

prune286.0ms

Filtered
136 candidates to 72 candidates (52.9%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1324136
Fresh246
Picked101
Done000
Total1358143

Merged error: 18.9b

Counts
143 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite18.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)))

series155.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (+ (* re re) (* im im)))
42.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify141.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (134.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune311.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New72072
Fresh077
Picked011
Done000
Total72880

Merged error: 18.9b

Counts
80 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
13.6b
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
27.7b
(sqrt (+ (* re re) (* im im)))
27.7b
(sqrt (+ (* re re) (* im im)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
42×sqrt-prod
17×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity
12×unpow-prod-down cube-prod
11×sqrt-pow1
10×pow1 sqrt-div
pow-pow
add-log-exp
add-exp-log pow1/2 add-cbrt-cube
flip3-+ flip-+
pow-unpow
cube-div rem-sqrt-square
+-commutative cube-mult pow-to-exp unpow3 pow-exp sum-log sqrt-pow2 rem-cube-cbrt sqr-pow
Counts
4 → 91
Calls
4 calls:
8.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
17.0ms
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series243.0ms

Counts
4 → 12
Calls
4 calls:
119.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
46.0ms
(+ (* (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3) (sqrt (sqrt (sqrt (+ (* re re) (* im im)))))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0394992
11342878
25001845

prune291.0ms

Filtered
103 candidates to 65 candidates (63.1%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1012103
Fresh156
Picked101
Done011
Total1038111

Merged error: 18.9b

Counts
111 → 8

regimes195.0ms

Accuracy

57.5% (9.0b remaining)

Error of 26.7b against oracle of 17.7b and baseline of 38.9b

bsearch90.0ms

Steps
ItersRangePoint
7
5.385851842895965e+128
1.3149157288660681e+131
9.636008637468581e+128
9
2.421478779902882e-177
9.2681278916812e-172
2.457269547281343e-177

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04358
14358

end0.0ms

sample686.0ms

Algorithm
intervals
Results
201.0ms6028×body80valid
134.0ms692×body2560valid
85.0ms497×body1280valid
64.0ms264×body5120valid
39.0ms286×body640valid
20.0ms160×body320valid
7.0ms73×body160valid