[Date Index] [Thread Index] [Author Index]
Re: newbie question on functions
In article <cm4r7j$6lm$1 at smc.vnet.net>, David Bailey <dave at Remove_Thisdbailey.co.uk> 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.