Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: get number of ring paramter
PostPosted: Mon Apr 14, 2014 12:07 pm 
Hello,

for a ring variable it is possible to get its number using rvar:
Code:
ring rng =(0,a,b),(x,y,z),dp;
rvar(x);
// 1
rvar(y);
// 2


Is the same possible for parameters (here 'a','b') ?


Report this post
Top
  
Reply with quote  
 Post subject: Re: get number of ring paramter
PostPosted: Wed Apr 16, 2014 6:00 am 

Joined: Tue Jun 23, 2009 10:33 pm
Posts: 51
Location: Kaiserslautern
Code:
> ring rng =(0,a,b),(x,y,z),dp; def R = ring(ringlist(basering)[1]); setring R; R;
//   characteristic : 0
//   number of vars : 2
//        block   1 : ordering lp
//                  : names    a b
//        block   2 : ordering C
> rvar(a);
1
> rvar(b);
2


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: get number of ring paramter
PostPosted: Sat Apr 19, 2014 3:28 pm 
Doh!

It seems I have to go back to school and learn to ask precise questions.



Second trial:
is there a function in Singular interpreter language which takes as an argument a ring parameter variable
and returns its corresponding index?

If not, I would like to open a feature request for that.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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:05 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group