Details

Time bar (total: 11.6s)

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

sample140.0ms

Algorithm
intervals
Results
43.0ms53×body1280invalid
29.0ms239×body80valid
18.0ms34×body640invalid
7.0msbody1280valid
6.0ms16×body320invalid
3.0ms11×body160invalid
3.0msbody2560invalid
3.0msbody640valid
2.0msbody320valid
1.0ms11×body80invalid
0.0msbody160valid

simplify517.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (62.0ms)

IterNodesCost
0497036
1497036

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: 32.1b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

1.1b
(* (atan2 x.im x.re) y.im)
27.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

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

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

simplify62.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (51.0ms)

IterNodesCost
04750692
14750692

prune150.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: 18.6b

Counts
70 → 9

localize29.0ms

Local error

Found 4 expressions with local error:

27.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.7b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
28.7b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
32.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)))

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)))
3.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
11.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:
7.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)))
128.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)))

simplify59.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
04911911
14911911

prune161.0ms

Filtered
54 candidates to 61 candidates (-13.0%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New58361
Fresh178
Picked101
Done000
Total601070

Merged error: 18.5b

Counts
70 → 10

localize38.0ms

Local error

Found 4 expressions with local error:

27.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.7b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
31.1b
(pow (+ (* x.re x.re) (* x.im x.im)) 1/3)
32.0b
(sin (+ (* (log (* (fabs (pow (+ (* x.re x.re) (* x.im x.im)) 1/3)) (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
pow1
add-exp-log
add-cbrt-cube add-log-exp
cbrt-prod unpow-prod-down pow-unpow sqrt-prod
cbrt-div flip3-+ sqrt-div flip-+
pow-to-exp rem-sqrt-square pow-pow sqrt-pow1 pow1/2 unpow1/3 sin-sum pow1/3 pow-exp sqr-pow
Counts
4 → 54
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)))
5.0ms
(pow (+ (* x.re x.re) (* x.im x.im)) 1/3)
10.0ms
(sin (+ (* (log (* (fabs (pow (+ (* x.re x.re) (* x.im x.im)) 1/3)) (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)))
22.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
20.0ms
(pow (+ (* x.re x.re) (* x.im x.im)) 1/3)
129.0ms
(sin (+ (* (log (* (fabs (pow (+ (* x.re x.re) (* x.im x.im)) 1/3)) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify45.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 0 (38.0ms)

IterNodesCost
05012910

prune184.0ms

Filtered
55 candidates to 66 candidates (-20.0%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New65166
Fresh099
Picked101
Done000
Total661076

Merged error: 18.4b

Counts
76 → 10

localize45.0ms

Local error

Found 4 expressions with local error:

27.7b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
28.7b
(cbrt (+ (* x.re x.re) (* x.im x.im)))
30.0b
(pow (+ (* x.re x.re) (* x.im x.im)) (* (cbrt 1/3) (cbrt 1/3)))
32.1b
(sin (+ (* (log (* (fabs (pow (pow (+ (* x.re x.re) (* x.im x.im)) (* (cbrt 1/3) (cbrt 1/3))) (cbrt 1/3))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
add-exp-log
add-cbrt-cube add-log-exp
cbrt-prod unpow-prod-down sqrt-prod
cbrt-div flip3-+ sqrt-div flip-+
pow-to-exp rem-sqrt-square pow-unpow pow-pow sqrt-pow1 pow1/2 sin-sum pow1/3 pow-exp sqr-pow
Counts
4 → 51
Calls
4 calls:
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
5.0ms
(pow (+ (* x.re x.re) (* x.im x.im)) (* (cbrt 1/3) (cbrt 1/3)))
10.0ms
(sin (+ (* (log (* (fabs (pow (pow (+ (* x.re x.re) (* x.im x.im)) (* (cbrt 1/3) (cbrt 1/3))) (cbrt 1/3))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

series218.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
20.0ms
(cbrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(pow (+ (* x.re x.re) (* x.im x.im)) (* (cbrt 1/3) (cbrt 1/3)))
157.0ms
(sin (+ (* (log (* (fabs (pow (pow (+ (* x.re x.re) (* x.im x.im)) (* (cbrt 1/3) (cbrt 1/3))) (cbrt 1/3))) (sqrt (cbrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify60.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
048831101
148831101

prune207.0ms

Filtered
56 candidates to 63 candidates (-12.5%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New58563
Fresh279
Picked011
Done000
Total601373

Merged error: 18.4b

Counts
73 → 13

regimes581.0ms

Accuracy

77.5% (3.2b remaining)

Error of 22.3b against oracle of 19.1b and baseline of 33.3b

bsearch1.6s

Steps
ItersRangePoint
10
-1.9469281993079768e-303
2.270033269815668e-298
-3.4130425136327e-311

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03965
13965

end0.0ms

analyze1.3s

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

sample4.1s

Algorithm
intervals
Results
1.6s2060×body1280invalid
894.0ms7579×body80valid
650.0ms1246×body640invalid
170.0ms469×body320invalid
95.0ms57×body2560invalid
86.0ms165×body640valid
80.0ms108×body1280valid
46.0ms382×body80invalid
44.0ms106×body320valid
38.0ms154×body160invalid
10.0ms42×body160valid

Profiling

Loading profile data...