MathGroup Archive 2000

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

Search the Archive

Re: subscripted symbols

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23469] Re: subscripted symbols
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 11 May 2000 00:54:17 -0400 (EDT)
  • References: <8fb1s9$hrp@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

(*1*)  A={Subscript[A,1]}
evaluates as follows
1. The assignment A={Subscript[A,1]} is stored
2. {Subscript[A,1]} is evaluated and the value is the output from (*1*)

In stage 2., the already-stored assignment to A is used; this gives a
recursion

The assignments

a={Subscript[A,1]}

B={Subscript[A,1]}

Subscript[A,0]={Subscript[A,1]}

do not assign a value to a part of the right side.


--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"F. Mittermayr" <mitterma at linz.vai.co.at> wrote in message
news:8fb1s9$hrp at smc.vnet.net...
> Why isn't it allowed to say
>
> A={Subscript[A,1]}
>
> I get an error "$RecursionLimit::reclim: recursion depth of 256 exceeded."
>
>
> The following statements have been accepted:
>
> a={Subscript[A,1]}
>
> B={Subscript[A,1]}
>
> Subscript[A,0]={Subscript[A,1]}
>
>
> thnx for any ideas
>
> F. Mittermayr
>
> -----------------------------------
> using Mathematica 4.0
>
>
>

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"F. Mittermayr" <mitterma at linz.vai.co.at> wrote in message
news:8fb1s9$hrp at smc.vnet.net...
> Why isn't it allowed to say
>
> A={Subscript[A,1]}
>
> I get an error "$RecursionLimit::reclim: recursion depth of 256 exceeded."
>
>
> The following statements have been accepted:
>
> a={Subscript[A,1]}
>
> B={Subscript[A,1]}
>
> Subscript[A,0]={Subscript[A,1]}
>
>
> thnx for any ideas
>
> F. Mittermayr
>
> -----------------------------------
> using Mathematica 4.0
>
>
>




  • Prev by Date: Re: Difficult integral: correction
  • Next by Date: Re: Difficult integral: correction
  • Previous by thread: Re: Re: subscripted symbols
  • Next by thread: real valued solutions?