real roots, powers

Gergely CZUCZY phoemix at
Wed Dec 28 18:06:03 CET 2005


i've started using GMP for some arithmetic functions for an applications.
i'm mostly working with integer arithmetics.
my questions is, how can an integere number be raised to a not-integer power?
like n^x, where n is an integer, x is a real number, like 1.2 or 0.7
also, how can i get a real root of a number? root(n,x) where x is real, n is integer
(on real here, i mean floating-point numbers)


Gergely Czuczy
mailto: gergely.czuczy at

Weenies test. Geniuses solve problems that arise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url :

More information about the gmp-discuss mailing list