Singular https://www.singular.uni-kl.de/forum/ |
|
ring delaration https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2200 |
Page 1 of 1 |
Author: | lkastner [ Mon Dec 03, 2012 11:54 pm ] |
Post subject: | ring delaration |
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 |
Author: | malex [ Tue Dec 04, 2012 9:36 pm ] |
Post subject: | Re: ring delaration |
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 |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |