Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: memoize
PostPosted: Thu Aug 11, 2005 5:32 pm 
Hi everybody.

Does any one knows how to make singular remember the values that was calculated before. I mean, there exist command like the "memoize" from Macaulay2?

the memoize command makes the procedure remember the results it had obtained before.

Thanks for any help.


email: bahiano@ufba.br
Posted in old Singular Forum on: 2004-05-12 20:27:02+02


Report this post
Top
  
Reply with quote  
 Post subject: Re: memoize
PostPosted: Thu Aug 11, 2005 8:36 pm 

Joined: Thu Aug 11, 2005 8:03 pm
Posts: 37
Location: RWTH Aachen, Germany
Hello, Mr. Bahiano,

Quote:
> Hi everybody.
>
> Does any one knows how to make singular remember the values that was calculated before. I mean, there exist command like the "memoize" from Macaulay2?
>


Not exactly. We have a built-in function, "_", which returns the value of last displayed expression. (See the detailed explanation at http://www.singular.uni-kl.de/Manual/2-0-5/sing_35.htm).
However, we do not recommend to use it while changing rings due to the reason that polynomial-based objects in Singular are ring-dependent.

We can illustrate it with the following code
Code:
ring r=0,(x,y),dp;
poly f=x2-y3;
groebner(jacob(f));
ideal T=_;
T;


Quote:
> the memoize command makes the procedure remember the results it had obtained before.
>
> Thanks for any help.
>


With best regards,

_________________
Viktor Levandovskyy


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Sun Dec 17, 2017 12:10 pm
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group