Roger Hui writes: > > timer=: 6!:2 > > ] t=: 3 : 'timer ''+/\a'' [ a=.y?@$0'"0 ] n=: 1e4 * 2 ^ i.7 > 0.000123759 0.000225448 0.000207568 0.000373511 0.00126888 0.00315096 > 0.00598093 > > load 'plot' > plot n;t > > Looks pretty linear to me.
Linear? well maybe, interesting Yes. (see n = 77000 117000 125000 233000) timer=: 6!:2 t=: 3 : 'timer ''+/\a'' [ a=.y?@$0'"0 ] n=: 0.5e5 + 1e3 * i.200 load 'plot' plot n;t 1e_3 1e5 *"1 n ,. t 50 22.7403 51 22.9917 52 23.2152 53 23.2432 54 23.6343 55 24.1651 56 24.7238 57 24.9752 58 25.534 59 25.7295 60 26.2324 61 26.6794 62 26.9587 63 27.4337 64 27.7689 65 28.1321 66 28.4673 67 28.7746 68 29.2495 69 29.6965 70 29.7244 71 30.2832 72 30.8419 73 31.1771 74 31.7638 75 32.127 76 33.3562 77 32.993 78 33.3562 79 33.7194 80 34.0546 81 34.2781 82 34.781 83 35.2 84 35.5073 85 35.9543 86 36.2337 87 36.7365 88 37.1835 89 37.4629 90 37.8819 91 38.273 92 38.9714 93 39.1949 94 39.6698 95 39.9492 96 40.48 97 41.2902 98 41.2902 99 41.7371 100 42.1283 101 42.4914 102 43.1898 103 43.2737 104 43.7486 105 44.0559 106 44.866 107 44.894 108 45.3968 109 45.9556 110 46.2908 111 46.3746 112 47.101 113 47.3803 114 47.6597 115 48.1346 116 48.6095 117 47.8552 118 49.5035 119 49.727 120 50.146 121 50.6489 122 50.9562 123 51.8222 124 51.8222 125 26.0648 126 26.1206 127 26.3441 128 26.8749 129 26.9029 130 26.7911 131 27.0705 132 28.5791 133 28.1041 134 28.0762 135 28.2997 136 28.4394 137 28.7746 138 29.6965 139 29.1098 140 29.2216 141 29.4171 142 29.6686 143 29.9479 144 29.8362 145 30.4787 146 30.4787 147 30.9257 148 31.0654 149 31.1492 150 31.4565 151 31.7918 152 31.5403 153 32.2946 154 32.0711 155 31.9873 156 32.6857 157 32.6857 158 32.7695 159 33.2724 160 33.2444 161 33.8032 162 33.887 163 33.887 164 33.9708 165 34.3898 166 36.1219 167 34.6692 168 34.8368 169 34.9486 170 35.5073 171 35.5911 172 39.3346 173 36.3733 174 36.4292 175 36.4851 176 40.2286 177 36.8483 178 36.9879 179 37.1276 180 37.7702 181 37.9657 182 37.826 183 38.1613 184 38.3568 185 38.6641 186 38.6921 187 39.0552 188 39.0552 189 39.1391 190 41.4857 191 40.4241 192 40.5079 193 40.3403 194 40.9549 195 40.5359 196 40.6476 197 40.9549 198 42.0165 199 41.5137 200 42.2679 201 41.9048 202 42.687 203 42.6311 204 43.8883 205 42.9105 206 43.1619 207 44 208 43.4692 209 43.8045 210 44.1397 211 44.2794 212 44.9778 213 44.3911 214 44.866 215 46.4305 216 45.5924 217 45.6203 218 46.1511 219 45.6203 220 46.9054 221 46.3746 222 46.8495 223 46.8775 224 46.9613 225 47.2127 226 48.8889 227 52.8838 228 48.3022 229 47.9111 230 47.9391 231 49.5314 232 49.6152 233 48.833 234 49.6432 235 49.8667 236 50.9562 237 49.9505 238 50.5651 239 50.3416 240 50.621 241 50.9562 242 51.906 243 52.2413 244 51.5987 245 51.4591 246 54.1968 247 52.0457 248 53.3308 249 53.2191 :-) NB this also shows that garbage collection or something similar might be affecting the times as I obtain different "curves" running this (and similar) expressions multiple times. Ian ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- This email is intended for the addressee(s) named and may contain confidential and/or privileged information. If you are not the intended recipient, please notify the sender and then delete it immediately. Any views expressed in this email are those of the individual sender except where the sender expressly and with authority states them to be the views of the Office of Environment and Heritage, NSW Department of Premier and Cabinet. PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
