|
[Date Index]
[Thread Index]
[Author Index]
save value in array during loop
- To: mathgroup at smc.vnet.net
- Subject: [mg70487] save value in array during loop
- From: schaa at geo.uni-koeln.de
- Date: Tue, 17 Oct 2006 02:59:51 -0400 (EDT)
Hi there,
I am new to mathematica and I have the following problem:
save a certain value in an array calculated during a loop.
My attempt:
For[i=0,i<=12,
rho = i*25;
V[[i]] = UserFunction[0.5];
i++]
rho has the role of a global variable and is used in several other functions.
UserFunction stands for a function which in turn calls other functions.
V is the array of dimension 13 from 0 to 12.
The code above does not work. What needed to be changed to make it
work?
Thanks a lot
-Ralf
Prev by Date:
sum of binomials .. bug ?
Next by Date:
Dimensional analysis package
Previous by thread:
Re: sum of binomials .. bug ?
Next by thread:
Re: save value in array during loop
|