Details

Time bar (total: 8.1s)

sample436.0ms

Algorithm
intervals
Results
63.0ms63×body1280valid
30.0ms262×body80valid
17.0ms34×body640valid
5.0ms15×body320valid
5.0msbody2560valid
1.0msbody160valid

simplify38.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

localize24.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)))

rewrite31.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)))
11.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)))

series84.0ms

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

simplify88.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0206434
1539395
21201392
32732392
45002392

prune453.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

localize30.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)))

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

series173.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
55.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
54.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
58.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify61.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 4 (55.0ms)

IterNodesCost
0152580
1321508
2672505
31724505
45001504

prune418.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)))

series74.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(log (exp (* (atan2 x.im x.re) y.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
56.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify65.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 4 (59.0ms)

IterNodesCost
0174444
1380400
2818399
32053399
45002397

prune424.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

localize27.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))
3.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)))

series122.0ms

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

simplify49.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0201743
1526731
21327729
35001729

prune418.0ms

Filtered
71 candidates to 54 candidates (23.9%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New71071
Fresh066
Picked011
Done022
Total71980

Merged error: 19.2b

Counts
80 → 9

regimes506.0ms

Accuracy

76.9% (3.3b remaining)

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

bsearch400.0ms

Steps
ItersRangePoint
10
-5.561573377002615e-304
3.0877076910478216e-302
4.6617580803001e-311
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
05976
15976

end0.0ms

sample4.1s

Algorithm
intervals
Results
1.6s2216×body1280valid
855.0ms7985×body80valid
677.0ms1396×body640valid
181.0ms524×body320valid
81.0ms47×body2560valid
51.0ms230×body160valid

Profiling

Loading profile data...