|
[Date Index]
[Thread Index]
[Author Index]
Re: odd delay problem
- To: mathgroup at smc.vnet.net
- Subject: [mg93192] Re: odd delay problem
- From: dh <dh at metrohm.ch>
- Date: Thu, 30 Oct 2008 02:04:11 -0500 (EST)
- References: <ge9f2e$973$1@smc.vnet.net>
Hi Michael,
Array returns a list of functions. Therefore, when you say G=Array[a,..]
and a[i] already has a value, the functions a[i] will be evaluated and
you end up with a list of numbers, not functions. To prevent this, Clear
a before using it.
hope this helps, Daniel
Michael Mandelberg wrote:
> I am running v. 6.0.3.0
>
> I am having some weirdness where I will do something like:
>
> G=Array[f,100];
> For[i=1, i<=100, i++,
> f[i] = some calculation]
>
> Then I will look at the result:
>
> ListLinePlot[G]
>
> The strange thing is, if I rerun this, but change 'some calculation'
> to 'some other calculation', then rerun the plot, the plot stays the
> same. If I rerun the loop again, then the plot will change as
> expected. What's going on here? Why isn't it "taking" the first time?
>
--
Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at metrohm.com>
Internet:<http://www.metrohm.com>
Prev by Date:
compelling evaluation
Next by Date:
Re: Speech Recognition? Online ISBN databases?
Previous by thread:
Re: odd delay problem
Next by thread:
Re: odd delay problem
|