MathGroup Archive 2004

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

Search the Archive

Re: newbie question on functions

  • To: mathgroup at
  • Subject: [mg51794] Re: newbie question on functions
  • From: AES/newspost <siegman at>
  • Date: Tue, 2 Nov 2004 02:05:23 -0500 (EST)
  • References: <cm22t7$gk1$> <cm4r7j$6lm$>
  • Sender: owner-wri-mathgroup at

In article <cm4r7j$6lm$1 at>,
 David Bailey <dave at> wrote:

> Yes, of course you can save the result of a calculation. For example:
> result=intensity[4.,5.]

For the original "newbie" poster:

For newbies, or less expert users like me, it's easy to think that 
something like

    AppendTo[list, expr]

is a "command" that will do what it says: append expr to list.  Takes a 
few bad experiences to realize that you actually have to say

    list = AppendTo[list,expr]

Same general principle applies more broadly.

  • Prev by Date: Null entry in a Graphics list?
  • Next by Date: Re: Converting Mathematica to MS Word
  • Previous by thread: Re: newbie question on functions
  • Next by thread: Re: Re: newbie question on functions