I
I
Ivan2017-10-05 18:39:45
linux
Ivan, 2017-10-05 18:39:45

How to find the logarithm of an arbitrary precision number in C (on Linux)?

Need to quickly look up logarithms in a C program (no crosses). For basic arithmetic operations, the GMP lib is great, but something doesn’t have logarithms in it. Numbers 2048bit+. Boost will not work, you need a sish library.
If not, then maybe someone will advise a way how to count (the main thing is fast, since there are a lot of calculations), only the formula based on the Taylor expansion comes to mind.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan, 2017-10-13
@32seph

They suggested that in the general case there is MPFR (GMP extension).

R
res2001, 2017-10-05
@res2001

Is the standard library wrong?

J
jcmvbkbc, 2017-10-06
@jcmvbkbc

Newton's method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question