Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Do loop is faulty

  • To: mathgroup at
  • Subject: [mg55403] Re: Do loop is faulty
  • From: David Bailey <dave at>
  • Date: Tue, 22 Mar 2005 03:50:54 -0500 (EST)
  • References: <d1jfsj$sa4$> <d1lvsb$7ub$>
  • Sender: owner-wri-mathgroup at

Dumb Founded,

Why do you keep complaining that Mathematica does not work when you feed 
it mangled syntax? Would a C compiler produce anything useful if you fed 
it Fortran, or half-Fortran-half-C?

Perhaps you should start with some working code - say from the help 
files - and gradually modify it.

In particular, please note that b[i] calls a function with the name b, 
b[[i]] accesses a 1-dimensional array stored in b, but only if you have 
already set up the variable b to be an array:




{0, 0, 0, 0, 3, 0, 0, 0, 0, 0}

David Bailey

  • Prev by Date: Q: Varying colors in Plot3D according to Height
  • Next by Date: File names shortened in 5.1 under Windows 2000
  • Previous by thread: Re: Do loop is faulty
  • Next by thread: Re: Do loop is faulty