Details

Time bar (total: 7.0s)

sample367.0ms

Algorithm
intervals
Results
230.0ms252×body80valid
60.0ms79×body1280valid
28.0ms55×body640valid
9.0ms25×body320valid
2.0msbody2560valid
2.0msbody160valid

simplify284.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune28.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 32.0b

Counts
2 → 2

localize26.0ms

Local error

Found 4 expressions with local error:

1.0b
(* (atan2 x.im x.re) y.im)
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite21.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)))

series90.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (atan2 x.im x.re) y.im)
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
71.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify85.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (16.0ms)

IterNodesCost
0206434
1539395
21201392
32732392
45002392

prune164.0ms

Filtered
68 candidates to 54 candidates (20.6%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New571168
Fresh011
Picked101
Done000
Total581270

Merged error: 18.3b

Counts
70 → 12

localize27.0ms

Local error

Found 4 expressions with local error:

27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (* (sqrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite29.0ms

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

series74.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
57.0ms
(sin (+ (* (log (* (sqrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify69.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (62.0ms)

IterNodesCost
0156544
1346498
2780497
32120497
45002494

prune151.0ms

Filtered
65 candidates to 56 candidates (13.8%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New64165
Fresh01111
Picked101
Done000
Total651277

Merged error: 18.1b

Counts
77 → 12

localize28.0ms

Local error

Found 4 expressions with local error:

27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite36.0ms

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

series73.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
56.0ms
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify73.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (64.0ms)

IterNodesCost
0158616
1336558
2704557
32021557
45001554

prune150.0ms

Filtered
65 candidates to 56 candidates (13.8%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New65065
Fresh01111
Picked011
Done000
Total651277

Merged error: 18.1b

Counts
77 → 12

localize24.0ms

Local error

Found 4 expressions with local error:

0.7b
(* (atan2 x.im x.re) y.re)
1.0b
(* (atan2 x.im x.re) y.im)
23.0b
(sin (+ (* (log (* -1 x.re)) y.im) (* (atan2 x.im x.re) y.re)))
27.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite19.0ms

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

series57.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (atan2 x.im x.re) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)
38.0ms
(sin (+ (* (log (* -1 x.re)) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify106.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (19.0ms)

IterNodesCost
0260372
1715332
21646328
33711328
45001328

prune109.0ms

Filtered
71 candidates to 51 candidates (28.2%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New68371
Fresh01010
Picked101
Done011
Total691483

Merged error: 10.3b

Counts
83 → 14

regimes599.0ms

Accuracy

68.5% (6.3b remaining)

Error of 16.2b against oracle of 9.9b and baseline of 29.8b

bsearch241.0ms

Steps
ItersRangePoint
10
-3.5765641277586868e-301
3.3873642478406533e-299
-5.00355780878745e-310
8
-5.7450044827993056e-201
-6.915710465369219e-205
-1.8053417554947053e-201
4
-4.52027450578379e-179
-2.4777443684130177e-179
-2.5191425433550405e-179

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06270
16270

end0.0ms

sample4.1s

Algorithm
intervals
Results
1.6s2220×body1280valid
869.0ms8042×body80valid
698.0ms1403×body640valid
195.0ms556×body320valid
74.0ms45×body2560valid
49.0ms218×body160valid

Profiling

Loading profile data...