Details

Time bar (total: 2.6s)

sample30.0ms

Algorithm
intervals
Results
8.0ms26×body2560valid
6.0ms177×body80valid
3.0ms20×body1280valid
2.0msbody5120valid
1.0ms10×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

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.8b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.8b
(+ (sqrt (+ (* re re) (* im im))) re)
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite23.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)))

series109.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* re re) (* im im))
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.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

prune182.0ms

Filtered
61 candidates to 53 candidates (86.9%)
Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 8.5b

localize7.0ms

Local error

Found 1 expressions with local error:

1.8b
(+ (hypot re im) re)

rewrite3.0ms

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

series54.0ms

Counts
1 → 3
Calls
1 calls:
54.0ms
(+ (hypot re im) re)

simplify71.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (13.0ms)

IterNodesCost
07461
116255
235055
395254
4305154
5500154

prune69.0ms

Filtered
20 candidates to 18 candidates (90.0%)
Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 8.4b

localize11.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (+ (hypot re im) re))
1.8b
(+ (hypot re im) re)
1.8b
(+ (hypot re im) re)
1.8b
(+ (hypot re im) re)

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
16×*-un-lft-identity
10×add-log-exp
fma-def
add-sqr-sqrt add-cube-cbrt
pow1 add-exp-log cbrt-prod expm1-log1p-u flip3-+ add-cbrt-cube flip-+ log1p-expm1-u distribute-lft-out
+-commutative sum-log
cbrt-div
pow1/3
Counts
4 → 67
Calls
4 calls:
2.0ms
(cbrt (+ (hypot re im) re))
3.0ms
(+ (hypot re im) re)
3.0ms
(+ (hypot re im) re)
3.0ms
(+ (hypot re im) re)

series314.0ms

Counts
4 → 12
Calls
4 calls:
148.0ms
(cbrt (+ (hypot re im) re))
56.0ms
(+ (hypot re im) re)
53.0ms
(+ (hypot re im) re)
57.0ms
(+ (hypot re im) re)

simplify43.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (38.0ms)

IterNodesCost
0180311
1447286
21542283
35002277

prune271.0ms

Filtered
79 candidates to 71 candidates (89.9%)
Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 8.4b

localize11.0ms

Local error

Found 1 expressions with local error:

18.9b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite1.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 fma-udef log1p-expm1-u add-log-exp
Counts
1 → 10
Calls
1 calls:
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series136.0ms

Counts
1 → 3
Calls
1 calls:
136.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify45.0ms

Algorithm
egg-herbie
Counts
13 → 13
Iterations

Useful iterations: 3 (12.0ms)

IterNodesCost
04588
111873
238769
3153066
4500166

prune36.0ms

Filtered
13 candidates to 11 candidates (84.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 8.4b

regimes189.0ms

Accuracy

17.5% (4.7b remaining)

Error of 12.0b against oracle of 7.2b and baseline of 13.0b

bsearch136.0ms

Steps
ItersRangePoint
5
-3.604041719607414e-89
-1.3548869531543663e-89
-3.3945979597993974e-89
10
-5.991532222681368e+46
-9.78963830731076e+36
-2.8979168285597056e+45
9
-1.5013042432692243e+90
-6.317617841719785e+84
-2.1233934513353364e+89

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
03324
13612
23912
33912

end0.0ms

sample715.0ms

Algorithm
intervals
Results
214.0ms6080×body80valid
142.0ms699×body2560valid
82.0ms447×body1280valid
68.0ms262×body5120valid
38.0ms266×body640valid
15.0ms154×body320valid
6.0ms92×body160valid