MathGroup Archive 2009

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

Search the Archive

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

  • To: mathgroup at
  • Subject: [mg101936] RE: [mg101915] Re: Product::write : Tag List is Protected Error
  • From: Tuhina Singh <tuhina.singh at>
  • Date: Thu, 23 Jul 2009 03:57:26 -0400 (EDT)
  • References: <h42u63$pe4$> <>

I wasn't aware that "package" has a specific meaning in mathematica. Thanks for pointing that out David.

I have posted my code on this link :

Have taken it from a paper on Ho-Lee Model implementation by Markus Leippold and Zvi Wiener.

The first few lines in the code do not form part of original code, its just my (uninformed and bad) effort towards solving the error which obviously didn't work at all... Coupla forums I went thru suggested that the error could be because of some simple error in use of brackets "[" / "{"/"(", but I haven't been able to put my finger on it, hence this post.


-----Original Message-----
From: David Bailey [mailto:dave at]
Sent: Wednesday, July 22, 2009 3:55 PM
To: mathgroup at
Subject: [mg101936] [mg101915] Re: Product::write : Tag List is Protected Error

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: Re: Linking Manipulate to arrow keys?
  • Next by Date: Hacking Wolfram|Alpha
  • Previous by thread: Re: Product::write : Tag List is Protected Error
  • Next by thread: Histogram plot