real roots, powers

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


hello

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)

Bye,

Gergely Czuczy
mailto: gergely.czuczy at harmless.hu
PGP: http://phoemix.harmless.hu/phoemix.pgp

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 : http://gmplib.org/list-archives/gmp-discuss/attachments/20051228/f9b5183d/attachment.bin


More information about the gmp-discuss mailing list