MathGroup Archive 2004

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

Search the Archive

Re: Information about subscripted function


You need to use the Notation package to Symbolize your function. Copy the 
Cell Expressions below into a Mathematica notebook, and evaluate to see the 
required result. I have included full cell expressions so you can see what 
is going on more clearly.

CAVEAT: when you use Symbolize (and other functions in the Notation package) 
you should enter it using the Notation palette that appears when you execute 
<<Utilities`Notation`, rather than entering it manually. This is because 
there is some hidden tagbox information that is generated.

{
Cell[BoxData[
    RowBox[{"<<", "Utilities`Notation`"}]], "Input",
  CellLabel->"In[1]:="],

Cell[BoxData[
    RowBox[{"Symbolize", "[",
      TagBox[
        SubscriptBox["f", "1"],
        NotationBoxTag,
        TagStyle->"NotationTemplateStyle"], "]"}]], "Input",
  CellLabel->"In[2]:="],

Cell[BoxData[
    RowBox[{
      RowBox[{
        SubscriptBox["f", "1"], "[", "x_", "]"}], ":=",
      RowBox[{"x", "^", "2"}]}]], "Input",
  CellLabel->"In[4]:="],

Cell[BoxData[
    RowBox[{"?",
      SubscriptBox["f", "1"]}]], "Input",
  CellLabel->"In[5]:="]
}

Steve Luttrell

<seb at magda.ifj.edu.pl> wrote in message news:cq8tj5$h18$1 at smc.vnet.net...
> when I define a function with a subscript in its
> name: (cell content below)
>
> In[1]:= \!\(f\_1[x_] := x^2\)
>
> I can't see it by use of information operator:
>
> In[2]:= \!\(\(?\ f\_1\)\)
>
> Information::ssym
>
> Out[2]:= \!\(Information[f\_1, LongForm -> False]\)
>
> of course I may ask:
>
> In[3]:= ? Subscript
>
> but then I get ALL functions which have subscripts in their names!
>
> so, how to ask about the defintions of subscripted functions ?
>
> Seb.
> 



  • Prev by Date: Re: finite domains
  • Next by Date: Re: Vector Piecewise in 5.1
  • Previous by thread: Information about subscripted function
  • Next by thread: Re: Information about subscripted function