Vincent Lefevre on Wed, 27 Nov 2013 10:04:42 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [MPFR] Interfacing gmp and mpfr/mpc

Hi Andreas,

On 2013-11-26 20:14:53 +0100, Andreas Enge wrote:
> With my PhD student, we wish to call library functions using floating point
> numbers from the GNU MPFR and GNU MPC libraries inside Pari/GP.
> Thanks to lots of help by Bill Allombert (who essentially dictated the
> solution), we ended up with the attached code.

You shouldn't use the mpfr_ and mpc_ prefixes in the name of your own
functions, as they are reserved by MPFR and MPC.

Vincent Lefèvre <> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)