your mail
Marc Glisse
marc.glisse at inria.fr
Tue Aug 23 14:51:24 UTC 2016
On Tue, 23 Aug 2016, Thomas Lover wrote:
> cplusdpuissancea = cplusd^a;
It looks like you are trying to use x^y to compute x to the power y, but
that's not what ^ does in C++, it is a XOR, which doesn't make much sense
for floats.
Currently, you need to use the C interface to compute a power. In the
future, the C++ interface might overload the function 'pow', in which case
you would be able to call pow(x,y).
--
Marc Glisse
More information about the gmp-bugs
mailing list