220 Commits (f1c19031fd5f4cf6faad539e30796b42954527db)

Author SHA1 Message Date
Raymond Hettinger 6b5f1b496f
bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) 7 years ago
Mark Dickinson 014847034b
Fix inconsequential typo in math.remainder algorithm comments. (#14746) 7 years ago
Giovanni Cappellotto dc3f99fa77 bpo-37548: Document range of atan, acos and asin (GH-14717) 7 years ago
Min ho Kim f7d72e48fb Fix some typos (GH-14435) 7 years ago
Serhiy Storchaka 231aad3849
bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147) 7 years ago
Mark Dickinson 2dfeaa9222
Turn math.isqrt assertion into a comment to clarify its purpose. (GH-14131) 7 years ago
Mark Dickinson 45e0411eee
Simplify negativity checks in math.comb and math.perm. (GH-13870) 7 years ago
Raymond Hettinger e119b3d136
bpo-37178: Allow a one argument form of math.perm() (GH-13905) 7 years ago
Raymond Hettinger 963eb0f473
bpo-35431: Drop the k <= n requirement (GH-13798) 7 years ago
Serhiy Storchaka 5ae299ac78
bpo-37128: Add math.perm(). (GH-13731) 7 years ago
Serhiy Storchaka 2b843ac0ae
bpo-35431: Refactor math.comb() implementation. (GH-13725) 7 years ago
Yash Aggarwal 4a686504eb bpo-35431: Implemented math.comb (GH-11414) 7 years ago
Mark Dickinson 5c08ce9bf7
bpo-36957: Speed up math.isqrt (#13405) 7 years ago
Serhiy Storchaka a5119e7d75
bpo-36957: Add _PyLong_Rshift() and _PyLong_Lshift(). (GH-13416) 7 years ago
Mark Dickinson 73934b9da0
bpo-36887: add math.isqrt (GH-13244) 7 years ago
Ned Batchelder 6faad355db bpo-36908: 'This module is always available' isn't helpful. (#13297) 7 years ago
Pablo Galindo 0411411c6b
Rework integer overflow path in math.prod and add more tests (GH-11809) 7 years ago
Dima Pasechnik f57cd8288d bpo-36106: Resolve sinpi name clash with libm (IEEE-754 violation). (GH-12027) 7 years ago
Pablo Galindo 4207907c2b
Fix division by 0 when checking for overflow in math.prod (GH-11808) 7 years ago
Pablo Galindo bc09851586 bpo-35606: Implement math.prod (GH-11359) 7 years ago
Raymond Hettinger cfd735ea28
Move float conversion into a macro. Apply to fsum (GH-11698) 7 years ago
Raymond Hettinger 808180c206
Fast path for int inputs to math.dist() and math.hypot() (GH-11692) 7 years ago
Serhiy Storchaka d0d3e99120
bpo-35719: Optimize multi-argument math functions. (GH-11527) 7 years ago
Ammar Askar cb08a71c5c bpo-34838: Use subclass_of for math.dist. (GH-9659) 7 years ago
Zackery Spytz 4c49da0cb7 bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015) 7 years ago
Raymond Hettinger 216aaaa056 Fixing wording in comment. (GH-10425) 7 years ago
Raymond Hettinger df8101517a
Speed-up math.dist() by 30% (GH-9628) 7 years ago
Pablo Galindo e9ba3705de
bpo-33083 - Make math.factorial reject arguments that are not int-like (GH-6149) 7 years ago
Raymond Hettinger f326714426
Minor improvement to code clarity (GH-9036) 7 years ago
Raymond Hettinger 745c0f3980
Simplify vector_norm() by eliminating special cases in the main loop (GH-9006) 8 years ago
Raymond Hettinger 21786f5186
Improve commutativity of math.hypot() and math.dist() (GH-8984) 8 years ago
Raymond Hettinger 74734f73ca
Fast path for exact floats in math.hypot() and math.dist() (GH-8949) 8 years ago
Raymond Hettinger a47f394af8
Minor code clean-up. Don't alter the input vector. Use variables instead. GH-8748 8 years ago
Raymond Hettinger 00414597b4
Add more tests and assertions for math.hypot() and math.dist() (GH-8747) 8 years ago
Raymond Hettinger c630e10440
Factor-out common code. Also, optimize common cases by preallocating space on the stack. GH-8738 8 years ago
Raymond Hettinger 1399074535
Replace straight addition with Kahan summation and move max to the end (GH-8727) 8 years ago
Raymond Hettinger 9c18b1ae52
bpo-33089: Add math.dist() for computing the Euclidean distance between two points (GH-8561) 8 years ago
Raymond Hettinger c6dabe37e3
bpo-33089: Multidimensional math.hypot() (GH-8474) 8 years ago
Barry Warsaw b2e5794870 bpo-31338 (#3374) 8 years ago
Mark Dickinson a0ce375e10 bpo-29962: add math.remainder (#950) 9 years ago
Louie Lu 7a26464c64 bpo-29946: Fix "sqrtpi defined but not used" (#908) 9 years ago
Serhiy Storchaka 4125e5c60e bpo-26121: Revert to using the own implementations of lgamma and gamma on all platforms. (#637) 9 years ago
Serhiy Storchaka 97553fdf9d bpo-26121: Use C library implementation for math functions: (#515) 9 years ago
Mark Dickinson 5e65cd39df Issue #29282: Backed out changeset b33012ef1417 9 years ago
Mark Dickinson d1b230e48b Issue #29282: add fused multiply-add function, math.fma. 9 years ago
Serhiy Storchaka c9ea933586 Issue #20186: Converted the math module to Argument Clinic. 9 years ago
Victor Stinner f17c3de263 Use _PyObject_CallNoArg() 9 years ago
Victor Stinner de4ae3d486 Backed out changeset b9c9691c72c5 9 years ago
Victor Stinner 27580c1fb5 Replace PyObject_CallFunctionObjArgs() with fastcall 9 years ago
Martin Panter 0be894b2f6 Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 10 years ago