Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ring Parameters
PostPosted: Tue Dec 27, 2005 2:27 am 

Joined: Tue Dec 13, 2005 5:35 pm
Posts: 1
I am writing a library and I need to use parameters in a function, but I can't just define a new ring with the parameters. I need to add the parameters to the basering that I'm working with. I want to know if there is a function that can do this to me, like the function 'extendring', that adds new variables to the ring. Thanks any help.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Ring parameters
PostPosted: Tue Jan 10, 2006 5:26 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
There is no procedure which automatically adds a paramater,
but it is easy to write one via
the ringlist command:
convert the ring into a list
list L=ringlist(r);
modilfy the first entry
and create a ring from the changed list:
def r_with_paramater=ring(L);
The help to ringlist gives examples:
http://www.singular.uni-kl.de/Manual/3-0-1/sing_274.htm


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 Fri May 13, 2022 11:03 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group