Details

Time bar (total: 8.4s)

sample411.0ms

Algorithm
intervals
Results
58.0ms73×body1280valid
36.0ms49×body640valid
28.0ms257×body80valid
5.0ms16×body320valid
3.0msbody2560valid
2.0msbody160valid

simplify42.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune18.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.0b

Counts
2 → 2

localize25.0ms

Local error

Found 4 expressions with local error:

1.4b
(* (atan2 x.im x.re) y.im)
29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.8b
(sin (+ (* (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-+
sin-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
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series263.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(* (atan2 x.im x.re) y.im)
39.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
171.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify79.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0196425
1506388
21139386
32507386
45002386

prune353.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New581068
Fresh101
Picked101
Done000
Total601070

Merged error: 19.6b

Counts
70 → 10

localize39.0ms

Local error

Found 4 expressions with local error:

29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.8b
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite68.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-+
sin-sum
Counts
4 → 53
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
5.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
7.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
50.0ms
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

series266.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
41.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
147.0ms
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify66.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (59.0ms)

IterNodesCost
0148607
1303551
2643551
31810551
45001548

prune386.0ms

Filtered
65 candidates to 55 candidates (84.6%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New65065
Fresh099
Picked011
Done000
Total651075

Merged error: 19.6b

Counts
75 → 10

localize27.0ms

Local error

Found 4 expressions with local error:

29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.8b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
35.8b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
35.8b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log add-cbrt-cube add-log-exp
sin-sum sqrt-prod
sqrt-div
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
Counts
4 → 39
Calls
4 calls:
7.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
7.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series486.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
147.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
150.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
148.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify166.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 4 (54.0ms)

IterNodesCost
0142553
1288487
2611487
31512487
44748486
55001486

prune360.0ms

Filtered
51 candidates to 48 candidates (94.1%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New50151
Fresh088
Picked011
Done011
Total501161

Merged error: 19.6b

Counts
61 → 11

localize26.0ms

Local error

Found 4 expressions with local error:

29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.8b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
36.5b
(cbrt (pow (* (atan2 x.im x.re) y.im) 3))

rewrite17.0ms

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

series266.0ms

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

simplify81.0ms

Algorithm
egg-herbie
Counts
67 → 67
Iterations

Useful iterations: 4 (75.0ms)

IterNodesCost
0201447
1502417
21079417
32484417
45001415

prune330.0ms

Filtered
67 candidates to 55 candidates (82.1%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New66167
Fresh088
Picked101
Done022
Total671178

Merged error: 19.6b

Counts
78 → 11

regimes418.0ms

Accuracy

74% (3.8b remaining)

Error of 22.7b against oracle of 18.9b and baseline of 33.5b

bsearch320.0ms

Steps
ItersRangePoint
11
-1.329912432178342e-295
2.0275104442738615e-300
1.9052671912502e-308
9
-3.291493950790207e-124
-1.2824460829140723e-131
-1.7427937851165968e-131

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05469
15469

end0.0ms

sample3.8s

Algorithm
intervals
Results
1.6s2208×body1280valid
849.0ms7934×body80valid
675.0ms1379×body640valid
190.0ms558×body320valid
72.0ms44×body2560valid
59.0ms253×body160valid

Profiling

Loading profile data...