Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ring delaration
PostPosted: Mon Dec 03, 2012 11:54 pm 

Joined: Thu Aug 26, 2010 4:32 pm
Posts: 4
I have a ring called r and want to create a copy of this ring, but with a different characteristic. Is there some working alternative to
Code:
int newchar = 5;
ring r = newchar,(varstr(r)),dp;

?

Thanks,
Lars


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: ring delaration
PostPosted: Tue Dec 04, 2012 9:36 pm 

Joined: Tue Jun 23, 2009 10:33 pm
Posts: 51
Location: Kaiserslautern
Hi,

you can try using
Code:
list L = ringlist(r);
and change the field component (L[1]) with it coming from a ring with appropriate field. Afterwards create a new ring out of it, e.g. with
Code:
def NEW = ring(L); setring NEW;


Cheers,
Oleksandr


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:06 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group