MathGroup Archive 2008

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

Search the Archive

Re: Variable names in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92116] Re: Variable names in Mathematica
  • From: amannuc1 <Anthony.J.Mannucci at jpl.nasa.gov>
  • Date: Sat, 20 Sep 2008 05:00:41 -0400 (EDT)
  • References: <gat9lm$egd$1@smc.vnet.net> <gatdtm$gou$1@smc.vnet.net>

On Sep 18, 4:26 am, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>
wrote:
> Hi,
>
> foo[\[Alpha]_, \[ScriptA]_] := \[Alpha]*\[ScriptA]
>
> and
>
> foo[2, 3]
>
> gives
> 6
>
> and
> foo[2, \[Beta]]
>
> gives
>
> 2 \[Beta]
>
> Regards
>    Jens
>
> amannuc1 wrote:
> > Dear Community,
>
> > I can't seem to get an answer to this simple question: are greek letter=
s
> > allowed as variable names in Mathematica? I have tried this with limite=
d
> > success (v 5.2). It seems that some greek letters are reserved, for exa=
mple
> > alpha. I am not sure about that. Any insight is appreciated. Thanks!
>
> > -Tony

That's great. Thank you.

Is there an issue doing this with subscripts? For example, suppose my
variable is
\!\(x\_y\)

Can I put that inside a function as you have done? I am having
problems with this.

-Tony


  • Prev by Date: Integration in Mathematica
  • Next by Date: Re: the graphic of a function
  • Previous by thread: Re: Variable names in Mathematica
  • Next by thread: weird NMaximize behaviour