MathGroup Archive 2007

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

Search the Archive

Re: removing those annoying $$$$'s from local variables names?

  • To: mathgroup at
  • Subject: [mg79746] Re: removing those annoying $$$$'s from local variables names?
  • From: Nasser Abbasi <nma at>
  • Date: Fri, 3 Aug 2007 06:29:45 -0400 (EDT)
  • References: <f8pk78$2i1$><f8s3lp$47e$>

On Aug 2, 1:12 am, David Bailey <dave at> 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.

> David Bailey

  • Prev by Date: OpenAuthorTools palette missing from V6 ?
  • Next by Date: Re: Paul Abbott Chebyshev Article
  • Previous by thread: Re: removing those annoying $$$$'s from local variables names?
  • Next by thread: Re: Differentiation w.r.t. elements of lists