Two questions on GMP library
Blake Huff
stangmechanic at gmail.com
Tue May 22 00:52:31 CEST 2007
Sarad:
For logarithms, I believe you'll need the mpfr library: http://
www.mpfr.org/.
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-
man: http://gmplib.org/#DOC
Happy hunting!
Blake Huff
stangmechanic at gmail.com
"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 swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20070521/e1b513dc/attachment.html
More information about the gmp-discuss
mailing list