Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: RandomReal gets stuck

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100781] Re: RandomReal gets stuck
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Sat, 13 Jun 2009 06:06:43 -0400 (EDT)
  • References: <200906061025.GAA04602@smc.vnet.net> <h0fvjl$rb1$1@smc.vnet.net> <h0sbul$heh$1@smc.vnet.net>

DrMajorBob wrote:

>> And Mathematica does not recognizes
>> input Subscript[a,i] as equivalent to a[i].
>
> You mean something like zero doesn't come from
>
> a[1] - Subscript[a, 1]
>
> for instance?
>
> and
>
> a[1] === Subscript[a, 1]
>
> False
>
> That's true, but when using this trick I never actually type or use the  
> subscripted form; I only see it. So there's no chance the conflict can  
> occur for me.
>
> Subscripts also disappear if you assign values, such as in
>
> a[2] = 3; a[2]
>
> 3
>
> a[j] displays subscripted for any j where a[j] is undefined.
>
> Maybe you won't find it useful, but maybe you will. I don't know.
>
> Bobby
>

The issue is, that subFunction makes not Subscript[a,i] but
SubscriptBox[a,i], so if you enter (I use LaTeX form here to mark the
subscripted a)

a[1]===a_1
True

It's really great!


-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: ParallelTable[ ]
  • Next by Date: Re: keybord problem with version 7 and altgr
  • Previous by thread: Re: Re: RandomReal gets stuck
  • Next by thread: Re: RandomReal gets stuck