Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #8986: erfc was raising OverflowError on Linux for arguments in | Mark Dickinson | 2010-06-13 | 1 | -0/+9 |
| | | | | | the (approximate) range (-27.3, 30.0), as a result of an escaped errno value. | ||||
* | Fix unused variable in test_factorial. | Mark Dickinson | 2010-05-12 | 1 | -1/+1 |
| | |||||
* | testCopysign was defined twice in test_math; combine the definitions | Mark Dickinson | 2010-02-06 | 1 | -25/+24 |
| | |||||
* | Silence -3 warnings. Thanks Florent Xicluna. | Mark Dickinson | 2009-12-20 | 1 | -2/+4 |
| | |||||
* | Issue #3366: Add expm1 function to math module. Thanks Eric Smith for | Mark Dickinson | 2009-12-16 | 1 | -7/+6 |
| | | | | testing on Windows. | ||||
* | Issue #3366: Add lgamma function to math module. | Mark Dickinson | 2009-12-11 | 1 | -5/+45 |
| | |||||
* | test_math ulp computation was wrong on big-endian systems | Mark Dickinson | 2009-10-17 | 1 | -1/+1 |
| | |||||
* | Fix buggy accuracy test | Mark Dickinson | 2009-09-30 | 1 | -1/+1 |
| | |||||
* | Issue #3366: Add gamma function to math module. | Mark Dickinson | 2009-09-28 | 1 | -0/+88 |
| | | | | (lgamma, erf and erfc to follow). | ||||
* | Use skipUnless to skip math module tests on non-IEEE 754 platforms. | Mark Dickinson | 2009-09-18 | 1 | -31/+34 |
| | |||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -74/+74 |
| | |||||
* | Remove unnecessary double negative | Mark Dickinson | 2009-04-24 | 1 | -1/+1 |
| | |||||
* | Issue #5593: Use more robust test for double-rounding in test_fsum. | Mark Dickinson | 2009-04-24 | 1 | -8/+9 |
| | | | | | While we're at it, use new unittest.skipUnless decorator to implement skipping for that test. | ||||
* | Rename testSum to testFsum and move it to proper place in test_math.py | Mark Dickinson | 2008-07-31 | 1 | -97/+96 |
| | |||||
* | Rename math.sum to math.fsum | Mark Dickinson | 2008-07-30 | 1 | -7/+7 |
| | |||||
* | More modifications to tests for math.sum: replace the Python | Mark Dickinson | 2008-07-29 | 1 | -39/+39 |
| | | | | | version of msum by a version using a different algorithm, and use the new float.fromhex method to specify test results exactly. | ||||
* | Remove math.sum tests related to overflow, special values, and behaviour | Mark Dickinson | 2008-07-27 | 1 | -65/+10 |
| | | | | | near the extremes of the floating-point range. (The behaviour of math.sum should be regarded as undefined in these cases.) | ||||
* | Issue #2138: Add math.factorial(). | Raymond Hettinger | 2008-06-09 | 1 | -0/+15 |
| | |||||
* | Fix typo in testSum | Mark Dickinson | 2008-05-30 | 1 | -1/+1 |
| | |||||
* | Skip math.sum tests on non IEEE 754 platforms, and on IEEE 754 platforms | Mark Dickinson | 2008-05-23 | 1 | -0/+16 |
| | | | | that exhibit the problem described in issue #2937. | ||||
* | Better error reporting in test_math.py | Mark Dickinson | 2008-05-23 | 1 | -0/+4 |
| | |||||
* | Add tests for math.sum (Issue #2819) | Mark Dickinson | 2008-05-23 | 1 | -0/+136 |
| | |||||
* | Issue #2487. math.ldexp(x, n) raised OverflowError when n was large and | Mark Dickinson | 2008-05-09 | 1 | -0/+18 |
| | | | | negative; fix to return an (appropriately signed) zero instead. | ||||
* | Add test for tanh(-0.) == -0. on IEEE 754 systems | Mark Dickinson | 2008-04-20 | 1 | -0/+58 |
| | |||||
* | Yet more explicit special case handling to make | Mark Dickinson | 2008-04-20 | 1 | -0/+12 |
| | | | | | | math.pow behave on alpha Tru64. All IEEE 754 special values are now handled directly; only the finite**finite case is handled by libm. | ||||
* | Report additional diagnostic information in | Mark Dickinson | 2008-04-20 | 1 | -1/+6 |
| | | | | | test_math, to help track down debian-alpha buildbot failure. | ||||
* | Additional tests for math.pow, and extra special-case | Mark Dickinson | 2008-04-19 | 1 | -10/+124 |
| | | | | | handling code in math.pow, in the hope of making all tests pass on the alpha Tru64 buildbot. | ||||
* | I finally got the time to update and merge Mark's and my trunk-math branch. ↵ | Christian Heimes | 2008-04-18 | 1 | -3/+238 |
| | | | | | | The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :) | ||||
* | Move __builtins__.trunc() to math.trunc() per | Jeffrey Yasskin | 2008-02-01 | 1 | -0/+31 |
| | | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965. | ||||
* | Continue rolling back pep-3141 changes that changed behavior from 2.5. This | Jeffrey Yasskin | 2008-01-05 | 1 | -4/+4 |
| | | | | | | | | | | | | round included: * Revert round to its 2.6 behavior (half away from 0). * Because round, floor, and ceil always return float again, it's no longer necessary to have them delegate to __xxx___, so I've ripped that out of their implementations and the Real ABC. This also helps in implementing types that work in both 2.6 and 3.0: you return int from the __xxx__ methods, and let it get enabled by the version upgrade. * Make pow(-1, .5) raise a ValueError again. | ||||
* | Make math.{floor,ceil}({int,long}) return float again for backwards | Jeffrey Yasskin | 2008-01-04 | 1 | -0/+8 |
| | | | | compatibility after r59671 made them return integral types. | ||||
* | Added copysign(x, y) function to the math module | Christian Heimes | 2008-01-03 | 1 | -0/+7 |
| | |||||
* | Added math.isinf() and math.isnan() | Christian Heimes | 2008-01-03 | 1 | -0/+16 |
| | |||||
* | Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just | Jeffrey Yasskin | 2008-01-03 | 1 | -0/+26 |
| | | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689. | ||||
* | Make test_math error messages more meaningful for small discrepancies in results | Nick Coghlan | 2007-07-27 | 1 | -1/+5 |
| | |||||
* | Add explicit test for a misbehaving math.floor | Nick Coghlan | 2007-07-26 | 1 | -0/+4 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-11-03 | 1 | -1/+1 |
| | |||||
* | Add tests for basic argument errors. | Walter Dörwald | 2006-10-29 | 1 | -0/+27 |
| | |||||
* | Convert test_math to unittest. | Georg Brandl | 2006-10-28 | 1 | -201/+207 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -4/+4 |
| | | | | From SF patch #852334. | ||||
* | Expand log() tests to include long integers. | Raymond Hettinger | 2002-12-18 | 1 | -0/+2 |
| | |||||
* | Apply SF patch 652930: Add optional base argument to math.log(x[, base]). | Raymond Hettinger | 2002-12-14 | 1 | -0/+1 |
| | |||||
* | Complete the absolute import patch for the test suite. All relative | Barry Warsaw | 2002-07-30 | 1 | -1/+1 |
| | | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed. | ||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :) | ||||
* | Whitespace normalization. | Tim Peters | 2002-05-23 | 1 | -1/+1 |
| | |||||
* | Adds tests for degrees() and radians() functions added to mathmodule. | Raymond Hettinger | 2002-05-13 | 1 | -0/+10 |
| | | | | Closes patch 552452 and feature request 426539. | ||||
* | Rework the way we try to check for libm overflow, given that C99 no longer | Tim Peters | 2001-09-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | requires that errno ever get set, and it looks like glibc is already playing that game. New rules: + Never use HUGE_VAL. Use the new Py_HUGE_VAL instead. + Never believe errno. If overflow is the only thing you're interested in, use the new Py_OVERFLOWED(x) macro. If you're interested in any libm errors, use the new Py_SET_ERANGE_IF_OVERFLOW(x) macro, which attempts to set errno the way C89 said it worked. Unfortunately, none of these are reliable, but they work on Windows and I *expect* under glibc too. | ||||
* | Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless of | Tim Peters | 2001-04-12 | 1 | -5/+1 |
| | | | | | platform. If it returns pi on the unixware7 platform, they have a bug in their libm atan2. | ||||
* | Unixware 7 support by Billy G. Allie (SF patch 413011) | Guido van Rossum | 2001-04-11 | 1 | -1/+5 |
| | |||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -1/+1 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. |