Details

Time bar (total: 3.6s)

sample27.0ms

Algorithm
intervals
Results
6.0ms189×body80valid
5.0ms27×body2560valid
4.0ms15×body5120valid
2.0ms11×body1280valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

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: 41.3b

localize10.0ms

Local error

Found 3 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
31.6b
(sqrt (+ (* re re) (* im im)))

rewrite21.0ms

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

series265.0ms

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

simplify77.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune189.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.3b

localize11.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (hypot re im) re)))
0.9b
(+ (hypot re im) re)

rewrite9.0ms

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

series253.0ms

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

simplify49.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0183173
1519156
21741150
35001148

prune110.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 7.3b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(log (sqrt (* 2.0 (+ (hypot re im) re))))
0.2b
(sqrt (* 2.0 (+ (hypot re im) re)))
0.9b
(+ (hypot re im) re)
3.7b
(exp (log (sqrt (* 2.0 (+ (hypot re im) re)))))

rewrite22.0ms

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

series771.0ms

Counts
4 → 12
Calls
4 calls:
332.0ms
(log (sqrt (* 2.0 (+ (hypot re im) re))))
189.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
60.0ms
(+ (hypot re im) re)
191.0ms
(exp (log (sqrt (* 2.0 (+ (hypot re im) re)))))

simplify88.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 3 (80.0ms)

IterNodesCost
0309531
1832484
23111461
35003454

prune255.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.3b

localize10.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
16.4b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity sqrt-pow1 add-cbrt-cube log1p-expm1-u add-log-exp
pow1/2 pow-prod-down sqrt-prod fma-udef
Counts
2 → 23
Calls
2 calls:
3.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series387.0ms

Counts
2 → 6
Calls
2 calls:
243.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
143.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0129225
1378193
21445178
35002174

prune79.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.0b

regimes141.0ms

Accuracy

27.3% (4.0b remaining)

Error of 11.4b against oracle of 7.4b and baseline of 13.0b

bsearch50.0ms

Steps
ItersRangePoint
8
-4.922636929833077e+106
-2.4504746634917517e+103
-1.545247932061966e+105

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02312
12312

end0.0ms

sample682.0ms

Algorithm
intervals
Results
198.0ms6051×body80valid
139.0ms715×body2560valid
84.0ms305×body5120valid
73.0ms440×body1280valid
31.0ms253×body640valid
17.0ms156×body320valid
5.0ms80×body160valid