pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/py-mpmath Update py-mpmath to 0.14.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/84ef086bc1fc
branches:  trunk
changeset: 571136:84ef086bc1fc
user:      obache <obache%pkgsrc.org@localhost>
date:      Mon Feb 08 11:54:25 2010 +0000

description:
Update py-mpmath to 0.14.
per update request from Wen Heping by PR#42755.

Pkgsrc changes:
* Set LICENSE
* correct EOL style of installed files
* Add self-test target

Changes:
--0.14--
Released February 5, 2010

General changes:

* Fully separated the code into "low-level" and "high-level", permitting the
  use of alternative contexts (the mpmath.mp object provides the default
  implementation)
* Implemented a context for fast double-precision arithmetic using Python
  types (mpmath.fp)
* Implemented hooks for importing a faster version of mp arithmetic from Sage
* Implemented optimized fp versions of certain functions (including erf, erfc,
  gamma, digamma, ei, e1)
* Renamed and reorganized various internal modules and methods (including
  merging low-level modules into mpmath.libmp). This should not affect most
  external code using top-level imports.

Plotting:

* Implemented splot() for 3D surface plots (contributed by Jorn Baayen)
* Permit calling plot functions with custom axes (contributed by Jorn Baayen)

Matrices:

* Fixed lu_solve for overdetermined systems (contributed by Vinzent Steinberg)
* Added conjugate matrix transpose (contributed by Vinzent Steinberg)
* Implemented matrix functions (expm, cosm, sinm, sqrtm, logm, powm)

Miscellaneous:

* Prettier printing of numbers with leading zeros at small precisions
* Made nstr pass on kwargs, permitting more formatting options
* Fixed wrong directed rounding of addition of numbers with large magnitude
  differences
* Fixed several docstring typos (contributed by Chris Smith)
* Fixed a bug that prevented caching of quadrature nodes to work optimally.

Special functions:

* Implemented fast evaluation for large imaginary heights of the Riemann zeta
  function, Z function and derived functions using the Riemann-Siegel
  (contributed by Juan Arias de Reyna)
* Unified the zeta() and hurwitz() functions, automatically selecting a fast
  algorithm
* Improved altzeta() to fall back to zeta() for large arguments
* Fixed accuracy of zeta(s) for s ~= 1
* Implemented exact evaluation of Euler numbers (contributed by Juan Arias
  de Reyna)
* Implemented numerical evaluation of Euler numbers and Euler polynomials
  (eulernum(), eulerpoly())
* Fixed bernpoly() and eulerpoly() to compute accurate values for large
  parameters
* Fixed accuracy problems for hypergeometric functions with large parameters
* Faster evaluation of hypergeometric series using on-the-fly code generation
* Optimized hypercomb to detect certain zero terms symbolically
* Removed the djtheta function (jtheta() accepts a derivative parameter)
* Implemented li(x, offset=True) to compute the offset logarithmic integral
* Fixed wrong branch in Lambert W function for certain complex inputs
* Implemented the reflection formula for the Barnes G-function,
  superfactorials, hyperfactorials, permitting large arguments in the left
  half-plane
* Implemented analytic continuation to |z| >= 1 for hypergeometric functions
  pFq with p=q+1; added hyp3f2()
* Implemented Borel summation of divergent pFq functions with p > q+1
* Implemented automatic degree reduction of hypergeometric functions with
  repeated parameters
* Added convenience functions expj(), expjpi()
* Use Mathematica's convention for the continuation of the Meijer G-function
* Added phase(), polar(), rect() functions for compatibility with the
  Python 2.6 cmath module
* Implemented spherical harmonics (spherharm())
* Optimized ci(), si(), chi(), shi() for complex arguments by evaluating
  them in terms of ei()
* Optimized hyp2f1 for z ~= -1

diffstat:

 math/py-mpmath/Makefile |   16 +++-
 math/py-mpmath/PLIST    |  167 +++++++++++++++++++++++++++++++++--------------
 math/py-mpmath/distinfo |    8 +-
 3 files changed, 132 insertions(+), 59 deletions(-)

diffs (255 lines):

diff -r 65b9e3a87f0d -r 84ef086bc1fc math/py-mpmath/Makefile
--- a/math/py-mpmath/Makefile   Mon Feb 08 11:44:39 2010 +0000
+++ b/math/py-mpmath/Makefile   Mon Feb 08 11:54:25 2010 +0000
@@ -1,19 +1,29 @@
-# $NetBSD: Makefile,v 1.1.1.1 2010/01/27 14:16:10 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2010/02/08 11:54:25 obache Exp $
 #
 
-DISTNAME=      mpmath-0.13
-PKGNAME=       ${PYPKGPREFIX}-mpmath-0.13
+DISTNAME=      mpmath-0.14
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    math
 MASTER_SITES=  http://mpmath.googlecode.com/files/
 EXTRACT_SUFX=  .zip
+# XXX: all text file are DOS style.
+# XXX: if future version install binary file,
+# XXX: please consider to use another method.
+EXTRACT_OPTS_ZIP=      -aaqo
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://code.google.com/p/mpmath/
 COMMENT=       Python library for arbitrary-precision FP arithmetic
+LICENSE=       modified-bsd
 
 USE_LANGUAGES= # none
 PYDISTUTILSPKG=        yes
 PKG_DESTDIR_SUPPORT= user-destdir
 
+TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+       ${RUN} cd ${WRKSRC}/build/lib/mpmath/tests; \
+       ${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
+
 .include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 65b9e3a87f0d -r 84ef086bc1fc math/py-mpmath/PLIST
--- a/math/py-mpmath/PLIST      Mon Feb 08 11:44:39 2010 +0000
+++ b/math/py-mpmath/PLIST      Mon Feb 08 11:54:25 2010 +0000
@@ -1,67 +1,121 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2010/01/27 14:16:10 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2010/02/08 11:54:25 obache Exp $
 ${PYSITELIB}/mpmath/__init__.py
 ${PYSITELIB}/mpmath/__init__.pyc
 ${PYSITELIB}/mpmath/__init__.pyo
-${PYSITELIB}/mpmath/calculus.py
-${PYSITELIB}/mpmath/calculus.pyc
-${PYSITELIB}/mpmath/calculus.pyo
+${PYSITELIB}/mpmath/calculus/__init__.py
+${PYSITELIB}/mpmath/calculus/__init__.pyc
+${PYSITELIB}/mpmath/calculus/__init__.pyo
+${PYSITELIB}/mpmath/calculus/approximation.py
+${PYSITELIB}/mpmath/calculus/approximation.pyc
+${PYSITELIB}/mpmath/calculus/approximation.pyo
+${PYSITELIB}/mpmath/calculus/calculus.py
+${PYSITELIB}/mpmath/calculus/calculus.pyc
+${PYSITELIB}/mpmath/calculus/calculus.pyo
+${PYSITELIB}/mpmath/calculus/differentiation.py
+${PYSITELIB}/mpmath/calculus/differentiation.pyc
+${PYSITELIB}/mpmath/calculus/differentiation.pyo
+${PYSITELIB}/mpmath/calculus/extrapolation.py
+${PYSITELIB}/mpmath/calculus/extrapolation.pyc
+${PYSITELIB}/mpmath/calculus/extrapolation.pyo
+${PYSITELIB}/mpmath/calculus/odes.py
+${PYSITELIB}/mpmath/calculus/odes.pyc
+${PYSITELIB}/mpmath/calculus/odes.pyo
+${PYSITELIB}/mpmath/calculus/optimization.py
+${PYSITELIB}/mpmath/calculus/optimization.pyc
+${PYSITELIB}/mpmath/calculus/optimization.pyo
+${PYSITELIB}/mpmath/calculus/polynomials.py
+${PYSITELIB}/mpmath/calculus/polynomials.pyc
+${PYSITELIB}/mpmath/calculus/polynomials.pyo
+${PYSITELIB}/mpmath/calculus/quadrature.py
+${PYSITELIB}/mpmath/calculus/quadrature.pyc
+${PYSITELIB}/mpmath/calculus/quadrature.pyo
 ${PYSITELIB}/mpmath/conftest.py
 ${PYSITELIB}/mpmath/conftest.pyc
 ${PYSITELIB}/mpmath/conftest.pyo
-${PYSITELIB}/mpmath/elliptic.py
-${PYSITELIB}/mpmath/elliptic.pyc
-${PYSITELIB}/mpmath/elliptic.pyo
+${PYSITELIB}/mpmath/ctx_base.py
+${PYSITELIB}/mpmath/ctx_base.pyc
+${PYSITELIB}/mpmath/ctx_base.pyo
+${PYSITELIB}/mpmath/ctx_fp.py
+${PYSITELIB}/mpmath/ctx_fp.pyc
+${PYSITELIB}/mpmath/ctx_fp.pyo
+${PYSITELIB}/mpmath/ctx_mp.py
+${PYSITELIB}/mpmath/ctx_mp.pyc
+${PYSITELIB}/mpmath/ctx_mp.pyo
+${PYSITELIB}/mpmath/ctx_mp_python.py
+${PYSITELIB}/mpmath/ctx_mp_python.pyc
+${PYSITELIB}/mpmath/ctx_mp_python.pyo
 ${PYSITELIB}/mpmath/function_docs.py
 ${PYSITELIB}/mpmath/function_docs.pyc
 ${PYSITELIB}/mpmath/function_docs.pyo
-${PYSITELIB}/mpmath/functions.py
-${PYSITELIB}/mpmath/functions.pyc
-${PYSITELIB}/mpmath/functions.pyo
-${PYSITELIB}/mpmath/gammazeta.py
-${PYSITELIB}/mpmath/gammazeta.pyc
-${PYSITELIB}/mpmath/gammazeta.pyo
+${PYSITELIB}/mpmath/functions/__init__.py
+${PYSITELIB}/mpmath/functions/__init__.pyc
+${PYSITELIB}/mpmath/functions/__init__.pyo
+${PYSITELIB}/mpmath/functions/elliptic.py
+${PYSITELIB}/mpmath/functions/elliptic.pyc
+${PYSITELIB}/mpmath/functions/elliptic.pyo
+${PYSITELIB}/mpmath/functions/factorials.py
+${PYSITELIB}/mpmath/functions/factorials.pyc
+${PYSITELIB}/mpmath/functions/factorials.pyo
+${PYSITELIB}/mpmath/functions/functions.py
+${PYSITELIB}/mpmath/functions/functions.pyc
+${PYSITELIB}/mpmath/functions/functions.pyo
+${PYSITELIB}/mpmath/functions/hypergeometric.py
+${PYSITELIB}/mpmath/functions/hypergeometric.pyc
+${PYSITELIB}/mpmath/functions/hypergeometric.pyo
+${PYSITELIB}/mpmath/functions/rszeta.py
+${PYSITELIB}/mpmath/functions/rszeta.pyc
+${PYSITELIB}/mpmath/functions/rszeta.pyo
+${PYSITELIB}/mpmath/functions/zeta.py
+${PYSITELIB}/mpmath/functions/zeta.pyc
+${PYSITELIB}/mpmath/functions/zeta.pyo
 ${PYSITELIB}/mpmath/identification.py
 ${PYSITELIB}/mpmath/identification.pyc
 ${PYSITELIB}/mpmath/identification.pyo
-${PYSITELIB}/mpmath/libelefun.py
-${PYSITELIB}/mpmath/libelefun.pyc
-${PYSITELIB}/mpmath/libelefun.pyo
-${PYSITELIB}/mpmath/libhyper.py
-${PYSITELIB}/mpmath/libhyper.pyc
-${PYSITELIB}/mpmath/libhyper.pyo
-${PYSITELIB}/mpmath/libintmath.py
-${PYSITELIB}/mpmath/libintmath.pyc
-${PYSITELIB}/mpmath/libintmath.pyo
-${PYSITELIB}/mpmath/libmpc.py
-${PYSITELIB}/mpmath/libmpc.pyc
-${PYSITELIB}/mpmath/libmpc.pyo
-${PYSITELIB}/mpmath/libmpf.py
-${PYSITELIB}/mpmath/libmpf.pyc
-${PYSITELIB}/mpmath/libmpf.pyo
-${PYSITELIB}/mpmath/libmpi.py
-${PYSITELIB}/mpmath/libmpi.pyc
-${PYSITELIB}/mpmath/libmpi.pyo
-${PYSITELIB}/mpmath/linalg.py
-${PYSITELIB}/mpmath/linalg.pyc
-${PYSITELIB}/mpmath/linalg.pyo
-${PYSITELIB}/mpmath/matrices.py
-${PYSITELIB}/mpmath/matrices.pyc
-${PYSITELIB}/mpmath/matrices.pyo
-${PYSITELIB}/mpmath/mptypes.py
-${PYSITELIB}/mpmath/mptypes.pyc
-${PYSITELIB}/mpmath/mptypes.pyo
-${PYSITELIB}/mpmath/odes.py
-${PYSITELIB}/mpmath/odes.pyc
-${PYSITELIB}/mpmath/odes.pyo
-${PYSITELIB}/mpmath/optimization.py
-${PYSITELIB}/mpmath/optimization.pyc
-${PYSITELIB}/mpmath/optimization.pyo
-${PYSITELIB}/mpmath/quadrature.py
-${PYSITELIB}/mpmath/quadrature.pyc
-${PYSITELIB}/mpmath/quadrature.pyo
-${PYSITELIB}/mpmath/settings.py
-${PYSITELIB}/mpmath/settings.pyc
-${PYSITELIB}/mpmath/settings.pyo
+${PYSITELIB}/mpmath/libmp/__init__.py
+${PYSITELIB}/mpmath/libmp/__init__.pyc
+${PYSITELIB}/mpmath/libmp/__init__.pyo
+${PYSITELIB}/mpmath/libmp/backend.py
+${PYSITELIB}/mpmath/libmp/backend.pyc
+${PYSITELIB}/mpmath/libmp/backend.pyo
+${PYSITELIB}/mpmath/libmp/gammazeta.py
+${PYSITELIB}/mpmath/libmp/gammazeta.pyc
+${PYSITELIB}/mpmath/libmp/gammazeta.pyo
+${PYSITELIB}/mpmath/libmp/libelefun.py
+${PYSITELIB}/mpmath/libmp/libelefun.pyc
+${PYSITELIB}/mpmath/libmp/libelefun.pyo
+${PYSITELIB}/mpmath/libmp/libhyper.py
+${PYSITELIB}/mpmath/libmp/libhyper.pyc
+${PYSITELIB}/mpmath/libmp/libhyper.pyo
+${PYSITELIB}/mpmath/libmp/libintmath.py
+${PYSITELIB}/mpmath/libmp/libintmath.pyc
+${PYSITELIB}/mpmath/libmp/libintmath.pyo
+${PYSITELIB}/mpmath/libmp/libmpc.py
+${PYSITELIB}/mpmath/libmp/libmpc.pyc
+${PYSITELIB}/mpmath/libmp/libmpc.pyo
+${PYSITELIB}/mpmath/libmp/libmpf.py
+${PYSITELIB}/mpmath/libmp/libmpf.pyc
+${PYSITELIB}/mpmath/libmp/libmpf.pyo
+${PYSITELIB}/mpmath/libmp/libmpi.py
+${PYSITELIB}/mpmath/libmp/libmpi.pyc
+${PYSITELIB}/mpmath/libmp/libmpi.pyo
+${PYSITELIB}/mpmath/math2.py
+${PYSITELIB}/mpmath/math2.pyc
+${PYSITELIB}/mpmath/math2.pyo
+${PYSITELIB}/mpmath/matrices/__init__.py
+${PYSITELIB}/mpmath/matrices/__init__.pyc
+${PYSITELIB}/mpmath/matrices/__init__.pyo
+${PYSITELIB}/mpmath/matrices/calculus.py
+${PYSITELIB}/mpmath/matrices/calculus.pyc
+${PYSITELIB}/mpmath/matrices/calculus.pyo
+${PYSITELIB}/mpmath/matrices/linalg.py
+${PYSITELIB}/mpmath/matrices/linalg.pyc
+${PYSITELIB}/mpmath/matrices/linalg.pyo
+${PYSITELIB}/mpmath/matrices/matrices.py
+${PYSITELIB}/mpmath/matrices/matrices.pyc
+${PYSITELIB}/mpmath/matrices/matrices.pyo
+${PYSITELIB}/mpmath/rational.py
+${PYSITELIB}/mpmath/rational.pyc
+${PYSITELIB}/mpmath/rational.pyo
 ${PYSITELIB}/mpmath/tests/__init__.py
 ${PYSITELIB}/mpmath/tests/__init__.pyc
 ${PYSITELIB}/mpmath/tests/__init__.pyo
@@ -92,6 +146,9 @@
 ${PYSITELIB}/mpmath/tests/test_elliptic.py
 ${PYSITELIB}/mpmath/tests/test_elliptic.pyc
 ${PYSITELIB}/mpmath/tests/test_elliptic.pyo
+${PYSITELIB}/mpmath/tests/test_fp.py
+${PYSITELIB}/mpmath/tests/test_fp.pyc
+${PYSITELIB}/mpmath/tests/test_fp.pyo
 ${PYSITELIB}/mpmath/tests/test_functions.py
 ${PYSITELIB}/mpmath/tests/test_functions.pyc
 ${PYSITELIB}/mpmath/tests/test_functions.pyo
@@ -137,12 +194,18 @@
 ${PYSITELIB}/mpmath/tests/test_special.py
 ${PYSITELIB}/mpmath/tests/test_special.pyc
 ${PYSITELIB}/mpmath/tests/test_special.pyo
+${PYSITELIB}/mpmath/tests/test_str.py
+${PYSITELIB}/mpmath/tests/test_str.pyc
+${PYSITELIB}/mpmath/tests/test_str.pyo
 ${PYSITELIB}/mpmath/tests/test_summation.py
 ${PYSITELIB}/mpmath/tests/test_summation.pyc
 ${PYSITELIB}/mpmath/tests/test_summation.pyo
 ${PYSITELIB}/mpmath/tests/test_trig.py
 ${PYSITELIB}/mpmath/tests/test_trig.pyc
 ${PYSITELIB}/mpmath/tests/test_trig.pyo
+${PYSITELIB}/mpmath/tests/test_visualization.py
+${PYSITELIB}/mpmath/tests/test_visualization.pyc
+${PYSITELIB}/mpmath/tests/test_visualization.pyo
 ${PYSITELIB}/mpmath/tests/torture.py
 ${PYSITELIB}/mpmath/tests/torture.pyc
 ${PYSITELIB}/mpmath/tests/torture.pyo
diff -r 65b9e3a87f0d -r 84ef086bc1fc math/py-mpmath/distinfo
--- a/math/py-mpmath/distinfo   Mon Feb 08 11:44:39 2010 +0000
+++ b/math/py-mpmath/distinfo   Mon Feb 08 11:54:25 2010 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2010/01/27 14:16:10 drochner Exp $
+$NetBSD: distinfo,v 1.2 2010/02/08 11:54:25 obache Exp $
 
-SHA1 (mpmath-0.13.zip) = 7bad59bc3630a74df87c96439b9ed6f3642b6c99
-RMD160 (mpmath-0.13.zip) = f90805742a08e2497fea02730a665d00d1a56e33
-Size (mpmath-0.13.zip) = 368471 bytes
+SHA1 (mpmath-0.14.zip) = dfb066da328c6f4855e71f0518e7f5965a1f80ed
+RMD160 (mpmath-0.14.zip) = 34393f582f20caa5d95a94c028f7a84c06660610
+Size (mpmath-0.14.zip) = 505585 bytes



Home | Main Index | Thread Index | Old Index