Details

Time bar (total: 6.4s)

sample358.0ms

Algorithm
intervals
Results
37.0ms63×body1280valid
23.0ms251×body80valid
17.0ms46×body640valid
5.0ms18×body320valid
2.0msbody160valid

simplify42.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune29.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: 32.5b

Counts
2 → 2

localize27.0ms

Local error

Found 4 expressions with local error:

2.4b
(* (atan2 x.im x.re) y.im)
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.5b
(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)))

series247.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (atan2 x.im x.re) y.im)
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
157.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify75.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0191420
1501383
21134381
32496381
45001381

prune300.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New62668
Fresh011
Picked101
Done000
Total63770

Merged error: 17.4b

Counts
70 → 7

localize17.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)
2.4b
(* (atan2 x.im x.re) y.im)
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite22.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)
6.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:
96.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)
18.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0280545
1825486
22118481
35001481

prune269.0ms

Filtered
81 candidates to 60 candidates (74.1%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New76581
Fresh156
Picked101
Done000
Total781088

Merged error: 4.3b

Counts
88 → 10

localize24.0ms

Local error

Found 4 expressions with local error:

2.4b
(* (atan2 x.im x.re) y.im)
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite17.0ms

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

series122.0ms

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

simplify68.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0145374
1428355
21017352
32145352
45002352

prune374.0ms

Filtered
75 candidates to 58 candidates (77.3%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New75075
Fresh099
Picked011
Done000
Total751085

Merged error: 4.3b

Counts
85 → 10

localize18.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
2.4b
(* (atan2 x.im x.re) y.im)
4.0b
(log (exp (* (atan2 x.im x.re) y.im)))
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite16.0ms

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

series160.0ms

Counts
4 → 12
Calls
4 calls:
88.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
17.0ms
(* (atan2 x.im x.re) y.im)
17.0ms
(log (exp (* (atan2 x.im x.re) y.im)))
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify107.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
0247426
1716377
21692374
33958374
45001374

prune247.0ms

Filtered
80 candidates to 57 candidates (71.3%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New79180
Fresh088
Picked011
Done011
Total791190

Merged error: 4.3b

Counts
90 → 11

regimes292.0ms

Accuracy

59.2% (6.5b remaining)

Error of 10.3b against oracle of 3.7b and baseline of 19.8b

bsearch226.0ms

Steps
ItersRangePoint
9
3.2398009343753024e-119
4.271661016463332e-114
2.597653207771217e-116
10
-2.2735744027913026e-19
-3.3775070190963855e-31
-1.836315703687079e-22

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05051
15651
25651

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.2s2053×body1280valid
658.0ms7978×body80valid
586.0ms1482×body640valid
173.0ms636×body320valid
57.0ms314×body160valid