Details

Time bar (total: 8.6s)

sample390.0ms

Algorithm
intervals
Results
43.0ms60×body1280valid
29.0ms249×body80valid
21.0ms43×body640valid
4.0ms13×body320valid
3.0msbody2560valid
3.0ms11×body160valid

simplify40.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune17.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 31.2b

Counts
2 → 2

localize26.0ms

Local error

Found 4 expressions with local error:

2.5b
(* (atan2 x.im x.re) y.im)
27.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.8b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series257.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.im)
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
167.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify76.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0196425
1506388
21139386
32509386
45001386

prune304.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New60868
Fresh011
Picked101
Done000
Total61970

Merged error: 17.4b

Counts
70 → 9

localize31.0ms

Local error

Found 4 expressions with local error:

27.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.3b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.3b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
35.8b
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-prod
pow1
add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ sqrt-prod flip-+
pow1/3 sqrt-div
rem-sqrt-square sqrt-pow1 pow1/2 sin-sum
Counts
4 → 49
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
10.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

series492.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
93.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
94.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
269.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify72.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (59.0ms)

IterNodesCost
0226599
1690543
22010539
35002538

prune416.0ms

Filtered
61 candidates to 56 candidates (91.8%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New57461
Fresh178
Picked101
Done000
Total591170

Merged error: 17.4b

Counts
70 → 11

localize36.0ms

Local error

Found 4 expressions with local error:

27.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.3b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.3b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
35.9b
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-prod
pow1
add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ sqrt-prod flip-+
pow1/3 sqrt-div
rem-sqrt-square sqrt-pow1 pow1/2 sin-sum
Counts
4 → 49
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
13.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

series495.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
94.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
94.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
266.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify67.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (60.0ms)

IterNodesCost
0228623
1695563
22039559
35001558

prune441.0ms

Filtered
61 candidates to 55 candidates (90.2%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New60161
Fresh01010
Picked101
Done000
Total611172

Merged error: 17.4b

Counts
72 → 11

localize39.0ms

Local error

Found 4 expressions with local error:

27.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.3b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.3b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
36.0b
(sin (+ (* (log (* (fabs (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
cbrt-prod
pow1
add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ sqrt-prod flip-+
pow1/3 sqrt-div
rem-sqrt-square sqrt-pow1 pow1/2 sin-sum
Counts
4 → 49
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
13.0ms
(sin (+ (* (log (* (fabs (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

series495.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
95.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
94.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
270.0ms
(sin (+ (* (log (* (fabs (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify65.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (57.0ms)

IterNodesCost
0229647
1696583
22040579
35002578

prune403.0ms

Filtered
61 candidates to 55 candidates (90.2%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New61061
Fresh01010
Picked011
Done000
Total611172

Merged error: 17.4b

Counts
72 → 11

regimes395.0ms

Accuracy

76.8% (3.2b remaining)

Error of 22.4b against oracle of 19.2b and baseline of 33.0b

bsearch145.0ms

Steps
ItersRangePoint
8
-8.202692737337442e-299
-2.8492448751926983e-303
-2.8912905477472826e-303

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03935
13935

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.6s2213×body1280valid
852.0ms7963×body80valid
689.0ms1402×body640valid
190.0ms562×body320valid
85.0ms53×body2560valid
59.0ms255×body160valid