MathGroup Archive 1998

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

Search the Archive

Evaluation Control

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14858] Evaluation Control
  • From: phantomlord at my-dejanews.com
  • Date: Fri, 20 Nov 1998 02:17:04 -0500
  • Organization: Deja News - The Leader in Internet Discussion
  • Sender: owner-wri-mathgroup at wolfram.com

I am writing a function which involves manipulation of lists, but have
stumbled across a problem.  It seems as though when I call
"Print[list[i]]" in a Do[] loop (where i is the iterative variable) it
returns the following: {0.,.2,.4,.6,.8,1.}[i] i.e. it hasn't referenced
the one element I require for computation in the rest of the code.

I try to evaluate a function f[x] at x=list[i], which returns:
Cosh[{0.,.2,.4,.6,.8,1.}[i.]]+....bla bla bla so it seems that it
interprets i as a decimal and NOT an integer, is this the cause of the
problem or is there something else I am doing wrong?

Thanks
Paul

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own



  • Prev by Date: Re: Making a large matrix
  • Next by Date: Re: Exact value of Cos[Pi/17]
  • Previous by thread: Re: Plotting multiple lines with different color or line style?
  • Next by thread: Re: Evaluation Control