Commit graph

6 commits

Author SHA1 Message Date
hans
590cbada61 Add inplace.mk to allow building this inside another package. 2012-04-13 11:00:14 +00:00
hans
30004db2f5 Work around a bug in SunOS complex.h to make this build with Suns gcc. 2011-10-13 13:22:46 +00:00
hans
837223bd37 Explicitly depend on gmp>=4.3.2 and mpfr>=2.4.2. 2011-09-14 17:14:09 +00:00
drochner
51be567cb1 allow to use gmp/mpfr/mpc which comes with the system (eg on
NetBSD-current with gcc45)
2011-07-08 09:40:57 +00:00
asau
d21dc6d68e Update to mpc-0.9
Prompted by Stathis Kamperis.

Changes:

  * New functions
      + mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc for
      converting between mpc type variables and C variables of
      type double  _Complex or long double _Complex
      + mpc_sin_cos, computing simultaneously the sine and cosine
  * Speed-ups
      + mpc_pow_si through binary exponentiation
      + mpc_pow_z when the exponent fits in a long
      + mpc_tan through the use of mpc_sin_cos
  * Bug fixes
      + trigonometric functions: infinite loop due to overflow for large arguments
      + exp: close to infinite loop for argument close to 0
      + sqrt: close to infinite loop for argument close to 1
      + add_si: replaced macro by function, since the macro evaluated the same expression twice
  * Logging feature for debugging
    ./configure --enable-logging
    #include "mpc-log.h" instead of #include "mpc.h"
  * Minimally required library versions: gmp 4.3.2, mpfr 2.4.2
2011-03-09 18:59:46 +00:00
asau
026c5d619f Import MPC (multiprecision complex arithmetic library) version 0.8.2
as math/mpcomplex.
Packaged by Marko Schuetz for pkgsrc-wip.

MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result.
It is built upon and follows the same principles as MPFR.
2010-07-27 17:09:45 +00:00