Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

decrementing problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72293] decrementing problem
  • From: jltrahan at mail.usf.edu
  • Date: Mon, 18 Dec 2006 06:56:25 -0500 (EST)

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: A problem in mathematical logic
  • Next by Date: Re: simplifying inequalities
  • Previous by thread: Re: system of nonlinear equations in mathematica?
  • Next by thread: Re: decrementing problem