Re: filling in an array
- To: mathgroup at smc.vnet.net
- Subject: [mg55365] Re: filling in an array
- From: dh <dh at metrohm.ch>
- Date: Sun, 20 Mar 2005 04:11:57 -0500 (EST)
- References: <d1guie$sc$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I wondering if you really want what you describe. You define some special values for a function b[x_]:=x/10; You cane do that by: Array[b,10]=Table[i/10,{i,1,0}] But, mayby you simply want a vector: Table[i/10,{i,1,10}] By the way, your code does not work because the For loop has several errors, read the help. Reading an introduction into Mathematica may be helpful. Daniel dumb_founded wrote: > How can I input values into an array most efficiently? I tried the > code below, but it doesn't work. The kernel starts working through the > loop and never gets out. > > Array[b, 10]; > For[i = 1, i = 10, b[i] = i/10] >