MathGroup Archive 2004

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

Search the Archive

Re: Typing functions using subscripts


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