Details

Time bar (total: 3.7s)

sample51.0ms

Algorithm
intervals
Results
19.0ms190×body80valid
8.0ms19×body2560valid
6.0ms18×body1280valid
4.0msbody5120valid
4.0ms13×body640valid
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: 36.6b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
26.4b
(sqrt (+ (* re re) (* im im)))

rewrite24.0ms

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

series118.0ms

Counts
3 → 9
Calls
3 calls:
32.0ms
(+ (* re re) (* im im))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify68.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune177.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 6.5b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
1.1b
(+ (hypot re im) re)

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative hypot-udef flip3-+ sum-log flip-+ distribute-lft-out
Counts
2 → 27
Calls
2 calls:
0.0ms
(hypot re im)
3.0ms
(+ (hypot re im) re)

series107.0ms

Counts
2 → 6
Calls
2 calls:
46.0ms
(hypot re im)
61.0ms
(+ (hypot re im) re)

simplify74.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (14.0ms)

IterNodesCost
08785
117679
238079
3103078
4314378
5500178

prune103.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.4b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
16.1b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite2.0ms

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

series288.0ms

Counts
3 → 9
Calls
3 calls:
97.0ms
(hypot re im)
46.0ms
(hypot re im)
144.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify49.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 3 (15.0ms)

IterNodesCost
061142
1158121
2456117
31647114
45002114

prune144.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 6.4b

localize18.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
16.1b
(fma (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) re)

rewrite3.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 (hypot re im))
0.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) re)

series490.0ms

Counts
4 → 12
Calls
4 calls:
112.0ms
(cbrt (hypot re im))
115.0ms
(cbrt (hypot re im))
120.0ms
(cbrt (hypot re im))
143.0ms
(fma (sqrt (hypot re im)) (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) re)

simplify138.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (133.0ms)

IterNodesCost
0100381
1249336
2841330
34138294
45001282

prune225.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 6.4b

regimes112.0ms

Accuracy

34.9% (4.2b remaining)

Error of 11.6b against oracle of 7.5b and baseline of 13.9b

bsearch57.0ms

Steps
ItersRangePoint
8
-3.758434163976895e-83
-9.752254444540214e-88
-2.6992662708432965e-84

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02412
12412

end0.0ms

sample1.4s

Algorithm
intervals
Results
541.0ms5951×body80valid
298.0ms722×body2560valid
168.0ms482×body1280valid
141.0ms294×body5120valid
82.0ms304×body640valid
34.0ms165×body320valid
14.0ms82×body160valid