Details

Time bar (total: 3.1s)

sample25.0ms

Algorithm
intervals
Results
6.0ms193×body80valid
4.0ms23×body2560valid
2.0ms15×body1280valid
2.0msbody5120valid
1.0msbody320valid
1.0msbody640valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.2b

localize13.0ms

Local error

Found 2 expressions with local error:

0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
30.5b
(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:
16.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series82.0ms

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

simplify84.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 4 (81.0ms)

IterNodesCost
0155205
1421183
21067180
33190179
45001178

prune128.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 6.4b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.9b
(+ (* (sqrt 1) (hypot re im)) re)

rewrite4.0ms

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

series106.0ms

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

simplify95.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 4 (92.0ms)

IterNodesCost
0111124
1285109
2788106
33168104
45001103

prune98.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.3b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.0b
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

rewrite24.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)))
15.0ms
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

series194.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(hypot re im)
48.0ms
(hypot re im)
43.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
59.0ms
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

simplify176.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 3 (170.0ms)

IterNodesCost
0186390
1680325
24049286
35001282

prune247.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 6.3b

localize17.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
0.5b
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
7.0b
(+ (* (sqrt 1) (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im))))) re)

rewrite90.0ms

Algorithm
rewrite-expression-head
Rules
22×cbrt-prod add-sqr-sqrt
14×add-cube-cbrt *-un-lft-identity
11×pow1
pow1/3
add-exp-log swap-sqr associate-*r* associate-*l* add-log-exp
expm1-log1p-u add-cbrt-cube log1p-expm1-u unswap-sqr
pow-prod-down pow-sqr pow-prod-up
+-commutative pow2 fma-def flip3-+ pow-plus prod-exp sum-log *-commutative cbrt-unprod flip-+
Counts
4 → 82
Calls
4 calls:
0.0ms
(cbrt (hypot re im))
0.0ms
(cbrt (hypot re im))
6.0ms
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
81.0ms
(+ (* (sqrt 1) (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im))))) re)

series394.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(cbrt (hypot re im))
113.0ms
(cbrt (hypot re im))
117.0ms
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
58.0ms
(+ (* (sqrt 1) (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im))))) re)

simplify41.0ms

Algorithm
egg-herbie
Counts
94 → 94
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0243737
1987659
25001606

prune354.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 6.3b

regimes119.0ms

Accuracy

27.4% (4.3b remaining)

Error of 11.6b against oracle of 7.2b and baseline of 13.2b

bsearch51.0ms

Steps
ItersRangePoint
10
-6.858272939628203e-63
-1.3986633063200357e-74
-6.766096896247467e-63

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03014
13014

end0.0ms

sample671.0ms

Algorithm
intervals
Results
193.0ms6020×body80valid
143.0ms694×body2560valid
75.0ms489×body1280valid
74.0ms294×body5120valid
34.0ms283×body640valid
14.0ms149×body320valid
4.0ms71×body160valid