Two questions on GMP library

Blake Huff stangmechanic at
Tue May 22 00:52:31 CEST 2007


For logarithms, I believe you'll need the mpfr library: http://

For the conversion to string, you can use mpz_get_str, which will  
convert the op to a string.  For more info on this check out the gmp- 

Happy hunting!

Blake Huff
stangmechanic at

"The CH-47D: Because anything else is just a sling load"

On May 21, 2007, at 11:26 AM, Sarad AV wrote:

> Hello,
> -Does GMP support any C library calls to find natural logarithms or  
> logartithms to the base 10.
> -I  would like to convert an a mpz_t variable to a character  
> string, so that I can pass it as a string to another library like  
> PARI on Zenfact. I am unable to find a library call, that does it  
> for me and I guess sscanf(), can be used either. There is the  
> mpz_set_str() but it does the reverse of what i am looking for.
> Thank you for your time,
> Sarad AV
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the gmp-discuss mailing list