Details

Time bar (total: 4.1s)

sample27.0ms

Algorithm
intervals
Results
6.0ms190×body80valid
4.0ms24×body2560valid
3.0ms14×body5120valid
2.0ms15×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 41.8b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
34.5b
(sqrt (+ (* re re) (* im im)))

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

series242.0ms

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

simplify69.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (64.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune157.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 20.9b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
10.1b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.5b
(sqrt (+ (* re re) (* im im)))
34.5b
(sqrt (+ (* re re) (* im im)))

rewrite102.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:
52.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
30.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series145.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
47.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
32.0ms
(sqrt (+ (* re re) (* im im)))
33.0ms
(sqrt (+ (* re re) (* im im)))

simplify47.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune296.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 20.9b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(log (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
3.8b
(exp (log (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))
34.5b
(sqrt (+ (* re re) (* im im)))

rewrite151.0ms

Algorithm
rewrite-expression-head
Rules
13×pow1
10×*-un-lft-identity
add-sqr-sqrt
add-cube-cbrt log-prod log-pow
exp-prod
sqrt-div add-log-exp
add-exp-log sqrt-pow1 sqrt-prod
log-div flip3-+ associate-*r/ exp-sum add-cbrt-cube flip-+
pow1/2
exp-diff pow-prod-down
+-commutative rem-sqrt-square rem-log-exp sum-log rem-exp-log distribute-lft-out
Counts
4 → 66
Calls
4 calls:
28.0ms
(log (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))))
27.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
86.0ms
(exp (log (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series542.0ms

Counts
4 → 12
Calls
4 calls:
296.0ms
(log (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))))
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
165.0ms
(exp (log (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))))
33.0ms
(sqrt (+ (* re re) (* im im)))

simplify103.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (96.0ms)

IterNodesCost
0359711
11067644
23676620
35001614

prune248.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 20.9b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
34.5b
(sqrt (+ (* re re) (* im im)))

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

series244.0ms

Counts
3 → 9
Calls
3 calls:
166.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
33.0ms
(sqrt (+ (* re re) (* im im)))

simplify68.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune119.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 20.9b

regimes572.0ms

Accuracy

56.9% (9.0b remaining)

Error of 26.7b against oracle of 17.7b and baseline of 38.6b

bsearch76.0ms

Steps
ItersRangePoint
10
5.021239776809263e+39
2.034575374228523e+56
1.9187886873923672e+56
7
-3.866095542241674e-287
-7.929187368858259e-289
-8.0180108365289025e-289

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03722
13722

end0.0ms

sample692.0ms

Algorithm
intervals
Results
190.0ms6027×body80valid
128.0ms692×body2560valid
77.0ms516×body1280valid
65.0ms267×body5120valid
38.0ms280×body640valid
13.0ms147×body320valid
4.0ms71×body160valid