MathGroup Archive 2004

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

Search the Archive

Re: Typing functions using subscripts

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45419] Re: Typing functions using subscripts
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 7 Jan 2004 01:09:09 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <btdvdi$h5$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

look in the Notation` package, you must Symbolize[]
your subscripted variables.

Regards
  Jens

sashan wrote:
> 
> Hi
> 
> I'm trying to make a simple function using subscripts and greek symbols
> instead of typing the English equivalent.
> 
> Here is one function using Greek symbols and subscripts. It doesn't
> work. I've also pasted the corresponding cell expression below.
> \!\(\(x\_2[\(?\_1\) _] := 2\ ?\_1;\)\)
> 
> Cell[BoxData[
> RowBox[{
> RowBox[{
> RowBox[{
> SubscriptBox["x", "2"], "[",
> RowBox[{
> SubscriptBox["\[Theta]", "1"], "_"}], "]"}], ":=",
> RowBox[{"2", " ",
> SubscriptBox["\[Theta]", "1"]}]}], ";"}]], "Input"]
> 
> Here is a similar function that works. It avoids using the symbols and
> subscripts.
> x3[theta1_] := 3 theta1;
> Cell[BoxData[
> RowBox[{
> RowBox[{
> RowBox[{"x3", "[", "theta1_", "]"}], ":=",
> RowBox[{"3", " ", "theta1"}]}], ";"}]], "Input"]


  • Prev by Date: RE: Typing functions using subscripts
  • Next by Date: Quantum algebra package
  • Previous by thread: RE: Typing functions using subscripts
  • Next by thread: Re: Typing functions using subscripts