MathGroup Archive 2009

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

Search the Archive

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

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

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 : http://rapidshare.com/files/258720906/ho-lee.nb

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.


Thanks,
Tuhina

-----Original Message-----
From: David Bailey [mailto:dave at removedbailey.co.uk]
Sent: Wednesday, July 22, 2009 3:55 PM
To: mathgroup at smc.vnet.net
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
http://www.dbaileyconsultancy.co.uk





  • 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