Re: Recurision/Array problem sal Tia

From: Someonekicked (someonekicked_at_comcast.net)
Date: 11/22/04


Date: Mon, 22 Nov 2004 10:09:50 -0500


(b1+b2) /25/2 ->c1
 (c1 +b3)/25/2 ->c2
 (c1 +c2) /25/2 ->c3

can u explain more whats going in there ^^^, i dont see how ur proceeding
from one to another.

"sal" <sal@spp.net> wrote in message
news:cnsu1d$e71$1@dizzy.math.ohio-state.edu...
> Greets All,
>
> I'm having a little trouble in creating dynamic arrays / recursion
> formula I've had some help
> in getting this formula but I'm not sure how to make the array dynamic
> enough in vb.net to include Cn.....Xn in example 1.
>
> Example 1:
> User Input for four numbers 15,17,8,12,...N (Note: user can input any
> amount
> of numbers)
>
> (15+17) /25/2 ->b1
> (b1+8) /25/2 ->b2
> (b2+12) /25/2 ->b3
> (b1+b2) /25/2 ->c1
> (c1 +b3)/25/2 ->c2
> (c1 +c2) /25/2 ->c3
>
>
>
> What I have so far not finished though having problems.
>
> Store user input in array [a0,...,aN]
> Create new array [b0,...,bN]
>
> a[0]-->b[0]
>
> for k=1 to N {
> b[k]<--((a[k]+b[k-1])/25)/2
> }
>
>
>
> TIA
>
> PS. i'm using vb.net but any programming help in any language would be
> helpful