Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Using Symbols in Functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43869] Re: Using Symbols in Functions
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 9 Oct 2003 01:54:59 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <bm0jp3$pr2$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

you can use

f["\[UpArrow]"]:=1
f["\[DownArrow]"]:=0

or you can edit the

$TopDirectory/SystemFiles/FrontEnd/TextResources/UnicodeCharacters.tr

file. In this file you will find a line like

0x2191		\[UpArrow]		($&UpArrow;$   $\uparrow$)		Infix		650		None		2		2

and you must change this line to 

0x2191		\[UpArrow]		($&UpArrow;$   $\uparrow$)		Letter		650		None		2		2


and similar for the \[DownArrow] line.

Regards
  Jens

Nicholas Konidaris wrote:
> 
> Dear Mathematica Users -
> 
>         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
> 
>         But Mathematica raises a syntax error.  Is it possible to use these
> symbols* as I tried above?  If so, how?
> 
> Thank you for your help.
> n
> 
> * I realize that symbol probably has many meanings, in the context of the
> Mathematica interpreter.  I apologize if I'm not using the correct
> nomenclature here.


  • Prev by Date: RE: question on Sum over selected integers
  • Next by Date: Re: Discrete Fourier Transform
  • Previous by thread: Re: Using Symbols in Functions
  • Next by thread: RE: question on Sum over selected integers