Details

Time bar (total: 4.4s)

sample27.0ms

Algorithm
intervals
Results
6.0ms190×body80valid
4.0ms24×body2560valid
3.0ms14×body5120valid
2.0ms15×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 41.8b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
34.5b
(sqrt (+ (* re re) (* im im)))

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt sqrt-prod
add-cube-cbrt fma-def
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 flip3-+ add-cbrt-cube flip-+ log1p-expm1-u
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log hypot-def distribute-lft-out
Counts
3 → 53
Calls
3 calls:
23.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
35.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series251.0ms

Counts
3 → 9
Calls
3 calls:
171.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
42.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify74.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune181.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 5.8b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
0.6b
(+ re (hypot re im))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
associate-*r/ add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def sqrt-pow1 pow-prod-down
add-exp-log expm1-log1p-u flip3-+ sqrt-div add-cbrt-cube flip-+ log1p-expm1-u
+-commutative pow1/2 sum-log sqrt-prod distribute-lft-out
Counts
2 → 33
Calls
2 calls:
26.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
6.0ms
(+ re (hypot re im))

series236.0ms

Counts
2 → 6
Calls
2 calls:
183.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
53.0ms
(+ re (hypot re im))

simplify81.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0194185
1791167
23233161
35001161

prune122.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 5.8b

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
0.4b
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))
0.6b
(+ re (hypot re im))
0.6b
(+ re (hypot re im))

rewrite199.0ms

Algorithm
rewrite-expression-head
Rules
148×sqrt-pow1
146×pow1
76×pow-prod-down
31×sqrt-prod
30×associate-*r/
28×add-sqr-sqrt sqrt-div
22×pow1/2
21×pow-prod-up
19×*-un-lft-identity
15×add-cube-cbrt
13×pow-sqr
flip3-+ swap-sqr flip-+
add-log-exp
associate-*r* associate-*l*
add-exp-log fma-def add-cbrt-cube
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
+-commutative associate-*l/ sum-log distribute-lft-out
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 154
Calls
4 calls:
22.0ms
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
158.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))
5.0ms
(+ re (hypot re im))
6.0ms
(+ re (hypot re im))

series506.0ms

Counts
4 → 12
Calls
4 calls:
214.0ms
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
183.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))
57.0ms
(+ re (hypot re im))
52.0ms
(+ re (hypot re im))

simplify71.0ms

Algorithm
egg-herbie
Counts
166 → 166
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
04081059
11919954
25001921

prune378.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 5.7b

localize17.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ re (hypot re im))
0.6b
(+ re (hypot re im))
0.6b
(+ re (hypot re im))
0.7b
(pow (cbrt (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))) 4)

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
17×*-un-lft-identity
11×add-sqr-sqrt add-cube-cbrt
10×unpow-prod-down add-log-exp
fma-def
cbrt-prod
pow1 add-exp-log sqrt-prod
expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative pow-unpow flip3-+ sum-log flip-+ distribute-lft-out
pow-pow
pow-to-exp pow1/3 pow-exp sqr-pow
Counts
4 → 78
Calls
4 calls:
9.0ms
(+ re (hypot re im))
5.0ms
(+ re (hypot re im))
5.0ms
(+ re (hypot re im))
9.0ms
(pow (cbrt (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))) 4)

series587.0ms

Counts
4 → 12
Calls
4 calls:
57.0ms
(+ re (hypot re im))
51.0ms
(+ re (hypot re im))
58.0ms
(+ re (hypot re im))
421.0ms
(pow (cbrt (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))) 4)

simplify140.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 3 (132.0ms)

IterNodesCost
0312567
11055529
24450520
35001517

prune398.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 5.7b

regimes236.0ms

Accuracy

31% (4.2b remaining)

Error of 11.4b against oracle of 7.2b and baseline of 13.3b

bsearch55.0ms

Steps
ItersRangePoint
9
-1.2163543548218358e+117
-2.505330959308098e+109
-1.1118756429176863e+114

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02813
13013
23013

end0.0ms

sample691.0ms

Algorithm
intervals
Results
186.0ms6027×body80valid
130.0ms692×body2560valid
86.0ms516×body1280valid
59.0ms267×body5120valid
35.0ms280×body640valid
13.0ms147×body320valid
4.0ms71×body160valid