Re: removing those annoying $$$$'s from local variables names?
- To: mathgroup at smc.vnet.net
- Subject: [mg79746] Re: removing those annoying $$$$'s from local variables names?
- From: Nasser Abbasi <nma at 12000.org>
- Date: Fri, 3 Aug 2007 06:29:45 -0400 (EDT)
- References: <firstname.lastname@example.org><email@example.com>
On Aug 2, 1:12 am, David Bailey <dave at Remove_Thisdbailey.co.uk> wrote: > > The point is that symbols local to a Module should not ideally be > returned - most people consider this to be a mistake. A mistake for a function to return its results to the caller? > Every symbol must > have a name, and to a first approximation the only difference between a > local name and a global one is the $... appended to the name. > > Why not tell us a bit more about what you are trying to do. > Very simple. A function is called to generate a set of equations. These equations are symbolic. I used Array inside the function, to generate symbolic coefficients, as in c_1, c_2, etc... to use in building these equations. Then the function returns this set back to the caller. The caller display the set of equations for the user. Then the caller later solves these equations for those knowns c's. It would be nice to display these equations without those $$$ signs. It makes them easier to examine. Thanks for the answers given here. I now use Array["c"] inside the function and so I do not have to worry about $$$ anymore. I did not know I could do that before. Thanks again for all the replies. Nasser > David Baileyhttp://www.dbaileyconsultancy.co.uk