Details

Time bar (total: 3.9s)

sample32.0ms

Algorithm
intervals
Results
9.0ms200×body80valid
6.0ms25×body2560valid
3.0ms10×body5120valid
2.0msbody1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

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

Counts
2 → 1

localize13.0ms

Local error

Found 2 expressions with local error:

0.4b
(- (sqrt (+ (* re re) (* im im))) re)
33.4b
(sqrt (+ (* re re) (* im im)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
2 → 30
Calls
2 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series84.0ms

Counts
2 → 6
Calls
2 calls:
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 4 (77.0ms)

IterNodesCost
0135228
1332216
2839212
32503211
45002210

prune111.0ms

Filtered
36 candidates to 28 candidates (77.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New31536
Fresh000
Picked011
Done000
Total31637

Merged error: 18.9b

Counts
37 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

1.2b
(+ (sqrt (+ (* re re) (* im im))) re)
5.9b
(sqrt (* 2.0 (/ (* im im) (+ (sqrt (+ (* re re) (* im im))) re))))
26.1b
(/ (* im im) (+ (sqrt (+ (* re re) (* im im))) re))
33.4b
(sqrt (+ (* re re) (* im im)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
add-exp-log add-cbrt-cube
pow1 add-sqr-sqrt
add-cube-cbrt
add-log-exp
times-frac associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div flip-+ distribute-lft-out
cbrt-undiv pow1/2 div-exp associate-/r/
+-commutative rem-sqrt-square frac-2neg associate-*r/ pow-prod-down prod-exp clear-num sum-log cbrt-unprod div-inv associate-/l*
Counts
4 → 64
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (* im im) (+ (sqrt (+ (* re re) (* im im))) re))))
11.0ms
(/ (* im im) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series335.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
188.0ms
(sqrt (* 2.0 (/ (* im im) (+ (sqrt (+ (* re re) (* im im))) re))))
66.0ms
(/ (* im im) (+ (sqrt (+ (* re re) (* im im))) re))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify41.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0365616
11407542
25001532

prune205.0ms

Filtered
76 candidates to 61 candidates (80.3%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New72476
Fresh224
Picked101
Done011
Total75782

Merged error: 6.4b

Counts
82 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

5.9b
(sqrt (* 2.0 (* (/ im (* (cbrt (+ (sqrt (+ (* re re) (* im im))) re)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re)))) (/ im (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))))
33.4b
(sqrt (+ (* re re) (* im im)))
33.4b
(sqrt (+ (* re re) (* im im)))
33.4b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
13×pow1
10×add-sqr-sqrt sqrt-prod
sqrt-div
add-cube-cbrt *-un-lft-identity
sqrt-pow1
add-exp-log pow1/2 associate-*r/ add-cbrt-cube add-log-exp
rem-sqrt-square flip3-+ pow-prod-down flip-+
frac-times associate-*l/
Counts
4 → 60
Calls
4 calls:
30.0ms
(sqrt (* 2.0 (* (/ im (* (cbrt (+ (sqrt (+ (* re re) (* im im))) re)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re)))) (/ im (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series297.0ms

Counts
4 → 12
Calls
4 calls:
189.0ms
(sqrt (* 2.0 (* (/ im (* (cbrt (+ (sqrt (+ (* re re) (* im im))) re)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re)))) (/ im (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))))
37.0ms
(sqrt (+ (* re re) (* im im)))
33.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 3 (76.0ms)

IterNodesCost
0260665
1806624
22945618
35001602

prune277.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New69372
Fresh145
Picked101
Done011
Total71879

Merged error: 6.4b

Counts
79 → 8

localize27.0ms

Local error

Found 4 expressions with local error:

33.4b
(sqrt (+ (* re re) (* im im)))
33.4b
(sqrt (+ (* re re) (* im im)))
33.4b
(sqrt (+ (* re re) (* im im)))
33.4b
(sqrt (+ (* re re) (* im im)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 60
Calls
4 calls:
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series145.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify142.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (136.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune398.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New72072
Fresh066
Picked011
Done011
Total72880

Merged error: 6.4b

Counts
80 → 8

regimes402.0ms

Accuracy

44.4% (17.8b remaining)

Error of 24.5b against oracle of 6.7b and baseline of 38.8b

bsearch155.0ms

Steps
ItersRangePoint
9
8.653923406070421e-221
4.3735973696411213e-212
1.2274681436980806e-216
8
-4.304488098541857e-166
-5.427563317172151e-169
-4.253813230095163e-166
8
-4.256776728825532e+46
-1.555584016455579e+44
-1.8033863025812665e+46

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05726
16226
26326
36326

end0.0ms

sample868.0ms

Algorithm
intervals
Results
283.0ms6051×body80valid
171.0ms656×body2560valid
109.0ms485×body1280valid
90.0ms291×body5120valid
52.0ms299×body640valid
17.0ms137×body320valid
7.0ms81×body160valid

Profiling

Loading profile data...