Finding bitprecision

Ilya Zakharevich <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <ZYE2Rsr+QQaOhT/[email protected]>
Should not there be O(1) way to find the current localbitprecision()?

  (22:17) gp > localprec(10000);   my(s); for(n=1,100000,  s+=bitprecision(1.));
  time = 78 ms.
  (22:17) gp > localprec(1000000); my(s); for(n=1,100000,  s+=bitprecision(1.));
  time = 2,121 ms.

Thanks,
Ilya
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.