Details

Time bar (total: 8.4s)

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

sample151.0ms

Algorithm
intervals
Results
58.0ms73×body1280invalid
27.0ms234×body80valid
21.0ms40×body640invalid
6.0msbody2560invalid
6.0ms17×body320invalid
3.0msbody1280valid
2.0msbody160valid
2.0msbody640valid
2.0msbody320valid
1.0msbody160invalid
1.0msbody80invalid

simplify462.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (50.0ms)

IterNodesCost
0493436
1493436

prune35.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: 34.9b

Counts
2 → 2

localize25.0ms

Local error

Found 4 expressions with local error:

1.2b
(* (atan2 x.im x.re) y.re)
29.9b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

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

series91.0ms

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

simplify45.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (38.0ms)

IterNodesCost
05128689

prune178.0ms

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

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New561268
Fresh011
Picked101
Done000
Total571370

Merged error: 22.7b

Counts
70 → 13

localize29.0ms

Local error

Found 4 expressions with local error:

29.9b
(sin (+ (* (log (* (sqrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (sqrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

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

series76.0ms

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

simplify54.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 0 (48.0ms)

IterNodesCost
05053721

prune160.0ms

Filtered
52 candidates to 65 candidates (-25.0%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New64165
Fresh01212
Picked011
Done000
Total641478

Merged error: 22.7b

Counts
78 → 14

localize29.0ms

Local error

Found 4 expressions with local error:

1.1b
(* (atan2 x.im x.re) y.im)
29.4b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (* (atan2 x.im x.re) (* (cbrt y.re) (cbrt y.re))) (cbrt y.re))))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

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

series83.0ms

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

simplify44.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (38.0ms)

IterNodesCost
05096689

prune151.0ms

Filtered
52 candidates to 68 candidates (-30.8%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New67168
Fresh01212
Picked101
Done011
Total681482

Merged error: 22.7b

Counts
82 → 14

localize35.0ms

Local error

Found 4 expressions with local error:

6.1b
(cbrt (atan2 x.im x.re))
29.4b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (* (atan2 x.im x.re) (* (cbrt y.re) (cbrt y.re))) (cbrt y.re))))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite19.0ms

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

series85.0ms

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

simplify42.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 0 (37.0ms)

IterNodesCost
04988635
14988635

prune85.0ms

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

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New60161
Fresh01212
Picked101
Done011
Total611475

Merged error: 22.7b

Counts
75 → 14

regimes603.0ms

Accuracy

71.9% (3.8b remaining)

Error of 23.3b against oracle of 19.4b and baseline of 33.1b

bsearch204.0ms

Steps
ItersRangePoint
6
-2.2319409480524666e-292
-5.157736219728953e-293
-5.239321828716821e-293
5
-8.124474460648546e-165
-3.669000806034207e-165
-8.044352608599044e-165
8
-217664156687033.22
-102547762882.85402
-127770443998.57332

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
086152
186152

end0.0ms

sample4.1s

Algorithm
intervals
Results
1.6s2141×body1280invalid
869.0ms7533×body80valid
632.0ms1255×body640invalid
170.0ms472×body320invalid
99.0ms134×body1280valid
76.0ms151×body640valid
72.0ms42×body2560invalid
49.0ms395×body80invalid
45.0ms196×body160invalid
40.0ms111×body320valid
17.0ms71×body160valid

Profiling

Loading profile data...