MathGroup Archive 2006

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

Search the Archive

Subscript for a variable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67747] Subscript for a variable
  • From: "Paul" <pw23 at gmx.net>
  • Date: Thu, 6 Jul 2006 06:53:18 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,
why is the following definition not possible:

f[x_{1}_]:=x_{1}

as an expression for

Cell[BoxData[
    RowBox[{
      RowBox[{"f", "[",
        RowBox[{
          SubscriptBox["x", "1"], "_"}], "]"}], ":=",
      SubscriptBox["x", "1"]}]], "Input"]

I'll simply have an indexed variable x. I'm doing it with x and then
Ctrl+_

How is this done correctly?

Thanks in advance for your help. 

Paul


  • Prev by Date: Condition in replacement rule
  • Next by Date: RE:Manipulate list elements
  • Previous by thread: Re: Condition in replacement rule
  • Next by thread: RE: Subscript for a variable