Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: subscripts in function definitions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7994] Re: subscripts in function definitions
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Wed, 30 Jul 1997 23:57:46 -0400
  • Organization: University of Western Australia
  • Sender: owner-wri-mathgroup at wolfram.com

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!).

Cheers,
	Paul 

____________________________________________________________________ 
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 physics.uwa.edu.au 
AUSTRALIA                              http://www.pd.uwa.edu.au/Paul

            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