pow function

Rev. Chris Korda victimofleisure at gmail.com
Fri May 2 08:02:17 CEST 2008


GMP has solved almost all of my (math-related) problems except for one: I
need a power function that takes an mpf_t base, but takes a double exponent,
instead of an integer. I thought of using MPFR but it's a huge library to
link in for only one function call. Am I overlooking something obvious? Is
there a shortcut using GMP functions that I haven't thought of?

Chris Korda
http://whorld.org



More information about the gmp-discuss mailing list