Details

Time bar (total: 18.8s)

sample47.0ms

Algorithm
intervals
Results
11.0ms15×body640valid
10.0ms197×body80valid
6.0ms18×body2560valid
3.0msbody5120valid
2.0msbody1280valid
1.0msbody320valid
0.0msbody160valid

simplify20.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
01215
12410
23010
33210
done3210

prune9.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 12.6b

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite26.0ms

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

series463.0ms

Counts
3 → 9
Calls
3 calls:
73.0ms
(hypot re im)
273.0ms
(sqrt (* (+ re (hypot re im)) 2.0))
118.0ms
(+ re (hypot re im))

simplify4.8s

Counts
51 → 51
Iterations

Useful iterations: 4 (2.2s)

IterNodesCost
086414
1187377
2459354
31219345
43260344
done5001344

prune224.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 12.3b

localize29.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (+ re (hypot re im)))
0.0b
(hypot re im)
0.4b
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
0.7b
(+ re (hypot re im))

rewrite82.0ms

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

series631.0ms

Counts
4 → 12
Calls
4 calls:
181.0ms
(sqrt (+ re (hypot re im)))
92.0ms
(hypot re im)
266.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
92.0ms
(+ re (hypot re im))

simplify3.7s

Counts
93 → 93
Iterations

Useful iterations: done (3.7s)

IterNodesCost
0135898
1298819
2742778
31970766
done5000764

prune357.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 12.3b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.2b
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
0.2b
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
0.7b
(+ re (hypot re im))

rewrite144.0ms

Algorithm
rewrite-expression-head
Rules
31×sqrt-prod
25×add-sqr-sqrt
18×associate-*r*
17×*-un-lft-identity
16×pow1
13×add-cube-cbrt
11×add-exp-log add-cbrt-cube
10×pow-prod-down
associate-*l*
associate-*l/ add-log-exp unswap-sqr
sqrt-pow1 pow1/2
expm1-log1p-u sqrt-div prod-exp cbrt-unprod log1p-expm1-u
fma-def flip3-+ sqrt-unprod flip-+
*-commutative distribute-lft-out
+-commutative hypot-udef sum-log
Counts
4 → 98
Calls
4 calls:
0.0ms
(hypot re im)
91.0ms
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
43.0ms
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
7.0ms
(+ re (hypot re im))

series832.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(hypot re im)
302.0ms
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
348.0ms
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
99.0ms
(+ re (hypot re im))

simplify3.0s

Counts
110 → 110
Iterations

Useful iterations: done (3.0s)

IterNodesCost
01571408
13751181
210871086
333491074
done50001071

prune531.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 12.3b

localize28.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.0b
(pow (* (+ re (hypot re im)) 2.0) 1/2)
0.7b
(+ re (hypot re im))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-exp-log
add-sqr-sqrt add-cube-cbrt add-log-exp
expm1-log1p-u pow-unpow fma-def add-cbrt-cube log1p-expm1-u
pow-pow pow-exp
+-commutative pow-to-exp unpow-prod-down hypot-udef flip3-+ pow-prod-down prod-exp sum-log flip-+ distribute-lft-out unpow1/2 sqr-pow
Counts
3 → 47
Calls
3 calls:
1.0ms
(hypot re im)
21.0ms
(pow (* (+ re (hypot re im)) 2.0) 1/2)
12.0ms
(+ re (hypot re im))

series367.0ms

Counts
3 → 9
Calls
3 calls:
61.0ms
(hypot re im)
228.0ms
(pow (* (+ re (hypot re im)) 2.0) 1/2)
78.0ms
(+ re (hypot re im))

simplify3.3s

Counts
56 → 56
Iterations

Useful iterations: done (3.3s)

IterNodesCost
0101460
1221406
2488387
31233381
43993373
done5000372

prune182.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 6.5b

regimes108.0ms

bsearch2.0ms