Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: Do loop is faulty

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

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:

b=Array[0&,10];

b[[5]]=3;

b

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

David Bailey
dbaileyconsultancy.co.uk


  • 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