Details

Time bar (total: 2.7s)

sample29.0ms

Algorithm
intervals
Results
9.0ms199×body80valid
4.0ms17×body2560valid
3.0ms16×body1280valid
2.0msbody5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.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: 37.4b

Counts
2 → 1

localize17.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
28.1b
(sqrt (+ (* re re) (* im im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
8.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series268.0ms

Counts
3 → 9
Calls
3 calls:
181.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
51.0ms
(- (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify76.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune141.0ms

Filtered
52 candidates to 42 candidates (80.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New46652
Fresh000
Picked101
Done000
Total47653

Merged error: 15.5b

Counts
53 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
11.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series169.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(- (sqrt (+ (* re re) (* im im))) re)
51.0ms
(- (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify88.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 4 (77.0ms)

IterNodesCost
0135456
1332432
2839424
32503422
45002420

prune206.0ms

Filtered
72 candidates to 56 candidates (77.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New72072
Fresh055
Picked011
Done000
Total72678

Merged error: 15.5b

Counts
78 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
5.7b
(exp (log (sqrt (+ (* re re) (* im im)))))
13.9b
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
28.1b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
10×pow1 *-un-lft-identity
add-cube-cbrt log-prod exp-sum sqrt-prod
exp-prod sqrt-div add-log-exp
add-exp-log sqrt-pow1 add-cbrt-cube
pow1/2 log-pow difference-of-squares
log-div flip3-- flip3-+ exp-diff associate-*r/ flip-- flip-+
sub-neg rem-sqrt-square diff-log pow-prod-down rem-exp-log distribute-lft-out--
Counts
4 → 66
Calls
4 calls:
11.0ms
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
5.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
10.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series306.0ms

Counts
4 → 12
Calls
4 calls:
179.0ms
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
41.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
46.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify79.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0283630
1843573
22616551
35001542

prune211.0ms

Filtered
78 candidates to 58 candidates (74.4%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New71778
Fresh044
Picked101
Done101
Total731184

Merged error: 15.4b

Counts
84 → 11

localize15.0ms

Local error

Found 4 expressions with local error:

0.4b
(* (sqrt 2.0) (sqrt (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
5.7b
(exp (log (sqrt (+ (* re re) (* im im)))))
13.9b
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
28.1b
(sqrt (+ (* re re) (* im im)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
22×sqrt-prod
16×*-un-lft-identity
12×add-cube-cbrt
11×pow1
10×log-prod associate-*r* exp-sum
add-exp-log exp-prod sqrt-div associate-*l* add-cbrt-cube add-log-exp difference-of-squares
sqrt-pow1 pow1/2 unswap-sqr
pow-prod-down log-pow
log-div flip3-- flip3-+ exp-diff associate-*r/ flip-- flip-+ distribute-lft-out--
sub-neg rem-sqrt-square sqrt-unprod diff-log prod-exp *-commutative cbrt-unprod rem-exp-log
Counts
4 → 89
Calls
4 calls:
15.0ms
(* (sqrt 2.0) (sqrt (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
6.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
10.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series307.0ms

Counts
4 → 12
Calls
4 calls:
180.0ms
(* (sqrt 2.0) (sqrt (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
40.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
46.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify124.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 3 (114.0ms)

IterNodesCost
0342917
11173850
24410824
35002818

prune250.0ms

Filtered
101 candidates to 72 candidates (71.3%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New974101
Fresh1910
Picked011
Done000
Total9814112

Merged error: 15.4b

Counts
112 → 14

regimes284.0ms

bsearch3.0ms

Profiling

Loading profile data...