Details

Time bar (total: 3.9s)

sample26.0ms

Algorithm
intervals
Results
6.0ms191×body80valid
5.0ms25×body2560valid
3.0ms16×body1280valid
1.0ms12×body640valid
1.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.1b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))
0.1b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
12×add-sqr-sqrt
10×pow1
add-cube-cbrt
sqrt-prod
add-exp-log fma-def add-cbrt-cube add-log-exp
expm1-log1p-u flip3-+ sqrt-div associate-*r/ associate-*r* flip-+ log1p-expm1-u
sqrt-pow1 associate-*l*
pow1/2 pow-prod-down distribute-lft-out
+-commutative distribute-rgt-in rem-sqrt-square distribute-lft-in prod-exp sum-log *-commutative cbrt-unprod hypot-def unswap-sqr
Counts
4 → 78
Calls
4 calls:
9.0ms
(* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))
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)))

series328.0ms

Counts
4 → 12
Calls
4 calls:
59.0ms
(* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))
183.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify40.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0328564
11239485
25001458

prune235.0ms

Filtered
90 candidates to 79 candidates (87.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New84690
Fresh000
Picked101
Done000
Total85691

Merged error: 7.6b

Counts
91 → 6

localize7.0ms

Local error

Found 3 expressions with local error:

0.0b
(* 2.0 (+ (hypot re im) re))
0.1b
(sqrt (* 2.0 (+ (hypot re im) re)))
0.7b
(+ (hypot re im) re)

rewrite15.0ms

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

series327.0ms

Counts
3 → 9
Calls
3 calls:
69.0ms
(* 2.0 (+ (hypot re im) re))
197.0ms
(sqrt (* 2.0 (+ (hypot re im) re)))
61.0ms
(+ (hypot re im) re)

simplify102.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (97.0ms)

IterNodesCost
0247292
1928261
24404255
35001254

prune145.0ms

Filtered
66 candidates to 55 candidates (83.3%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New63366
Fresh325
Picked011
Done000
Total66672

Merged error: 7.5b

Counts
72 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (sqrt (* 2.0 (+ (hypot re im) re))))
0.7b
(+ (hypot re im) re)
0.7b
(+ (hypot re im) re)
0.7b
(+ (hypot re im) re)

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
14×*-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
+-commutative sum-log distribute-lft-out
cbrt-div sqrt-div associate-*r/
pow1/3 sqrt-prod
Counts
4 → 67
Calls
4 calls:
5.0ms
(cbrt (sqrt (* 2.0 (+ (hypot re im) re))))
3.0ms
(+ (hypot re im) re)
3.0ms
(+ (hypot re im) re)
3.0ms
(+ (hypot re im) re)

series501.0ms

Counts
4 → 12
Calls
4 calls:
323.0ms
(cbrt (sqrt (* 2.0 (+ (hypot re im) re))))
55.0ms
(+ (hypot re im) re)
62.0ms
(+ (hypot re im) re)
61.0ms
(+ (hypot re im) re)

simplify68.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0228369
1642340
22531337
35001333

prune288.0ms

Filtered
79 candidates to 72 candidates (91.1%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New77279
Fresh044
Picked101
Done011
Total78785

Merged error: 7.5b

Counts
85 → 7

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))
0.1b
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
15.6b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-sqr-sqrt
add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
expm1-log1p-u associate-*r* associate-*l* fma-udef log1p-expm1-u add-log-exp
sqrt-pow1 pow-prod-down
distribute-rgt-in distribute-lft-in pow1/2 prod-exp sqrt-prod *-commutative cbrt-unprod unswap-sqr
Counts
3 → 45
Calls
3 calls:
3.0ms
(* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))
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)

series565.0ms

Counts
3 → 9
Calls
3 calls:
164.0ms
(* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re))
250.0ms
(sqrt (* 2.0 (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)))
151.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify80.0ms

Algorithm
egg-herbie
Counts
54 → 54
Iterations

Useful iterations: 3 (74.0ms)

IterNodesCost
0193429
1702357
23174327
35002323

prune254.0ms

Filtered
54 candidates to 44 candidates (81.5%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New50454
Fresh145
Picked101
Done011
Total52961

Merged error: 7.5b

Counts
61 → 9

regimes136.0ms

Accuracy

25.9% (4.3b remaining)

Error of 11.7b against oracle of 7.5b and baseline of 13.2b

bsearch50.0ms

Steps
ItersRangePoint
9
-1.1628533187808574e-30
-7.903618875538946e-36
-9.38108909832793e-31

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02613
12813
22813

end0.0ms

sample680.0ms

Algorithm
intervals
Results
208.0ms6040×body80valid
142.0ms717×body2560valid
79.0ms487×body1280valid
65.0ms268×body5120valid
33.0ms266×body640valid
14.0ms153×body320valid
4.0ms69×body160valid