Details

Time bar (total: 4.4s)

sample31.0ms

Algorithm
intervals
Results
8.0ms192×body80valid
6.0ms25×body2560valid
3.0ms18×body640valid
2.0msbody1280valid
1.0msbody5120valid
1.0msbody320valid

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: 37.1b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.3b
(+ (sqrt (+ (* re re) (* im im))) re)
27.1b
(sqrt (+ (* re re) (* im im)))

rewrite65.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:
22.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
31.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
10.0ms
(sqrt (+ (* re re) (* im im)))

series237.0ms

Counts
3 → 9
Calls
3 calls:
163.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
40.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify75.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune294.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.4b

localize8.0ms

Local error

Found 2 expressions with local error:

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

rewrite17.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:
7.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
9.0ms
(+ (hypot re im) re)

series230.0ms

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

simplify52.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
0183173
1519156
21741150
35001148

prune157.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 7.3b

localize10.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
15.8b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity sqrt-pow1 add-cbrt-cube log1p-expm1-u add-log-exp
pow1/2 pow-prod-down sqrt-prod fma-udef
Counts
2 → 23
Calls
2 calls:
5.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)

series353.0ms

Counts
2 → 6
Calls
2 calls:
222.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
131.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify46.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0129225
1378193
21445178
35002174

prune161.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.3b

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
0.6b
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
15.5b
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) re)

rewrite14.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*
expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp unswap-sqr
pow-prod-down pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod fma-udef
Counts
4 → 78
Calls
4 calls:
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
11.0ms
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
0.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) re)

series446.0ms

Counts
4 → 12
Calls
4 calls:
102.0ms
(cbrt (hypot re im))
102.0ms
(cbrt (hypot re im))
119.0ms
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
124.0ms
(fma (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)) re)

simplify111.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 3 (105.0ms)

IterNodesCost
0164530
1621474
23153435
35002423

prune487.0ms

Pruning

14 alts after pruning (13 fresh and 1 done)

Merged error: 7.3b

regimes538.0ms

Accuracy

3.5% (5.9b remaining)

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

bsearch200.0ms

Steps
ItersRangePoint
6
3.079568706737843e+117
3.0831907232232414e+118
9.324979180976782e+117
9
0.05496260612073811
15234496.061427226
4.133336329114142
10
-415.9104570848854
-2.5612855498029964e-09
-0.007674033058449952
7
-2.2138820721712034e+132
-9.063407043561957e+130
-1.173715694929761e+131

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
03529
13829
24412
34712
45312
56412
67112
77212
87212

end0.0ms

sample853.0ms

Algorithm
intervals
Results
258.0ms6004×body80valid
176.0ms677×body2560valid
113.0ms523×body1280valid
90.0ms262×body5120valid
48.0ms288×body640valid
21.0ms168×body320valid
6.0ms78×body160valid