upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

Proposal: mpmath.isfinite() #244

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Both numpy and Python (beginning with version 3.2) have a function called 
`isfinite()`, which returns True if the argument is neither an infinity nor a 
NaN, and False otherwise.

While porting some standard Python code to use mpmath, I noticed that there is 
no function `mpmath.isfinite()`.  I think it would be a great and useful thing 
to add, and would supplement nicely `mpmath.isnan()` and `mpmath.isinf()`, 
which already parallel the versions in python's `math` module.

Original issue reported on code.google.com by garrison...@gmail.com on 1 Oct 2013 at 12:41

GoogleCodeExporter commented 9 years ago
Added.

Original comment by fredrik....@gmail.com on 26 Dec 2013 at 5:06