Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-26121: Use C library implementation for math functions: (#515) | Serhiy Storchaka | 2017-03-11 | 1 | -1/+45 |
| | | | | | | | * bpo-26121: Use C library implementation for math functions: tgamma(), lgamma(), erf() and erfc(). * Don't use tgamma() and lgamma() from libc on OS X. | ||||
* | Issue #29282: Backed out changeset b33012ef1417 | Mark Dickinson | 2017-01-21 | 1 | -42/+0 |
| | |||||
* | Issue #29282: add fused multiply-add function, math.fma. | Mark Dickinson | 2017-01-21 | 1 | -0/+42 |
| | |||||
* | Issue #20186: Converted the math module to Argument Clinic. | Serhiy Storchaka | 2017-01-19 | 1 | -247/+384 |
| | | | | Patch by Tal Einat. | ||||
* | Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-06 | 1 | -3/+3 |
| | | | | | | | Replace: PyObject_CallFunctionObjArgs(callable, NULL) with: _PyObject_CallNoArg(callable) | ||||
* | Backed out changeset b9c9691c72c5 | Victor Stinner | 2016-12-04 | 1 | -3/+3 |
| | | | | | | Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs(). | ||||
* | Replace PyObject_CallFunctionObjArgs() with fastcall | Victor Stinner | 2016-12-01 | 1 | -3/+3 |
| | | | | | | | | | | | | | | * PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func) * PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg) PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires extra work to "parse" C arguments to build a C array of PyObject*. _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. This change is part of the fastcall project. The change on listsort() is related to the issue #23507. | ||||
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
| | |||||
* | Issue #12345: Add mathemathcal constant tau to math and cmath. | Guido van Rossum | 2016-08-15 | 1 | -0/+1 |
| | | | | Patch by Lisa Roach. See also PEP 628. | ||||
* | Issue #26512: Merge rounding doc from 3.5 | Martin Panter | 2016-05-08 | 1 | -4/+4 |
|\ | |||||
| * | Issue #26512: Clarify Integral; tidy up table of rounding functions | Martin Panter | 2016-05-08 | 1 | -4/+4 |
| | | | | | | | | Based on patch by Julien. | ||||
* | | Issue #26898: Fix typo in math.isclose() docstring | Berker Peksag | 2016-05-01 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Marco Buttu. | ||||
| * | Issue #26898: Fix typo in math.isclose() docstring | Berker Peksag | 2016-05-01 | 1 | -1/+1 |
| | | | | | | | | Patch by Marco Buttu. | ||||
* | | Merge for issue #26114 | Brett Cannon | 2016-01-15 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | Issue #26114: Remove a reference to 'Numerical Recipes'. | Brett Cannon | 2016-01-15 | 1 | -3/+2 |
| | | | | | | | | | | | | While no copyright violation occurred, the license which 'Numerical Recipes' operates under is not amenable to Python, so to prevent confusion it's easier to simply remove its mention. | ||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -2/+2 |
|/ | | | | private functions. | ||||
* | Issue #19543: Implementation of isclose as per PEP 485 | Tal Einat | 2015-05-31 | 1 | -0/+79 |
| | | | | | | | | | For details, see: PEP 0485 -- A Function for testing approximate equality Functions added: math.isclose() and cmath.isclose(). Original code by Chris Barker. Patch by Tal Einat. | ||||
* | Issue #22486: Added the math.gcd() function. The fractions.gcd() function ↵ | Serhiy Storchaka | 2015-05-12 | 1 | -0/+28 |
| | | | | | | now is deprecated. Based on patch by Mark Dickinson. | ||||
* | Issue #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 1 | -1/+1 |
|\ | | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__. | ||||
| * | Issue #23641: Cleaned out legacy dunder names from tests and docs. | Serhiy Storchaka | 2015-03-12 | 1 | -1/+1 |
| | | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. | ||||
* | | Issue #21092: Merge from 3.4. | Mark Dickinson | 2015-01-11 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse ↵ | Mark Dickinson | 2015-01-11 | 1 | -3/+3 |
| | | | | | | | | hyperbolic sine' (etc.). Remove meaningless reference to radians. | ||||
* | | Issue #23185: add math.inf and math.nan constants. | Mark Dickinson | 2015-01-11 | 1 | -1/+34 |
| | | |||||
* | | Issue #22207: Fix "comparison between signed and unsigned integers" warning in | Victor Stinner | 2014-08-17 | 1 | -1/+1 |
| | | | | | | | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t. | ||||
* | | Issue #20539: Improve math.factorial error messages and types for large inputs. | Mark Dickinson | 2014-04-10 | 1 | -4/+12 |
|/ | | | | | - Better message for the OverflowError in large positive inputs. - Changed exception type from OverflowError to ValueError for large negative inputs. | ||||
* | #12211: remove paragraph about NaNs | Andrew Kuchling | 2014-02-16 | 1 | -3/+1 |
| | |||||
* | #12211: clarify math.copysign() documentation and docstring | Andrew Kuchling | 2014-02-16 | 1 | -1/+5 |
| | |||||
* | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 1 | -7/+6 |
| | | | | error messages and comments. | ||||
* | Issue #16305: Merge fix from 3.2. | Mark Dickinson | 2012-10-25 | 1 | -4/+3 |
|\ | |||||
| * | Fix math.factorial KeyboardInterrupt segfault. Thanks Amaury for report and ↵ | Mark Dickinson | 2012-10-25 | 1 | -4/+3 |
| | | | | | | | | diagnosis. | ||||
* | | merge 3.2 | Benjamin Peterson | 2012-03-13 | 1 | -7/+7 |
|\ \ | |/ | |||||
| * | fix indentation | Benjamin Peterson | 2012-03-13 | 1 | -7/+7 |
| | | |||||
* | | use the static identifier api for looking up special methods | Benjamin Peterson | 2012-01-22 | 1 | -6/+6 |
| | | | | | | | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work. | ||||
* | | Use the new Py_ARRAY_LENGTH macro | Victor Stinner | 2011-09-28 | 1 | -1/+1 |
| | | |||||
* | | Return +-Py_HUGE_VAL for tgamma(+-0) instead of risking FP exceptions by ↵ | Mark Dickinson | 2011-09-25 | 1 | -1/+2 |
| | | | | | | | | computing 1.0 / 0.0. | ||||
* | | Issue #11888: Use system log2() when available | Victor Stinner | 2011-05-09 | 1 | -0/+4 |
| | | | | | | | | | | I expect the system libc to use more accurate functions than Python. The GNU libc uses for example FYL2X and FYL2XP1 hardware instructions on Intel FPU. | ||||
* | | Grammatical fix for a comment for log2, to avoid referring to an *algorithm* ↵ | Mark Dickinson | 2011-05-09 | 1 | -1/+3 |
| | | | | | | | | as monotonic. | ||||
* | | Fix cut-and-paste typo in comment: log10 -> log2. | Mark Dickinson | 2011-05-09 | 1 | -1/+1 |
| | | |||||
* | | Issue #11888: Add log2 function to math module. Patch written by Mark | Victor Stinner | 2011-05-08 | 1 | -0/+59 |
| | | | | | | | | Dickinson. | ||||
* | | Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2 | Jesus Cea | 2011-03-14 | 1 | -5/+0 |
|/ | |||||
* | Issue #9599: Further accuracy tweaks to loghelper. For an integer n that's ↵ | Mark Dickinson | 2010-09-29 | 1 | -14/+22 |
| | | | | small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10. | ||||
* | Issue #9599: Tweak loghelper algorithm to return slightly improved results ↵ | Mark Dickinson | 2010-09-28 | 1 | -6/+8 |
| | | | | for powers of 2. | ||||
* | Improve docstrings for isnan, isinf and isfinite. | Mark Dickinson | 2010-07-11 | 1 | -3/+3 |
| | |||||
* | Issue #9165: Add math.isfinite and cmath.isfinite. | Mark Dickinson | 2010-07-11 | 1 | -0/+14 |
| | |||||
* | Fix typo in a comment in mathmodule.c. | Ezio Melotti | 2010-07-08 | 1 | -1/+1 |
| | |||||
* | Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError. | Mark Dickinson | 2010-07-07 | 1 | -1/+1 |
| | |||||
* | Minor refactoring in lgamma code, for clarity. | Mark Dickinson | 2010-07-07 | 1 | -14/+10 |
| | |||||
* | Style/consistency nit: make math_floor and math_ceil code look the same. | Mark Dickinson | 2010-07-02 | 1 | -6/+4 |
| | |||||
* | fix lookup of __ceil__ | Benjamin Peterson | 2010-07-02 | 1 | -9/+9 |
| | |||||
* | account for different ref counting semantics of _PyObject_LookupSpecial | Benjamin Peterson | 2010-07-02 | 1 | -4/+8 |
| |