Details

Time bar (total: 3.7s)

sample26.0ms

Algorithm
intervals
Results
6.0ms188×body80valid
5.0ms26×body2560valid
3.0ms18×body1280valid
2.0msbody5120valid
1.0ms10×body640valid
0.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.1b

localize12.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)
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite28.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:
11.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series249.0ms

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

simplify67.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune143.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 18.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
7.4b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
27.6b
(cbrt (+ (* re re) (* im im)))
27.6b
(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:
12.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
2.0ms
(cbrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series367.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
79.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
89.0ms
(cbrt (+ (* re re) (* im im)))
91.0ms
(cbrt (+ (* re re) (* im im)))

simplify42.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0323928
11214868
25002841

prune289.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 18.0b

localize19.0ms

Local error

Found 4 expressions with local error:

26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))
27.6b
(cbrt (+ (* re re) (* im im)))
27.6b
(cbrt (+ (* re re) (* im im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 cbrt-prod sqrt-prod
add-exp-log cbrt-div flip3-+ sqrt-div add-cbrt-cube flip-+ add-log-exp
rem-sqrt-square sqrt-pow1 pow1/2 pow1/3
Counts
4 → 56
Calls
4 calls:
6.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series254.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))
92.0ms
(cbrt (+ (* re re) (* im im)))
92.0ms
(cbrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0141444
1440420
21469416
35002414

prune366.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 18.0b

localize30.0ms

Local error

Found 4 expressions with local error:

26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))
27.6b
(cbrt (+ (* re re) (* im im)))
27.6b
(cbrt (+ (* re re) (* im im)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 cbrt-prod sqrt-prod
add-exp-log cbrt-div flip3-+ sqrt-div add-cbrt-cube flip-+ add-log-exp
rem-sqrt-square sqrt-pow1 pow1/2 pow1/3
Counts
4 → 56
Calls
4 calls:
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series262.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))
95.0ms
(cbrt (+ (* re re) (* im im)))

simplify51.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (45.0ms)

IterNodesCost
0141444
1440420
21469416
35002414

prune413.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 18.0b

regimes195.0ms

Accuracy

58.6% (8.8b remaining)

Error of 26.8b against oracle of 18.0b and baseline of 39.3b

bsearch102.0ms

Steps
ItersRangePoint
10
3.070645734072953e+74
1.5848411429422667e+86
2.5975290754985087e+85
9
-1.2356307952735333e-300
-8.537658570634138e-307
-8.679895838128237e-307

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04545
14545

end0.0ms

sample676.0ms

Algorithm
intervals
Results
201.0ms6010×body80valid
143.0ms747×body2560valid
77.0ms476×body1280valid
69.0ms283×body5120valid
39.0ms275×body640valid
13.0ms137×body320valid
4.0ms72×body160valid