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

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

Search the Archive

Re: Non standard evaluation troubles.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20478] Re: Non standard evaluation troubles.
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 27 Oct 1999 02:04:45 -0400
  • References: <7v3e1n$64r@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I. Ioannou <iioannou at u.washington.edu> wrote in message
news:7v3e1n$64r at smc.vnet.net...
> Hi all,
>
> I've got a problem with Plot and Table "non-standard" evaluation.
>
> When I specify list1=Table[Evaluate[function[ksi]],{ksi,1,2,0.01}]
>
> I get 100 numbers that are not the values at ksi 1, 1.01, 1.02,...
>
> The same happens with Plot of the function.
>
> When I type function[1] I get the proper value though. Must be that ksi is
> held unevaluated and ends up mangled in my function. (which is a module
> that I wrote)
>
> How can I avoid this kind of behavior? I don't quite understand at this
> point the various evaluation schemes of Mathematica very well. Any
> didactic pointers wellcome.
>
> Thanks, John
> --
>       Ioannis   I    Ioannou                   phone: (206)-543-1372
>       g-2 group, Atomic Physics                fax:   (206)-685-0635
>       Department of Physics
>       University of Washington        e-mail: iioannou at u.washington.edu
>

John,
1) how does
        Table[function[ksi],{ksi,1,2,0.01}]
work?
2) are there any variables in the definition of function that are picking up
pre-assigned values?


--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565






  • Prev by Date: Re: Possible mis-documentation
  • Next by Date: Re: Avoid long output, Real variables?
  • Previous by thread: Re: Non standard evaluation troubles.
  • Next by thread: Matrices-in-functions question