MathGroup Archive 2003

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

Search the Archive

Re: Using Symbols in Functions

  • To: mathgroup at
  • Subject: [mg43862] Re: Using Symbols in Functions
  • From: Tom Burton <tburton at>
  • Date: Thu, 9 Oct 2003 01:54:35 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


Names of symbols must follow certain rules. One easy work-around is to quote
them and turn them into string contants, for example

F["\[UpArrow]"] = 1

(no need for delayed evaluation in this case, by the way, where everything
is constant). In StandardForm and TraditionalForm (unless you turn on the
option ShowStringCharacters at the notebook level), you won't see these
double quotes.

Hope this helps,

Tom Burton

On 10/7/03 11:01 PM, in article bm0jp3$pr2$1 at, "Nicholas
Konidaris" <npk at> wrote:

> I am interested in using symbols* in my mathematica routines.  For
> example, I would like to use the \[UpArrow] and \[DownArrow] symbols as
> parameters to functions:
> f[\[UpArrow]] := 1
> f[\[DownArrow]] := 0

  • Prev by Date: Re: question..
  • Next by Date: Re: Discrete Fourier Transform
  • Previous by thread: Re: piecewise definition of a function
  • Next by thread: Re: Using Symbols in Functions