Re: a question about subscript
- To: mathgroup at smc.vnet.net
- Subject: [mg57840] Re: a question about subscript
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Thu, 9 Jun 2005 06:34:42 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d892n4$sch$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Subscript[] is a function like any other, this mean that that in a pattern v[t_]:=t+Subscript[t,1] the argument of v[] will replace all t in t+Subscript[t,1] If you need a variable that behave like a symbol, use Symbolize[] from the Notation package. Regards Jens "Zhou Jiang" <jiangzhou_yz at yahoo.com> schrieb im Newsbeitrag news:d892n4$sch$1 at smc.vnet.net... > > Hi, my friends, > > I want to take the advantage of the subscript in > Mathematica 5.1. > I defined a function like the following: > > v[t_]=t+t1 > > Since this is a plane text, I cannot type in the > subscript t1 (i.e., t sub 1) for you. This is so > simple which represents a time translocation of > t1. I want Mathematica to compute v[0] and it is > supposed to give t1 (ie. t sub 1). I typed in > v[0] but Mathematica gives me 01 (i.e., 0 sub > 1). Obviously it is not the correct answer. Can > anyone give me some insight of this delima? > Thanks a lot. > > >