Details

Time bar (total: 6.5s)

sample328.0ms

Algorithm
intervals
Results
231.0ms71×body1280valid
30.0ms259×body80valid
22.0ms47×body640valid
10.0ms29×body320valid
2.0ms11×body160valid

simplify404.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune16.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 34.3b

Counts
2 → 1

localize48.0ms

Local error

Found 4 expressions with local error:

1.8b
(* (atan2 x.im x.re) y.re)
30.3b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
30.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

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

series87.0ms

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

simplify73.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 4 (67.0ms)

IterNodesCost
0197426
1513389
21157389
32498389
45001387

prune115.0ms

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

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New64468
Fresh000
Picked101
Done000
Total65469

Merged error: 20.6b

Counts
69 → 4

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite18.0ms

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

series72.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(- (* (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)))

simplify77.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (24.0ms)

IterNodesCost
0307551
1925510
22748491
35002491

prune112.0ms

Filtered
55 candidates to 78 candidates (-41.8%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New75378
Fresh123
Picked101
Done000
Total77582

Merged error: 3.0b

Counts
82 → 5

localize12.0ms

Local error

Found 3 expressions with local error:

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

rewrite15.0ms

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

series39.0ms

Counts
3 → 9
Calls
3 calls:
22.0ms
(- (* (log (* -1 x.re)) y.re) (* (atan2 x.im x.re) y.im))
10.0ms
(* (log (* -1 x.re)) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)

simplify98.0ms

Algorithm
egg-herbie
Counts
59 → 59
Iterations

Useful iterations: 2 (25.0ms)

IterNodesCost
0235321
1838294
24203287
35001287

prune89.0ms

Filtered
37 candidates to 59 candidates (-59.5%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New59059
Fresh044
Picked011
Done000
Total59564

Merged error: 3.0b

Counts
64 → 5

localize25.0ms

Local error

Found 4 expressions with local error:

1.8b
(* (atan2 x.im x.re) y.re)
30.3b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
30.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.9b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

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

series70.0ms

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

simplify74.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
0197426
1513389
21157387
32556387
45001387

prune98.0ms

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

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New67168
Fresh123
Picked011
Done011
Total68573

Merged error: 3.0b

Counts
73 → 5

regimes395.0ms

Accuracy

80.9% (6.2b remaining)

Error of 9.6b against oracle of 3.5b and baseline of 35.7b

bsearch298.0ms

Steps
ItersRangePoint
10
6.580860954088717e-166
3.401319575465327e-151
6.710434828305167e-166
9
6.164901767124377e-221
4.0930739739128934e-216
2.0221970332526278e-216
10
-3.069211600425411e-302
4.251265814292649e-304
1.5656916858478e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05435
16035
26035

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.4s2045×body1280valid
846.0ms7954×body80valid
678.0ms1459×body640valid
206.0ms629×body320valid
74.0ms306×body160valid

Profiling

Loading profile data...