Details

Time bar (total: 2.7s)

sample37.0ms

Algorithm
intervals
Results
8.0ms177×body80valid
7.0ms28×body2560valid
4.0ms12×body640valid
4.0ms20×body1280valid
3.0ms11×body5120valid
1.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.9b

Counts
2 → 1

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite18.0ms

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

series248.0ms

Counts
3 → 9
Calls
3 calls:
167.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
43.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify66.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune136.0ms

Filtered
49 candidates to 42 candidates (85.7%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New42749
Fresh000
Picked101
Done000
Total43750

Merged error: 19.3b

Counts
50 → 7

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.5b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
28.1b
(sqrt (+ (* re re) (* im im)))
28.1b
(sqrt (+ (* re re) (* im im)))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series153.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
44.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune254.0ms

Filtered
136 candidates to 73 candidates (53.7%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1342136
Fresh066
Picked101
Done000
Total1358143

Merged error: 19.3b

Counts
143 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
7.1b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
29.1b
(cbrt (+ (* re re) (* im im)))
29.1b
(cbrt (+ (* re re) (* im im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ flip-+
associate-*l* unswap-sqr
pow1/3 sqrt-div associate-*r/
+-commutative pow-prod-down prod-exp sum-log *-commutative cbrt-unprod
Counts
4 → 65
Calls
4 calls:
8.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series365.0ms

Counts
4 → 12
Calls
4 calls:
105.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
78.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
91.0ms
(cbrt (+ (* re re) (* im im)))
90.0ms
(cbrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0323928
11214868
25002841

prune267.0ms

Filtered
77 candidates to 66 candidates (85.7%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New74377
Fresh257
Picked101
Done000
Total77885

Merged error: 19.3b

Counts
85 → 8

localize20.0ms

Local error

Found 4 expressions with local error:

29.1b
(cbrt (+ (* re re) (* im im)))
29.1b
(cbrt (+ (* re re) (* im im)))
29.1b
(cbrt (+ (* re re) (* im im)))
29.1b
(cbrt (+ (* re re) (* im im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
add-sqr-sqrt add-cube-cbrt cbrt-div *-un-lft-identity
pow1 add-exp-log flip3-+ pow1/3 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 52
Calls
4 calls:
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series363.0ms

Counts
4 → 12
Calls
4 calls:
91.0ms
(cbrt (+ (* re re) (* im im)))
91.0ms
(cbrt (+ (* re re) (* im im)))
90.0ms
(cbrt (+ (* re re) (* im im)))
91.0ms
(cbrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0123488
1408452
21386444
35001444

prune323.0ms

Filtered
64 candidates to 60 candidates (93.8%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New63164
Fresh167
Picked011
Done000
Total64872

Merged error: 19.3b

Counts
72 → 8

regimes191.0ms

bsearch3.0ms

Profiling

Loading profile data...