Details

Time bar (total: 4.4s)

sample25.0ms

Algorithm
intervals
Results
6.0ms187×body80valid
4.0ms24×body2560valid
3.0ms20×body1280valid
2.0msbody5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt add-log-exp
add-cube-cbrt fma-def sqrt-prod
add-exp-log expm1-log1p-u flip3-+ sqrt-div add-cbrt-cube flip-+ log1p-expm1-u
sqrt-pow1
+-commutative pow1/2 associate-*r/ sum-log
rem-sqrt-square pow-prod-down hypot-def distribute-lft-out
Counts
4 → 67
Calls
4 calls:
3.0ms
(+ (* re re) (* im im))
14.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series300.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(+ (* re re) (* im im))
185.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
51.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune230.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.8b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
0.8b
(+ re (hypot re im))

rewrite14.0ms

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

series257.0ms

Counts
2 → 6
Calls
2 calls:
197.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
61.0ms
(+ re (hypot re im))

simplify82.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0194185
1791167
23233161
35001161

prune116.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 7.8b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
0.4b
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))
0.8b
(+ re (hypot re im))
0.8b
(+ re (hypot re im))

rewrite104.0ms

Algorithm
rewrite-expression-head
Rules
148×sqrt-pow1
146×pow1
76×pow-prod-down
31×sqrt-prod
30×associate-*r/
28×add-sqr-sqrt sqrt-div
22×pow1/2
21×pow-prod-up
19×*-un-lft-identity
15×add-cube-cbrt
13×pow-sqr
flip3-+ swap-sqr flip-+
add-log-exp
associate-*r* associate-*l*
add-exp-log fma-def add-cbrt-cube
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
+-commutative associate-*l/ sum-log distribute-lft-out
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 154
Calls
4 calls:
12.0ms
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
79.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))
2.0ms
(+ re (hypot re im))
3.0ms
(+ re (hypot re im))

series558.0ms

Counts
4 → 12
Calls
4 calls:
241.0ms
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
197.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))
63.0ms
(+ re (hypot re im))
58.0ms
(+ re (hypot re im))

simplify66.0ms

Algorithm
egg-herbie
Counts
166 → 166
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
04081059
11919954
25001921

prune372.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 7.8b

localize11.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt re)
0.6b
(cbrt re)
0.6b
(cbrt re)
16.3b
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
pow1/3
fma-udef
Counts
4 → 49
Calls
4 calls:
0.0ms
(cbrt re)
5.0ms
(cbrt re)
1.0ms
(cbrt re)
0.0ms
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

series746.0ms

Counts
4 → 12
Calls
4 calls:
190.0ms
(cbrt re)
182.0ms
(cbrt re)
182.0ms
(cbrt re)
190.0ms
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

simplify70.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (15.0ms)

IterNodesCost
060220
1121195
2359187
31734185
45001185

prune203.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 7.7b

regimes197.0ms

Accuracy

-8.5% (6.8b remaining)

Error of 14.5b against oracle of 7.6b and baseline of 13.9b

bsearch181.0ms

Steps
ItersRangePoint
7
669068328165.988
122937128512558.11
1629294977609.3977
10
2.2020631136780537e-106
4.626226025066689e-90
2.969008484960743e-98
7
-1.6028447693892302e-70
-9.28747149766958e-72
-1.4219463292392273e-70
8
-2.7139041588347048e+32
-1.903026018846269e+29
-3.424014799259077e+29

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05445
16045
26045

end0.0ms

sample656.0ms

Algorithm
intervals
Results
199.0ms5965×body80valid
135.0ms712×body2560valid
83.0ms529×body1280valid
61.0ms266×body5120valid
35.0ms290×body640valid
14.0ms160×body320valid
5.0ms78×body160valid