Details

Time bar (total: 7.3s)

sample372.0ms

Algorithm
intervals
Results
47.0ms74×body1280valid
24.0ms256×body80valid
23.0ms57×body640valid
5.0ms18×body320valid
3.0msbody2560valid
1.0msbody160valid

simplify40.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune13.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 36.8b

Counts
2 → 1

localize24.0ms

Local error

Found 4 expressions with local error:

1.7b
(* (atan2 x.im x.re) y.im)
31.9b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite22.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-+
sin-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.im)
6.0ms
(sin (+ (* (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)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series256.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.im)
149.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
55.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify75.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0196427
1506390
21139386
32509386
45001386

prune335.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New581068
Fresh000
Picked101
Done000
Total591069

Merged error: 19.6b

Counts
69 → 10

localize31.0ms

Local error

Found 4 expressions with local error:

20.2b
(cos (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div
add-exp-log add-cbrt-cube add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
Counts
4 → 52
Calls
4 calls:
3.0ms
(cos (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) 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)))

series221.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(cos (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im))
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify62.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 4 (57.0ms)

IterNodesCost
0126390
1283364
2636363
31696363
45001360

prune390.0ms

Filtered
64 candidates to 54 candidates (84.4%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New64064
Fresh099
Picked011
Done000
Total641074

Merged error: 19.6b

Counts
74 → 10

localize29.0ms

Local error

Found 4 expressions with local error:

33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite17.0ms

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

series144.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify141.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (135.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune433.0ms

Filtered
72 candidates to 60 candidates (83.3%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New72072
Fresh088
Picked011
Done011
Total721082

Merged error: 19.6b

Counts
82 → 10

localize26.0ms

Local error

Found 4 expressions with local error:

10.8b
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
31.9b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
unpow-prod-down cube-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cube-mult sin-sum pow1/3 unpow3 rem-cbrt-cube sqr-pow
Counts
4 → 59
Calls
4 calls:
5.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
6.0ms
(sin (+ (* (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)))

series352.0ms

Counts
4 → 12
Calls
4 calls:
140.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
141.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify149.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 4 (141.0ms)

IterNodesCost
0191725
1493717
21262717
34742717
45001647

prune313.0ms

Filtered
71 candidates to 53 candidates (74.6%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New69271
Fresh257
Picked011
Done022
Total711081

Merged error: 19.6b

Counts
81 → 10

regimes375.0ms

Accuracy

79.3% (2.9b remaining)

Error of 22.1b against oracle of 19.2b and baseline of 33.3b

bsearch120.0ms

Steps
ItersRangePoint
9
-5.459969929633657e-306
2.8649750194033813e-305
1.73062623171225e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04235
14235

end0.0ms

sample3.3s

Algorithm
intervals
Results
1.4s2168×body1280valid
695.0ms7914×body80valid
583.0ms1414×body640valid
169.0ms581×body320valid
61.0ms38×body2560valid
43.0ms235×body160valid