I keep getting an overflow error with this one. Sourcecode below.<BR>Bill Wilkinson, if you're out there, you helped me a lot yesterday, but I can't see why I'm still getting an overflow error! At first, there was an memory problem, but by making a sample size, this would be no trouble at all isn't it?<BR><BR>Thanks for any help,<BR><BR>Erwin.<BR><BR>_______________________ _________________<BR><% <BR><BR>' Start changing numbers. Also change the Array numbers but devided by the sample size<BR>Dim times <BR>times = 10000 ' how many loops this thing will make. Change this to 100,000 for overflow along with the sample size below.<BR><BR>Dim sample<BR>Sample = 100 ' Set the sample size, change this to 1,000 for overflow<BR> ' Overflow will come now.<BR>Dim N_one(100) <BR>Dim N_two (100) <BR>Dim N (100)<BR>Dim P_one(100) <BR>Dim P_two (100) <BR>Dim N_devide_N (100)<BR>Dim time (100) <BR>Dim counter <BR><BR>' Stop changing numbers, overflow will come now.<BR><BR>counter = 0<BR>dim i <BR>dim pi <BR>dim mi <BR>dim fi <BR>Dim temp1<BR>Dim temp2<BR><BR><BR>dim n1 <BR>dim n2 <BR><BR>Dim strValue <BR><BR><BR><BR>' Variables which can be altered from user input at later stage<BR>i = Array(0,1,2) <BR>Pi = Array(0.1,0.2,0) <BR>Mi = Array(0,5,30) <BR>Fi = Array(0.5,3)<BR><BR>NN1 = 10<BR>NN2 = 10<BR><BR>'/ End variabels <BR><BR> ' Begin first row<BR> <BR> time0 = 0 <BR><BR> <BR> N_one0 = NN1 <BR><BR> <BR> N_two0 = NN2 <BR><BR> <BR> <BR> N0 = N_one0 + N_two0 <BR><BR> <BR> P_one0 = N_one0/N0 <BR><BR> <BR> P_one0 = N_two0/N0 <BR><BR> <BR> ' End first row<BR><BR>' Putting the first calculation into zero Area<BR>N_one(0) = N_one0<BR>N_two(0) = N_two0<BR>N(0) = N0<BR>N_oneiM1 = N_one0<BR>N_twoiM1 = N_two0<BR>NiM1 = N0 <BR><BR>'Begin massive looping<BR>For i = 1 To times <BR><BR> Timei = i <BR> <BR><BR><BR> N_onei = N_oneiM1 * Fi(0) + N_twoiM1 * Fi(1) <BR><BR><BR><BR> N_twoi = N_oneiM1 * Pi(1) <BR><BR><BR> Ni = N_onei + N_twoi <BR><BR> <BR> P_onei = N_onei/ Ni <BR><BR><BR> P_twoi = N_twoi/ Ni <BR><BR><BR> N_devide_Ni = Ni/ NiM1 <BR><BR> 'Begin sampling every xth element<BR> If i MOD sample = 0 Then <BR> counter = i sample ' integer division <BR> N_one(counter) = N_onei <BR> N_two(counter) = N_twoi<BR> N(counter) = Ni<BR> End If <BR> 'Set labels for X-axis <BR><BR><BR>' Putting the values in the beginning values for the next loop, discarting values that will not be plotted<BR> N_oneiM1 = N_onei<BR> N_twoiM1 = N_twoi<BR> NiM1 = Ni <BR>Next <BR>response.write ("100th value: " & N_one(10) )<BR>%><BR>