Details

Time bar (total: 6.6s)

sample448.0ms

Algorithm
intervals
Results
72.0ms66×body1280valid
28.0ms256×body80valid
23.0ms47×body640valid
6.0ms18×body320valid
3.0ms10×body160valid

simplify41.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: 33.4b

Counts
2 → 2

localize37.0ms

Local error

Found 4 expressions with local error:

1.3b
(* (atan2 x.im x.re) y.im)
31.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.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)))
9.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series238.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.im)
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
148.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
0191422
1501385
21134381
32494381
45002381

prune299.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New64468
Fresh011
Picked101
Done000
Total65570

Merged error: 19.7b

Counts
70 → 5

localize17.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.2b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.3b
(* (atan2 x.im x.re) y.im)
31.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite19.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:
5.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)))

series241.0ms

Counts
4 → 12
Calls
4 calls:
94.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
91.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
20.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify59.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0280545
1825486
22165481
35001481

prune261.0ms

Filtered
81 candidates to 60 candidates (74.1%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New76581
Fresh224
Picked011
Done000
Total78886

Merged error: 3.2b

Counts
86 → 8

localize16.0ms

Local error

Found 2 expressions with local error:

0.0b
(exp (neg (* (atan2 x.im x.re) y.im)))
1.3b
(* (atan2 x.im x.re) y.im)

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
exp-prod
add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube add-log-exp
associate-*r* associate-*l*
rem-exp-log
neg-sub0 distribute-lft-neg-in exp-neg neg-mul-1 distribute-rgt-neg-in exp-diff pow-prod-down neg-log prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
2 → 35
Calls
2 calls:
2.0ms
(exp (neg (* (atan2 x.im x.re) y.im)))
4.0ms
(* (atan2 x.im x.re) y.im)

series40.0ms

Counts
2 → 6
Calls
2 calls:
23.0ms
(exp (neg (* (atan2 x.im x.re) y.im)))
17.0ms
(* (atan2 x.im x.re) y.im)

simplify55.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 3 (52.0ms)

IterNodesCost
0119163
1468147
22129147
35001146

prune126.0ms

Filtered
41 candidates to 28 candidates (68.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New39241
Fresh066
Picked101
Done011
Total40949

Merged error: 3.2b

Counts
49 → 9

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(cbrt (exp (neg (* (atan2 x.im x.re) y.im))))
1.3b
(* (atan2 x.im x.re) y.im)
1.3b
(* (atan2 x.im x.re) y.im)
1.3b
(* (atan2 x.im x.re) y.im)

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
11×add-cube-cbrt *-un-lft-identity
10×pow1 add-exp-log add-cbrt-cube
associate-*r* associate-*l*
add-log-exp
cbrt-prod pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
cbrt-div
neg-sub0 exp-neg exp-diff pow1/3
Counts
4 → 67
Calls
4 calls:
2.0ms
(cbrt (exp (neg (* (atan2 x.im x.re) y.im))))
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(* (atan2 x.im x.re) y.im)

series96.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(cbrt (exp (neg (* (atan2 x.im x.re) y.im))))
16.0ms
(* (atan2 x.im x.re) y.im)
16.0ms
(* (atan2 x.im x.re) y.im)
19.0ms
(* (atan2 x.im x.re) y.im)

simplify55.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
0119340
1434305
21851303
35001299

prune252.0ms

Filtered
79 candidates to 52 candidates (65.8%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New76379
Fresh167
Picked101
Done011
Total781088

Merged error: 3.2b

Counts
88 → 10

regimes289.0ms

Accuracy

66.8% (5.4b remaining)

Error of 9.4b against oracle of 4.0b and baseline of 20.3b

bsearch124.0ms

Steps
ItersRangePoint
8
-2.713494972300769e-307
5.813193115847266e-307
4.13952476059083e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03115
13515
23515

end0.0ms

sample3.7s

Algorithm
intervals
Results
1.4s2004×body1280valid
852.0ms7885×body80valid
703.0ms1427×body640valid
240.0ms698×body320valid
83.0ms328×body160valid

Profiling

Loading profile data...