79 Commits

Author SHA1 Message Date
Fredrik Johansson 63b247c5cf fix a bunch of doctests 2012-12-31 00:41:44 +01:00
Fredrik Johansson b597356632 some basic code for Stirling numbers 2012-12-30 22:54:54 +01:00
Fredrik Johansson 3296b4a241 fix broken links in documentation (issue 206, patch submitted by gdrummo...@gmail.com) 2011-03-23 00:00:25 +00:00
Fredrik Johansson 277d542cd1 simple doctest update 2011-02-01 20:29:05 +00:00
Fredrik Johansson 66e813286b fix some py3 doctest failures 2011-01-28 20:37:56 +00:00
Fredrik Johansson 0f6ac516fa fix most doctests failing in py3 2011-01-09 17:47:36 +00:00
Fredrik Johansson 8faca262e4 Implement the Lerch transcendent; tidy some documentation 2010-11-25 13:01:11 +00:00
Fredrik Johansson e00125e099 improvements to zeta Euler-Maclaurin code
+ Refactor into smaller functions
+ Implement precision adaptivity (handling large cancellation for negative Re(s))
+ Increment N on each iteration to improve performance in some cases
2010-11-22 17:31:24 +00:00
Juan Arias de Reyna d9dc2038df implement siegelz and siegeltheta derivatives 2010-11-17 20:15:12 +00:00
Fredrik Johansson 9da2022849 implement Abel-Plana summation as sumap()
(TODO: unify with nsum, use for hyp3f2 etc as it should be faster than Euler-Maclaurin summation in most cases)
2010-08-03 18:13:34 +00:00
Fredrik Johansson 27eab13de6 convert line endings in trunk to unix format; rebuild docs 2010-07-28 20:09:06 +00:00
Fredrik Johansson 3be4336ef6 use Euler-Maclaurin summation to evaluate {p+1}F_p near z = 1 in remaining cases 2010-07-28 19:05:32 +00:00
Fredrik Johansson bdb138e7ab Implement parabolic cylinder functions (pcfd, pcfu, pcfv, pcfw); TODO--more doctests 2010-07-26 16:17:53 +00:00
Fredrik Johansson 095fb36f3d docstring edits 2010-06-21 21:08:04 +00:00
Fredrik Johansson 490942fc88 implement Legendre incomplete elliptic integrals (ellipf, ellippi; ellipe with two arguments) 2010-06-21 09:40:39 +00:00
Fredrik Johansson 1fffea602f update documentation for lambertw 2010-06-15 20:49:56 +00:00
Fredrik Johansson 3923d324d7 update documentation; include function plots in documentation 2010-06-14 19:18:52 +00:00
Fredrik Johansson 41ca3ea930 documentation for Scorer functions 2010-06-13 00:08:04 +00:00
Fredrik Johansson a32f20f8ad new implementation of Airy functions
* rigorous evaluation via hypercomb
* support for arbitrary-order derivatives and integrals
* support for computation of zeros
2010-06-12 20:52:21 +00:00
Fredrik Johansson 8b17102f17 small docstring fixes 2010-06-07 18:57:30 +00:00
Fredrik Johansson 14d3024c21 implement Lommel functions (lommels1(), lommels2()) 2010-06-07 18:46:50 +00:00
Fredrik Johansson 56e50d9b00 implement Anger and Weber functions (angerj(), webere()) 2010-06-06 23:51:07 +00:00
Fredrik Johansson 61d076b7ad rename modf -> fmod (for consistency, and because the function does not do the same thing as math.modf anyway) 2010-06-02 20:41:25 +00:00
Fredrik Johansson f92fd70186 fix a docstring typo 2010-06-01 18:12:06 +00:00
Fredrik Johansson 24ef677de7 Upgrade interval arithmetic.
* Move everything interval to a separate context (e.g. iv.exp must be used instead of mp.exp)
* Support both real and complex intervals (iv.mpf, iv.mpc)
* Fix interval cos/sin, and remove the old mpf_cos_sin code it depended on. The new interval cos/sin is a bit slower at low precision now, but this can be fixed.
* Implement interval atan2, and exp/log/power for complex intervals
* Move interval<->string code to libmpi
* Some other interface changes

More tests are still needed, and interface/utility functions needs more work.
2010-04-14 15:12:10 +00:00
Fredrik Johansson f575ff4e3c some docstring touchups 2010-03-25 09:09:36 +00:00
Fredrik Johansson f4c44a8d94 fixes after last commit 2010-03-23 16:03:10 +00:00
Fredrik Johansson 37955c3804 add mpmath namespace to all :func: references so sphinx will generate links 2010-03-23 15:58:12 +00:00
Fredrik Johansson fddf6fa89e improve utility functions
* optimize and improve documentation for floor, ceil, isinf, isnan, isint
* implement nint, frac, isnormal
* fix and document semantics for isinf, isnan, etc
* extend documentation for mag and nint_distance
* add more tests; move tests for utility functions from test_mpmath.py to test_basic_ops.py
2010-03-23 15:20:12 +00:00
Fredrik Johansson ea1374c1cf tiny docstring fix 2010-03-23 14:08:35 +00:00
Fredrik Johansson fea9acddcb implemented generalized 2D hypergeometric series (hyper2d()) and the Appell F1-F3 functions 2010-03-16 20:06:35 +00:00
Juan Arias de Reyna 4380a9e5a4 new zetazeros function implementation 2010-02-25 10:00:48 +00:00
Fredrik Johansson 74bb5db556 New gamma function implementation (using Stirling's series and Taylor series instead of Spouge's approximation); including direct support for loggamma and rgamma (reciprocal gamma function). Including also a large set of extra stress tests for gamma. 2010-02-11 22:07:04 +00:00
Fredrik Johansson 6f9c4231e7 Improvements to the elliptic functions module:
* Added qfrom(), mfrom(), kfrom(), taufrom() for argument conversions
* Merged jsn, jcn, jdn -> ellipfun and generalized it to compute all 12 Jacobi elliptic functions
* Documentation improvements
2010-02-06 19:26:50 +00:00
Fredrik Johansson 709f30f092 corrected numerical noise in a doctest 2010-02-05 15:55:34 +00:00
Fredrik Johansson 09a3e1cd21 consistent line endings 2010-02-04 14:43:01 +00:00
Fredrik Johansson 356f116413 another numerical noise fix 2010-02-04 14:32:57 +00:00
Fredrik Johansson 3f17ebc29b various small fixes (mostly docstrings edits) 2010-02-04 01:35:22 +00:00
Fredrik Johansson c7f48602f9 faster implementation of fp.zeta for real arguments; eliminate overhead for fast cases in zeta by trying to call _zeta directly; use zeta to compute altzeta in the general case 2010-01-24 22:53:13 +00:00
Fredrik Johansson de403a0b3c improve ci,si,chi,shi for complex arguments by computing them using ei; make ci,si,chi,shi,ei,e1,li work with fp. TODO: implement ei in math2 2010-01-22 12:37:21 +00:00
Fredrik Johansson e46a2c48b9 implemented spherical harmonics (spherharm) 2010-01-21 19:14:46 +00:00
Fredrik Johansson 6d1714585c implemented numerical evaluation of Euler polynomials (eulerpoly) and Euler numbers (eulernum); optimized bernpoly and using accurate summation for eulerpoly and bernpoly; tweaks to sum_accurately 2010-01-20 19:16:48 +00:00
Fredrik Johansson 6d548b0dd7 restore docstrings for elliptic functions; plus a few bugfixes and doctest modifications 2010-01-19 20:11:30 +00:00
Fredrik Johansson ae83f2a42b optimized zetasum for complex arguments 2010-01-19 12:58:02 +00:00
Fredrik Johansson 889eb7c4a7 unified zeta() and hurwitz(); the implementation now chooses between the Borwein, Euler-Maclaurin, and Riemann-Siegel methods 2010-01-17 18:31:25 +00:00
Fredrik Johansson 855f62b4c7 provide phase(), polar(), rect() for compatibility with the Python 2.6 cmath module; restore some accidentally deleted docstrings; slightly more sane way to define function aliases 2010-01-15 21:13:56 +00:00
Fredrik Johansson 6790ef94c8 make nstr pass on kwargs; change default min_fixed to at least -5 2010-01-15 20:07:33 +00:00
Fredrik Johansson 4b641f463a support Borel summation of divergent hypergeometric series; support parameter elimination in hypergeometric functions; some refactoring of hypergeometric code 2010-01-13 10:23:16 +00:00
Fredrik Johansson d5d1e1e901 follow Mathematica's convention to use a different form of Meijer G for certain orders and arguments (allow the old behavior using the optional series argument) 2010-01-12 14:45:24 +00:00
Fredrik Johansson df9c2b7efe add convenience functions expj, expjpi for fast/accurate exponentials of modified argument 2010-01-12 11:21:20 +00:00