Details

Time bar (total: 8.2s)

analyze1.5s

Algorithm
search
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
0%99.8%0.2%3
0%99.8%0.2%4
0%99.8%0.2%5
9.4%90.4%0.2%6
17.2%82.7%0.2%7
19.5%80.3%0.2%8
30.8%69%0.2%9
35.5%64.3%0.2%10
42.4%57.4%0.2%11
47.1%52.7%0.2%12
49%50.8%0.2%13
50.1%49.7%0.2%14

sample153.0ms

Algorithm
intervals
Results
48.0ms65×body1280invalid
32.0ms244×body80valid
29.0ms57×body640invalid
8.0msbody2560invalid
5.0ms13×body320invalid
4.0msbody1280valid
2.0ms16×body80invalid
1.0msbody640valid
1.0msbody320valid
1.0msbody160invalid

simplify470.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (50.0ms)

IterNodesCost
0493436
1493436

prune19.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: 30.9b

Counts
2 → 2

localize25.0ms

Local error

Found 4 expressions with local error:

1.2b
(* (atan2 x.im x.re) y.im)
28.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.5b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

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

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

simplify43.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (37.0ms)

IterNodesCost
05069689

prune141.0ms

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

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New62668
Fresh011
Picked101
Done000
Total63770

Merged error: 15.6b

Counts
70 → 7

localize30.0ms

Local error

Found 4 expressions with local error:

28.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.9b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.9b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
35.5b
(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)))

rewrite23.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)))
10.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)))

series176.0ms

Counts
4 → 12
Calls
4 calls:
6.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)))

simplify50.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 0 (44.0ms)

IterNodesCost
04881889
14881889

prune153.0ms

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

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New57461
Fresh156
Picked101
Done000
Total59968

Merged error: 15.6b

Counts
68 → 9

localize34.0ms

Local error

Found 4 expressions with local error:

28.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.9b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.9b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
35.4b
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite28.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)))
6.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
13.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (exp (log (cbrt (+ (* 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)))
20.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
20.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
127.0ms
(sin (+ (* (log (* (fabs (cbrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify64.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 0 (57.0ms)

IterNodesCost
04859889
14859889

prune148.0ms

Filtered
50 candidates to 61 candidates (-22.0%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New60161
Fresh178
Picked101
Done000
Total62870

Merged error: 15.6b

Counts
70 → 8

localize34.0ms

Local error

Found 4 expressions with local error:

28.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.9b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.9b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
35.5b
(sin (+ (* (log (* (fabs (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite28.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)))
15.0ms
(sin (+ (* (log (* (fabs (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))) (sqrt (exp (log (cbrt (+ (* x.re x.re) (* x.im x.im)))))))) y.im) (* (atan2 x.im x.re) y.re)))

series174.0ms

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

simplify67.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 0 (58.0ms)

IterNodesCost
04859889
14859889

prune106.0ms

Filtered
50 candidates to 61 candidates (-22.0%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New61061
Fresh077
Picked011
Done000
Total61869

Merged error: 15.6b

Counts
69 → 8

regimes436.0ms

Accuracy

77% (3.3b remaining)

Error of 22.1b against oracle of 18.9b and baseline of 33.0b

bsearch70.0ms

Steps
ItersRangePoint
6
-3.7591087908186454e-308
5.055916371285476e-308
3.1453924753302e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
07065
17065

end0.0ms

sample3.9s

Algorithm
intervals
Results
1.6s2154×body1280invalid
829.0ms7550×body80valid
633.0ms1276×body640invalid
157.0ms460×body320invalid
99.0ms141×body1280valid
72.0ms147×body640valid
62.0ms39×body2560invalid
43.0ms381×body80invalid
36.0ms164×body160invalid
33.0ms99×body320valid
14.0ms63×body160valid

Profiling

Loading profile data...