MathGroup Archive 1997

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

Search the Archive

Re: subscripts in function definitions

  • To: mathgroup at
  • Subject: [mg7994] Re: subscripts in function definitions
  • From: Paul Abbott <paul at>
  • Date: Wed, 30 Jul 1997 23:57:46 -0400
  • Organization: University of Western Australia
  • Sender: owner-wri-mathgroup at

Mike Golding wrote:

>     Is it possible to use subscripted variables in a function definition?
>      something like
>            f[x sub 1_, x sub 2_] := x sub 1  / x sub 2
> where by     x sub 1     I mean the visually subscripted form obtained
> either from the palette or the keyboard.  I just wonder if I'm doing
> something stupid. Mma  just seems to want to multiply the blanks
> by the subscripted variable within variable list which is not what I
> want.

What you want is possible -- you first need to Symbolize your
variables.  The Utilities`Notation` package does what you want (and a
whole lot more too!).


Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia           
Nedlands WA  6907                     mailto:paul at 

            God IS a weakly left-handed dice player

  • Prev by Date: Re: Wrong behavior of CrossProduct
  • Next by Date: Conference on Computer Algebra Systems, Dec 1997, Belarus
  • Previous by thread: Re: subscripts in function definitions
  • Next by thread: Wrong behavior of CrossProduct