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

MathGroup Archive 2004

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

Search the Archive

Re: subscripted function variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50299] Re: subscripted function variables
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 26 Aug 2004 06:50:40 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <cghfns$jdp$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

look what the notation package can do for you

Needs["Utilities`Notation`"]

(* now enter Subsrcipt[u,1] and use the Symbolize[]
  function form the Notation Palette *)


\!\(f[\(u\_1\) : Blank[]] := u\_1\^2\)


now it will work.

Regards
  Jens

Christopher Grinde wrote:
> 
> Is there a way to use subscriptewd variable names in functions?
> 
> I have tried
> 
> f[Subscript[u,1]_]:=Subscript[u,1]^2
> 
> but I am not able to make this work.
> 
> Any tip would be highly appreciated as I have a code that generates a high
> number of functions using Subscript[u,1]->Subscript[u,n] as variables.
> 
> Christopher Grinde


  • Prev by Date: Is a For loop always a no-no?
  • Next by Date: Re: subscripted function variables
  • Previous by thread: Re: Re: subscripted function variables
  • Next by thread: Is a For loop always a no-no?