Details

Time bar (total: 3.0s)

sample37.0ms

Algorithm
intervals
Results
13.0ms200×body80valid
7.0ms22×body2560valid
4.0ms18×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 33.9b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
26.2b
(sqrt (+ (* re re) (* im im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
*-un-lft-identity
add-sqr-sqrt
pow1 add-cube-cbrt
add-exp-log flip3-+ sqrt-prod add-cbrt-cube flip-+
+-commutative sqrt-div sum-log
rem-sqrt-square sqrt-pow1 pow1/2 distribute-lft-out
Counts
3 → 38
Calls
3 calls:
4.0ms
(+ (* re re) (* im im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series18.0ms

Counts
3 → 9
Calls
3 calls:
5.0ms
(+ (* re re) (* im im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (56.0ms)

IterNodesCost
0178275
1689252
22017248
35001246

prune85.0ms

Filtered
47 candidates to 38 candidates (19.1%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New42547
Fresh000
Picked011
Done000
Total42648

Merged error: 18.5b

Counts
48 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
5.7b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
27.2b
(cbrt (+ (* re re) (* im im)))
27.2b
(cbrt (+ (* re re) (* im im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ flip-+
associate-*l* unswap-sqr
pow1/3 sqrt-div associate-*r/
+-commutative pow-prod-down prod-exp sum-log *-commutative cbrt-unprod
Counts
4 → 65
Calls
4 calls:
8.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series104.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
28.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
23.0ms
(cbrt (+ (* re re) (* im im)))

simplify124.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 3 (113.0ms)

IterNodesCost
03551000
11235940
24815899
35002885

prune134.0ms

Filtered
77 candidates to 66 candidates (14.3%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New75277
Fresh044
Picked101
Done011
Total76783

Merged error: 18.5b

Counts
83 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

4.7b
(exp (log (+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)))
5.7b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
27.2b
(cbrt (+ (* re re) (* im im)))
27.2b
(cbrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
cbrt-prod add-log-exp
pow1
add-exp-log cbrt-div exp-prod flip3-+ add-cbrt-cube flip-+
log-prod exp-sum
log-div exp-diff pow1/3
+-commutative sum-log log-pow rem-exp-log
Counts
4 → 54
Calls
4 calls:
9.0ms
(exp (log (+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)))
8.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series99.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(exp (log (+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)))
28.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
23.0ms
(cbrt (+ (* re re) (* im im)))

simplify87.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (77.0ms)

IterNodesCost
0328964
11014870
23169799
35001777

prune159.0ms

Filtered
66 candidates to 61 candidates (7.6%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New65166
Fresh055
Picked101
Done011
Total66773

Merged error: 18.5b

Counts
73 → 7

localize33.0ms

Local error

Found 4 expressions with local error:

27.2b
(cbrt (+ (* re re) (* im im)))
27.2b
(cbrt (+ (* re re) (* im im)))
27.2b
(cbrt (+ (* re re) (* im im)))
27.2b
(cbrt (+ (* re re) (* im im)))

rewrite17.0ms

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

series84.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(cbrt (+ (* re re) (* im im)))
22.0ms
(cbrt (+ (* re re) (* im im)))
20.0ms
(cbrt (+ (* re re) (* im im)))
21.0ms
(cbrt (+ (* re re) (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 3 (38.0ms)

IterNodesCost
0151560
1426524
21225500
35002468

prune133.0ms

Filtered
64 candidates to 56 candidates (12.5%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New64064
Fresh055
Picked011
Done011
Total64771

Merged error: 18.5b

Counts
71 → 7

regimes650.0ms

Accuracy

55.2% (9.6b remaining)

Error of 27.3b against oracle of 17.7b and baseline of 39.1b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03832
13832

end0.0ms

sample974.0ms

Algorithm
intervals
Results
283.0ms6002×body80valid
188.0ms694×body2560valid
117.0ms505×body1280valid
105.0ms319×body5120valid
44.0ms250×body640valid
20.0ms149×body320valid
7.0ms81×body160valid

Profiling

Loading profile data...