Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Product::write : Tag List is Protected Error

351 views
Skip to first unread message

Tuhina Singh

unread,
Jul 20, 2009, 7:21:39 PM7/20/09
to
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

Tomas Garza

unread,
Jul 21, 2009, 3:47:04 AM7/21/09
to

It is hard to guess the reason for the error unless you provide us with the code. Incidentally, I could hardly describe Mathematica as a "package"...

Tomas

.> 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. Itried to use this code at the beginning hoping to resolve but with no success:

Tomas Garza

unread,
Jul 22, 2009, 6:19:34 AM7/22/09
to

Hello, Tuhina:

OK, my only comment is that, if this is the first program you ever wrote in Mathematica, I think you chose a pretty complicated one.

I'm not familiar with the topic you are dealing with. so it's very hard for me to follow your definitions and try to understand what you're doing.

IMVHO. you should develop some expertise in Mathematica. step by step. before attempting to tackle complicated problems where many different kinds of errors may arise. making the debugging process almost impossible. But I can assure you that the effort can be very rewarding.

Best regards.

Tomas


> From: tuhina...@rmilindia.com
> To: tgar...@msn.com
> Date: Tue. 21 Jul 2009 14:04:46 +0530
> Subject: RE: Re: Product::write : Tag List is Protected Error
>
> Thanks Tomas for looking up my request. I am attaching my code notebook here for your perusal. I have taken this code from a paper on Ho-Lee model implementation by Markus Leippold and Zvi Wiener.
>
> [ Will call mathematica a s/w if you like tht better ;) ]
>
> Best.
> Tuhina
>
> -----Original Message-----
> From: Tomas Garza [mailto:tgar...@msn.com]
> Sent: Tuesday. July 21. 2009 1:22 PM
> To: math...@smc.vnet.net
> Subject: Re: Product::write : Tag List is ProtectedError
>
>
> It is hard to guess the reason for the error unless you provide us with the code. Incidentally. I could hardly describe Mathematica as a "package"...


>
>
>
> Tomas
>
> .> 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. Itried 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

David Bailey

unread,
Jul 22, 2009, 6:20:59 AM7/22/09
to
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

Tuhina Singh

unread,
Jul 23, 2009, 3:57:14 AM7/23/09
to

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:da...@removedbailey.co.uk]
Sent: Wednesday, July 22, 2009 3:55 PM
Subject: Re: Product::write : Tag List is Protected Error

0 new messages