MathGroup Archive 2009

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

Search the Archive

Re: Product::write : Tag List is Protected Error

  • To: mathgroup at
  • Subject: [mg101915] Re: Product::write : Tag List is Protected Error
  • From: David Bailey <dave at>
  • Date: Wed, 22 Jul 2009 06:24:31 -0400 (EDT)
  • References: <h42u63$pe4$>

Tuhina Singh wrote:
> Hi All,
> I am a newbie to mathematica and I am encountering following error in my first program written in this package.
> $Recursion Limit::reclim : Recursion depth of 256 exceeded.
> General:: Stop: Further output of $RecursionLimit::reclim would be suppressed during this calculation.
> Product::write : Tag List in (...) is protected.
> General:: Stop: Further output of Product::write  would be suppressed durin g this calculation.
>  Have spent two days trying to figure it out but unable to resolve this. I tried to use this code at the beginning hoping to resolve but with no success:
> Off[Protect::Locked];
> Off[Attributes::Locked];
> Unprotect[List];
> Am using "product" symbol in my program where this error is occurring. Any help would be highly appreciated.
> Thanks and Best Regards,
> Tuhina
> ________________________________
> Tuhina Singh
> Siddhesh Capital Market Services Pvt Ltd.
> 122, Maker Chambers III, 12th Floor
> Nariman POint
> Mumbai - 400 021
> Tel (D): 91-22-4057 0322
>        (B): 91-22-4057 0300
>        Fax: 91-22-2285 2912
The term "Package" has a well defined meaning in Mathematica, so to 
avoid confusion, I would not use it to describe Mathematica itself!

Programs are best built up a bit at a time. Assuming your program is 
reasonably short, why not post it all - someone will almost certainly 
fix it for you.

You should certainly not need to execute Unprotect[List] - this is a 
very bad move! I would also avoid using Off until you know why you want 
it. In Mathematica, error messages do not stop the code running, so it 
is not essential to turn them off - better to leave them there as a 
reminder that something is still not right! Also, turning a message off, 
does not fix the problem!

David Bailey

  • Prev by Date: Converting ANSO ISO Decimal BASIC to Mathematica 7
  • Next by Date: simulating the tab keystroke in front end in InputField
  • Previous by thread: Re: Re: Product::write : Tag List is
  • Next by thread: RE: Re: Product::write : Tag List is Protected Error