Details

Time bar (total: 4.0s)

sample33.0ms

Algorithm
intervals
Results
9.0ms195×body80valid
7.0ms25×body2560valid
3.0ms12×body1280valid
2.0msbody5120valid
2.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify8.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: 37.7b

Counts
2 → 1

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.1b
(- (sqrt (+ (* re re) (* im im))) re)
28.6b
(sqrt (+ (* re re) (* im im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
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)))

series283.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
171.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune167.0ms

Filtered
66 candidates to 52 candidates (78.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New60666
Fresh000
Picked011
Done000
Total60767

Merged error: 17.6b

Counts
67 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

10.1b
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
28.6b
(sqrt (+ (* re re) (* im im)))
28.6b
(sqrt (+ (* re re) (* im im)))
28.6b
(sqrt (+ (* re re) (* im im)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sub-neg flip3-- diff-log flip--
Counts
4 → 57
Calls
4 calls:
20.0ms
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im 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)))

series156.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(- (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify144.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 4 (137.0ms)

IterNodesCost
0148643
1378541
21206463
34691456
45001450

prune219.0ms

Filtered
69 candidates to 56 candidates (81.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New66369
Fresh055
Picked101
Done011
Total67976

Merged error: 17.6b

Counts
76 → 9

localize21.0ms

Local error

Found 4 expressions with local error:

28.6b
(sqrt (+ (* re re) (* im im)))
28.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(cbrt (+ (* re re) (* im im)))
29.6b
(cbrt (+ (* re re) (* im im)))

rewrite17.0ms

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

series260.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))
92.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 3 (46.0ms)

IterNodesCost
0141444
1440420
21469416
35002414

prune320.0ms

Filtered
68 candidates to 60 candidates (88.2%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New67168
Fresh077
Picked011
Done011
Total671077

Merged error: 17.6b

Counts
77 → 10

localize27.0ms

Local error

Found 4 expressions with local error:

28.6b
(sqrt (+ (* re re) (* im im)))
28.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(cbrt (+ (* re re) (* im im)))
32.0b
(pow (+ (* re re) (* im im)) 1/3)

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
sqrt-prod
add-exp-log
sqrt-div add-cbrt-cube add-log-exp
cbrt-prod unpow-prod-down pow-unpow flip3-+ flip-+
rem-sqrt-square cbrt-div sqrt-pow1 pow1/2
pow-to-exp pow-pow unpow1/3 pow1/3 pow-exp sqr-pow
Counts
4 → 61
Calls
4 calls:
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(pow (+ (* re re) (* im im)) 1/3)

series266.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (+ (* re re) (* im im)))
40.0ms
(sqrt (+ (* re re) (* im im)))
97.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(pow (+ (* re re) (* im im)) 1/3)

simplify81.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 3 (75.0ms)

IterNodesCost
0189439
1661385
22515381
35001379

prune333.0ms

Filtered
73 candidates to 61 candidates (83.6%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New72173
Fresh077
Picked101
Done022
Total731083

Merged error: 17.6b

Counts
83 → 10

regimes521.0ms

Accuracy

56.7% (9.1b remaining)

Error of 27.0b against oracle of 17.9b and baseline of 38.9b

bsearch3.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03736
13736

end0.0ms

sample910.0ms

Algorithm
intervals
Results
292.0ms6061×body80valid
197.0ms707×body2560valid
102.0ms457×body1280valid
96.0ms283×body5120valid
51.0ms278×body640valid
19.0ms145×body320valid
6.0ms69×body160valid