MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: decrementing problem


Hi Jamie,
it's only a type: change: i<=1 to: i>=1
Daniel

jltrahan at mail.usf.edu wrote:
> Hi,
> I am having a really difficult time with decrementing values in my For
> loop. I have tried i--, --i, i-=1, i=i-1, and nothing is working. The loop
> is as follows:
> For[i=n-1, i<=1, i--, summ=0;
>    For[j=i+1, j<=n, j++, summ=summ + U[[i,j]]*X[[j]]]
> ]
> When I try to print i or j, nothing shows up.
> Can anyone please help?
> 
> Thank you in advance,
> Jamie
> 


  • Prev by Date: Re: Problems with Set, SetDelayed and replacement rules...
  • Next by Date: Re: Limit and Root Objects
  • Previous by thread: Re: decrementing problem
  • Next by thread: Re: decrementing problem