Details

Time bar (total: 2.5s)

sample34.0ms

Algorithm
intervals
Results
10.0ms200×body80valid
6.0ms21×body2560valid
3.0ms15×body1280valid
2.0msbody5120valid
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

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.9b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
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)))

series41.0ms

Counts
3 → 9
Calls
3 calls:
24.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
11.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify90.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0234381
1812362
23077355
35001353

prune105.0ms

Filtered
42 candidates to 52 candidates (-23.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New46652
Fresh000
Picked101
Done000
Total47653

Merged error: 16.2b

Counts
53 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
31.1b
(sqrt (+ (* re re) (* im im)))
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series28.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02611112
1935975
25001951

prune147.0ms

Filtered
74 candidates to 138 candidates (-86.5%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1344138
Fresh145
Picked101
Done000
Total1368144

Merged error: 16.2b

Counts
144 → 8

localize19.0ms

Local error

Found 4 expressions with local error:

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

rewrite20.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:
6.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)))

series23.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify144.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (138.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune135.0ms

Filtered
60 candidates to 72 candidates (-20.0%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New72072
Fresh077
Picked011
Done000
Total72880

Merged error: 16.2b

Counts
80 → 8

localize6.0ms

Local error

Found 1 expressions with local error:

0.0b
(sqrt (* 2.0 (- im re)))

rewrite5.0ms

Algorithm
rewrite-expression-head
Rules
pow1
sqrt-pow1 sqrt-div associate-*r/
add-exp-log add-sqr-sqrt add-cube-cbrt flip3-- *-un-lft-identity pow1/2 pow-prod-down sqrt-prod add-cbrt-cube flip-- add-log-exp
Counts
1 → 13
Calls
1 calls:
5.0ms
(sqrt (* 2.0 (- im re)))

series15.0ms

Counts
1 → 3
Calls
1 calls:
15.0ms
(sqrt (* 2.0 (- im re)))

simplify51.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0131101
142399
2179596
3500194

prune26.0ms

Filtered
13 candidates to 16 candidates (-23.1%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New15116
Fresh066
Picked011
Done011
Total15924

Merged error: 16.1b

Counts
24 → 9

regimes442.0ms

Accuracy

52.8% (10.1b remaining)

Error of 28.1b against oracle of 17.9b and baseline of 39.4b

bsearch53.0ms

Steps
ItersRangePoint
9
1.972701127919696e-154
3.1184930501819124e-149
4.333641892284193e-154
5
-6.202696328941585e-191
-2.0501294423053805e-191
-2.7347411849077974e-191
8
-1.4361419947092225e+116
-4.701282719128794e+112
-1.4182869934259443e+116

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05436
15436

end0.0ms

sample1.0s

Algorithm
intervals
Results
304.0ms6044×body80valid
200.0ms704×body2560valid
115.0ms485×body1280valid
85.0ms248×body5120valid
56.0ms313×body640valid
19.0ms138×body320valid
6.0ms68×body160valid

Profiling

Loading profile data...