Details

Time bar (total: 6.4s)

sample334.0ms

Algorithm
intervals
Results
213.0ms250×body80valid
50.0ms72×body1280valid
22.0ms47×body640valid
7.0ms21×body320valid
2.0msbody160valid

simplify413.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune20.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: 29.9b

Counts
2 → 2

localize46.0ms

Local error

Found 4 expressions with local error:

1.6b
(* (atan2 x.im x.re) y.im)
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.9b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite23.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-+
cos-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
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series89.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)))
13.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
64.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify80.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0199426
1523389
21179387
32665387
45002387

prune117.0ms

Filtered
54 candidates to 68 candidates (-25.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New64468
Fresh011
Picked101
Done000
Total65570

Merged error: 17.7b

Counts
70 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
0.3b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.6b
(* (atan2 x.im x.re) y.im)
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.0ms

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

series76.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
23.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify58.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 3 (51.0ms)

IterNodesCost
0299556
1864496
22274481
35002479

prune141.0ms

Filtered
60 candidates to 81 candidates (-35.0%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New75681
Fresh044
Picked101
Done000
Total761086

Merged error: 3.3b

Counts
86 → 10

localize21.0ms

Local error

Found 4 expressions with local error:

1.6b
(* (atan2 x.im x.re) y.im)
1.6b
(* (atan2 x.im x.re) y.im)
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×pow1 add-cube-cbrt *-un-lft-identity
add-exp-log add-cbrt-cube
associate-*r* associate-*l* sqrt-prod
sqrt-div add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 pow-prod-down prod-exp *-commutative cbrt-unprod flip-+ unswap-sqr
Counts
4 → 66
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.im)
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)))

series24.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (atan2 x.im x.re) y.im)
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)))

simplify64.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (11.0ms)

IterNodesCost
0145348
1428322
21017320
32145320
45002320

prune128.0ms

Filtered
56 candidates to 78 candidates (-39.3%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New78078
Fresh099
Picked011
Done000
Total781088

Merged error: 3.3b

Counts
88 → 10

localize26.0ms

Local error

Found 4 expressions with local error:

1.6b
(* (atan2 x.im x.re) y.im)
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
26.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.9b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite20.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-+
cos-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)
5.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series69.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)))
51.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify78.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0199426
1523389
21179387
32665387
45002387

prune93.0ms

Filtered
54 candidates to 68 candidates (-25.9%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New67168
Fresh178
Picked101
Done011
Total69978

Merged error: 3.3b

Counts
78 → 9

regimes437.0ms

Accuracy

64.1% (5.7b remaining)

Error of 9.4b against oracle of 3.7b and baseline of 19.5b

bsearch257.0ms

Steps
ItersRangePoint
9
5.32934067988711e-14
6.365486949595399e-09
3.759171542953131e-13
8
4.966227613048362e-175
1.9431720471723775e-172
2.723713362351915e-173
10
-2.279103553809275e-308
1.754346320137725e-296
1.8090875636811e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05446
16046
26046

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.4s2128×body1280valid
840.0ms7915×body80valid
671.0ms1458×body640valid
218.0ms654×body320valid
70.0ms307×body160valid

Profiling

Loading profile data...