Details

Time bar (total: 3.8s)

sample42.0ms

Algorithm
intervals
Results
12.0ms181×body80valid
10.0ms30×body2560valid
5.0ms18×body1280valid
3.0msbody5120valid
2.0ms11×body640valid
1.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: 38.3b

localize13.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.0b
(+ (sqrt (+ (* re re) (* im im))) re)
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite30.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:
11.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series256.0ms

Counts
3 → 9
Calls
3 calls:
173.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify73.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune175.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 9.1b

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (hypot re im) re)))
0.8b
(+ (hypot re im) re)

rewrite7.0ms

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

series242.0ms

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

simplify52.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0183173
1519156
21741150
35001148

prune101.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 8.9b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (+ (hypot re im) re))
0.3b
(* (sqrt 2.0) (sqrt (+ (hypot re im) re)))
0.8b
(+ (hypot re im) re)

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×*-un-lft-identity sqrt-prod
add-cube-cbrt
pow1
associate-*r*
associate-*l*
add-exp-log add-cbrt-cube add-log-exp
sqrt-div unswap-sqr
expm1-log1p-u fma-def sqrt-pow1 flip3-+ pow1/2 pow-prod-down flip-+ log1p-expm1-u distribute-lft-out
associate-*r/
+-commutative rem-sqrt-square sqrt-unprod prod-exp sum-log *-commutative cbrt-unprod hypot-def
Counts
3 → 71
Calls
3 calls:
4.0ms
(sqrt (+ (hypot re im) re))
15.0ms
(* (sqrt 2.0) (sqrt (+ (hypot re im) re)))
3.0ms
(+ (hypot re im) re)

series371.0ms

Counts
3 → 9
Calls
3 calls:
123.0ms
(sqrt (+ (hypot re im) re))
194.0ms
(* (sqrt 2.0) (sqrt (+ (hypot re im) re)))
54.0ms
(+ (hypot re im) re)

simplify107.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 3 (101.0ms)

IterNodesCost
0287433
1995403
24338388
35001387

prune194.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 8.9b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(sqrt (hypot re im))
0.2b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
18.0b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite5.0ms

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

series556.0ms

Counts
4 → 12
Calls
4 calls:
87.0ms
(sqrt (hypot re im))
88.0ms
(sqrt (hypot re im))
243.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
137.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify78.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 3 (73.0ms)

IterNodesCost
0194379
1555327
22601302
35001300

prune174.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 8.9b

regimes69.0ms

Accuracy

24.2% (4.2b remaining)

Error of 11.6b against oracle of 7.5b and baseline of 13.0b

bsearch48.0ms

Steps
ItersRangePoint
7
-2.1585595910751272e-09
-8.027944005163871e-11
-5.059081741722492e-10

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02312
12312

end0.0ms

sample1.1s

Algorithm
intervals
Results
410.0ms6082×body80valid
233.0ms683×body2560valid
134.0ms479×body1280valid
106.0ms261×body5120valid
55.0ms255×body640valid
28.0ms162×body320valid
9.0ms78×body160valid