Details

Time bar (total: 9.4s)

sample447.0ms

Algorithm
intervals
Results
49.0ms262×body80valid
47.0ms63×body1280valid
19.0ms34×body640valid
5.0ms15×body320valid
5.0msbody2560valid
1.0msbody160valid

simplify39.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 (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 32.8b

Counts
2 → 1

localize33.0ms

Local error

Found 4 expressions with local error:

2.3b
(* (atan2 x.im x.re) y.im)
29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.7b
(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)))

series295.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (atan2 x.im x.re) y.im)
47.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
45.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
183.0ms
(sin (+ (* (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 (13.0ms)

IterNodesCost
0196425
1506388
21139386
32507386
45002386

prune449.0ms

Filtered
68 candidates to 54 candidates (20.6%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New60868
Fresh000
Picked101
Done000
Total61869

Merged error: 19.2b

Counts
69 → 8

localize29.0ms

Local error

Found 4 expressions with local error:

29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
31.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
31.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite26.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:
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)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
8.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series536.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
163.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
161.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
166.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify159.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 4 (51.0ms)

IterNodesCost
0142553
1288487
2611487
31512487
44748486
55001486

prune399.0ms

Filtered
51 candidates to 48 candidates (5.9%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New50151
Fresh077
Picked011
Done000
Total50959

Merged error: 19.2b

Counts
59 → 9

localize24.0ms

Local error

Found 4 expressions with local error:

3.5b
(log (exp (* (atan2 x.im x.re) y.im)))
29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite16.0ms

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

series273.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(log (exp (* (atan2 x.im x.re) y.im)))
43.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
46.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
164.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify60.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 4 (55.0ms)

IterNodesCost
0164435
1347393
2757393
31835393
45002391

prune418.0ms

Filtered
64 candidates to 53 candidates (17.2%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New64064
Fresh077
Picked011
Done011
Total64973

Merged error: 19.2b

Counts
73 → 9

localize28.0ms

Local error

Found 4 expressions with local error:

12.2b
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.6b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite20.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))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.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)))

series414.0ms

Counts
4 → 12
Calls
4 calls:
162.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
45.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
43.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
164.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify153.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 4 (145.0ms)

IterNodesCost
0191725
1493717
21262717
34720717
45001647

prune386.0ms

Filtered
71 candidates to 53 candidates (25.4%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New71071
Fresh066
Picked011
Done022
Total71980

Merged error: 19.2b

Counts
80 → 9

regimes495.0ms

Accuracy

76.9% (3.3b remaining)

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

bsearch388.0ms

Steps
ItersRangePoint
10
-5.561573377002615e-304
3.0877076910478216e-302
-5.55828335649831e-309
4
-4.3940009064737685e-150
-2.250718756727284e-150
-4.1749528611157483e-150
9
-1.2147220719604092e-68
-1.0646474794999867e-75
-1.498168830979673e-74

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05676
15676

end0.0ms

sample4.2s

Algorithm
intervals
Results
1.6s2216×body1280valid
880.0ms7985×body80valid
705.0ms1396×body640valid
185.0ms524×body320valid
80.0ms47×body2560valid
53.0ms230×body160valid

Profiling

Loading profile data...