Singularhttp://www.singular.uni-kl.de/forum/ get ring precision (number of digits) valuehttp://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2550 Page 1 of 1

 Author: jakobkroeker [ Sun Jul 31, 2016 2:39 pm ] Post subject: get ring precision (number of digits) value assuming that somewhere a ring is declared (by ot hers), lets sayCode:ring R = (real,55,57),x,dp;is there a Singular function to get the number of digits likeCode:int R_digits ;int R_restdigits;R_digits = digits(R);R_restdigits = restdigits(R);?

 Author: pankajsejwal [ Wed Aug 03, 2016 1:49 pm ] Post subject: Re: get ring precision (number of digits) value Apologies if I misunderstood your question,If you want to recover details of declared ring, use ringlist command. For example,Code:ring r = (real,55,57),x,dp;ringlist(r);  //Displays information regarding current ring as array of arrays.Now,int R_digits =ringlist(r)[1][2][1];     //55int R_restdigits = ringlist(r)[1][2][2];    //57

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