Singular
https://www.singular.uni-kl.de/forum/

get number of ring paramter
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2395
Page 1 of 1

Author:  jack [ Mon Apr 14, 2014 12:07 pm ]
Post subject:  get number of ring paramter

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') ?

Author:  malex [ Wed Apr 16, 2014 6:00 am ]
Post subject:  Re: get number of ring paramter

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

Author:  Jack [ Sat Apr 19, 2014 3:28 pm ]
Post subject:  Re: get number of ring paramter

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.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/