Details

Time bar (total: 2.6s)

sample42.0ms

Algorithm
intervals
Results
10.0ms198×body80valid
8.0ms24×body2560valid
4.0msbody5120valid
4.0ms13×body1280valid
2.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.3b

localize12.0ms

Local error

Found 2 expressions with local error:

0.5b
(+ (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite20.0ms

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

series83.0ms

Counts
2 → 6
Calls
2 calls:
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify85.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 4 (82.0ms)

IterNodesCost
0155205
1421183
21067180
33190179
45001178

prune129.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 6.8b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.5b
(+ (hypot re im) re)

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative hypot-udef flip3-+ sum-log flip-+ distribute-lft-out
Counts
2 → 27
Calls
2 calls:
0.0ms
(hypot re im)
3.0ms
(+ (hypot re im) re)

series105.0ms

Counts
2 → 6
Calls
2 calls:
47.0ms
(hypot re im)
57.0ms
(+ (hypot re im) re)

simplify72.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (13.0ms)

IterNodesCost
08785
117679
238079
3103078
4314378
5500178

prune99.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.8b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
0.4b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.0b
(+ (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
19×pow1
18×sqrt-prod
12×add-cube-cbrt *-un-lft-identity
sqrt-pow1 pow1/2 swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
pow-prod-down pow-sqr
hypot-udef
+-commutative pow2 fma-def flip3-+ pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 85
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
7.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
5.0ms
(+ (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

series194.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(hypot re im)
47.0ms
(hypot re im)
48.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
55.0ms
(+ (* (sqrt (hypot re im)) (sqrt (hypot re im))) re)

simplify158.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 3 (152.0ms)

IterNodesCost
0172342
1600287
23388275
35001274

prune219.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 6.8b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(hypot re im)
0.0b
(hypot re im)
13.9b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
sqrt-prod
hypot-udef
rem-sqrt-square sqrt-pow1 pow1/2 fma-udef
Counts
4 → 45
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
0.0ms
(hypot re im)
0.0ms
(hypot re im)
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series315.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(sqrt (hypot re im))
45.0ms
(hypot re im)
47.0ms
(hypot re im)
139.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify45.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 3 (41.0ms)

IterNodesCost
0128219
1344188
21419179
35002174

prune174.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 6.8b

regimes91.0ms

Accuracy

24.5% (4.5b remaining)

Error of 11.9b against oracle of 7.4b and baseline of 13.4b

bsearch37.0ms

Steps
ItersRangePoint
6
-2.0199682458946676e+123
-4.2189696159604594e+122
-5.904936880911102e+122

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02412
12412

end0.0ms

sample650.0ms

Algorithm
intervals
Results
188.0ms6005×body80valid
140.0ms735×body2560valid
73.0ms460×body1280valid
67.0ms296×body5120valid
33.0ms283×body640valid
13.0ms144×body320valid
5.0ms77×body160valid