Details

Time bar (total: 7.2s)

sample365.0ms

Algorithm
intervals
Results
66.0ms86×body1280valid
31.0ms254×body80valid
20.0ms40×body640valid
6.0ms18×body320valid
2.0ms10×body160valid

simplify530.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
0493436
1493436

prune20.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 27.8b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

1.8b
(* (atan2 x.im x.re) y.im)
25.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
25.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite36.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)))
23.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)))

simplify49.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
05069689

prune152.0ms

Filtered
56 candidates to 68 candidates (-21.4%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New60868
Fresh011
Picked101
Done000
Total61970

Merged error: 14.0b

Counts
70 → 9

localize30.0ms

Local error

Found 4 expressions with local error:

25.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
26.0b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
26.0b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
33.0b
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite25.0ms

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

series179.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
20.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
21.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
129.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify53.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 0 (46.0ms)

IterNodesCost
04881889
14881889

prune140.0ms

Filtered
51 candidates to 61 candidates (-19.6%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New61061
Fresh088
Picked011
Done000
Total61970

Merged error: 14.0b

Counts
70 → 9

localize28.0ms

Local error

Found 4 expressions with local error:

25.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
33.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
33.0b
(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:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
7.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
7.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series171.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)))
56.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)))

simplify44.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 0 (37.0ms)

IterNodesCost
05054851

prune125.0ms

Filtered
48 candidates to 51 candidates (-6.3%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New49251
Fresh167
Picked011
Done011
Total501060

Merged error: 14.0b

Counts
60 → 10

localize25.0ms

Local error

Found 4 expressions with local error:

1.6b
(* y.re (atan2 x.im x.re))
25.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
25.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* y.re (atan2 x.im x.re))))

rewrite18.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
(* y.re (atan2 x.im x.re))
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) (* y.re (atan2 x.im x.re))))

series72.0ms

Counts
4 → 12
Calls
4 calls:
4.0ms
(* y.re (atan2 x.im x.re))
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) (* y.re (atan2 x.im x.re))))

simplify45.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
05128689

prune96.0ms

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

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New67168
Fresh167
Picked011
Done022
Total681078

Merged error: 14.0b

Counts
78 → 10

regimes454.0ms

Accuracy

74.9% (3.5b remaining)

Error of 22.3b against oracle of 18.8b and baseline of 32.8b

bsearch213.0ms

Steps
ItersRangePoint
6
5.3773262060695594e-61
6.875234800690788e-60
1.1812805417144586e-60
6
1.4126018779062698e-247
1.1264860254360087e-246
1.1131057807197489e-246
9
-2.9885431692775155e-304
2.648985686240207e-304
-1.7600018223762e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
092122
192122

end0.0ms

sample4.2s

Algorithm
intervals
Results
1.6s2209×body1280valid
885.0ms7971×body80valid
701.0ms1403×body640valid
194.0ms562×body320valid
85.0ms49×body2560valid
60.0ms255×body160valid

Profiling

Loading profile data...