C++ - MPIR: Fastest Log Function? -
mpir library using in c++ deal large numbers. unfortunately, not have log functions. because of that, seeking fast log function mpir's mpz_class.
we aware of fact there log functions provided in c++ (or should be), located in math header file (math.h). unfortunately, can not handle big numbers, 1 of many reasons why using mpir library,
::mpz_class log( ::mpz_class n ) { ::mpz_class ret; return ret; };
there cases in log of n returns floating value. hence, our log function must able return floating value. if log of 15, should return 1.17609125906.
there library mpfr, (i think) built on top of mpir , does contain functions logarithms.
Comments
Post a Comment