Piotr Wyderski <Piotr.Wyderski at ii.uni.wroc.pl> writes: given floating-point a,b,x, how to compute a^x and a mod b using GMP? There is no support for that operation in GMP's mpf layer. You might want to use mpfr if you need multi-precision arithmetic for this operation. -- Torbjörn