Search code examples
c++doublegmpbignum

Using GNUMP how to find logarithm of base10


I am facing a problem in C++. i need a double which is more precise than standard c++ double. (C++ long double is even not enough) so.. i found GNUMP that does satisfy me.. but..

How do i find the logarithm of base 10 of a given number..


Solution

  • The short answer is that the GNU MP Library is not the complete solution; it only provides integer and rational functions. However, the MPFR library is built on top of and used/linked with the GNUMP library and it provides the transcendental functions you need.