Details

Time bar (total: 11.9s)

analyze1.5s

Algorithm
search

sample129.0ms

Algorithm
intervals
Results
39.0ms53×body1280invalid
28.0ms245×body80valid
18.0ms35×body640invalid
8.0ms22×body320invalid
5.0msbody1280valid
2.0msbody320valid
2.0ms14×body80invalid
1.0msbody640valid
1.0msbody160invalid

simplify382.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune34.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: 34.3b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

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

series86.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (atan2 x.im x.re) y.re)
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
69.0ms
(cos (+ (* (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
0197426
1513389
21157387
32556387
45002387

prune114.0ms

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

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New66268
Fresh101
Picked101
Done000
Total68270

Merged error: 19.7b

Counts
70 → 2

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(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.2b
(* (atan2 x.im x.re) y.im)
31.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

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

series74.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
22.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 (52.0ms)

IterNodesCost
0299556
1864496
22274481
35002479

prune121.0ms

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

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New78381
Fresh011
Picked011
Done000
Total78583

Merged error: 2.9b

Counts
83 → 5

localize12.0ms

Local error

Found 2 expressions with local error:

0.1b
(* (log (* -1 x.re)) y.re)
1.2b
(* (atan2 x.im x.re) y.im)

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1
associate-*l*
add-exp-log add-cube-cbrt *-un-lft-identity associate-*r* add-cbrt-cube
pow-prod-down
prod-exp log-pow *-commutative cbrt-unprod add-log-exp unswap-sqr
Counts
2 → 38
Calls
2 calls:
5.0ms
(* (log (* -1 x.re)) y.re)
4.0ms
(* (atan2 x.im x.re) y.im)

series17.0ms

Counts
2 → 6
Calls
2 calls:
11.0ms
(* (log (* -1 x.re)) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)

simplify45.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0155182
1566156
22421155
35001155

prune80.0ms

Filtered
27 candidates to 44 candidates (-63.0%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New43144
Fresh033
Picked101
Done011
Total44549

Merged error: 2.9b

Counts
49 → 5

localize19.0ms

Local error

Found 4 expressions with local error:

0.8b
(cbrt (* (log (* -1 x.re)) y.re))
0.8b
(cbrt (* (log (* -1 x.re)) y.re))
0.8b
(cbrt (* (log (* -1 x.re)) y.re))
1.2b
(* (atan2 x.im x.re) y.im)

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
add-log-exp
cbrt-prod pow1/3 associate-*r* associate-*l*
pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 45
Calls
4 calls:
4.0ms
(cbrt (* (log (* -1 x.re)) y.re))
4.0ms
(cbrt (* (log (* -1 x.re)) y.re))
4.0ms
(cbrt (* (log (* -1 x.re)) y.re))
3.0ms
(* (atan2 x.im x.re) y.im)

series76.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(cbrt (* (log (* -1 x.re)) y.re))
22.0ms
(cbrt (* (log (* -1 x.re)) y.re))
23.0ms
(cbrt (* (log (* -1 x.re)) y.re))
6.0ms
(* (atan2 x.im x.re) y.im)

simplify132.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 4 (40.0ms)

IterNodesCost
0143326
1372283
2805259
31402253
44143244
55001244

prune145.0ms

Filtered
40 candidates to 57 candidates (-42.5%)
Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New57057
Fresh033
Picked011
Done011
Total57562

Merged error: 2.9b

Counts
62 → 5

regimes377.0ms

Accuracy

59.7% (6.5b remaining)

Error of 10.2b against oracle of 3.6b and baseline of 19.9b

bsearch3.3s

Steps
ItersRangePoint
10
-8.352463798467824e-302
8.961118581826923e-306
2.8440857855007e-310
5
-2.0594049404670683e-111
-6.86393256349418e-112
-1.0568496377120418e-111
7
-1246709.381972574
-26948.01860751898
-27302.8460117604

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05155
15755
25755

end0.0ms

analyze1.3s

Algorithm
search

sample3.7s

Algorithm
intervals
Results
1.3s1849×body1280invalid
832.0ms7588×body80valid
646.0ms1323×body640invalid
189.0ms564×body320invalid
84.0ms115×body1280valid
80.0ms161×body640valid
55.0ms232×body160invalid
44.0ms390×body80invalid
35.0ms92×body320valid
10.0ms44×body160valid

Profiling

Loading profile data...