This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add log1p(), exp1m(), gamma(), and lgamma() to cmath
Type: enhancement Stage: needs patch
Components: Extension Modules Versions: Python 3.4
process
Status: closed Resolution: postponed
Dependencies: Superseder:
Assigned To: Nosy List: mark.dickinson, orsenthil, rhettinger
Priority: low Keywords:

Created on 2011-01-25 23:25 by rhettinger, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg127070 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2011-01-25 23:25
Where it makes sense, cmath needs to stay in-sync with the math module as much as possible:

  >>> set(dir(math)) - set(dir(cmath))
  {'pow', 'fsum', 'ldexp', 'hypot', 'fabs', 'floor', 'lgamma',
   'frexp', 'degrees', 'modf', 'factorial', 'copysign', 'ceil',
   'trunc', 'expm1', 'radians', 'atan2', 'erf', 'erfc', 'fmod',
   'log1p', 'gamma'}

At some point, it may make sense to implement cmath.fsum() along the lines of:
 
 c_fsum = lambda iterable: 
   complex(*map(fsum, zip(*((z.real, z.imag) for z in iterable))))
msg159619 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2012-04-29 15:59
Unassigning.  I'm not planning to work on this in the forseeable future, though I'd be happy to review patches.
msg192928 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2013-07-12 07:34
Closed due to lack of interest.
History
Date User Action Args
2022-04-11 14:57:11adminsetgithub: 55221
2013-07-12 07:34:20rhettingersetstatus: open -> closed
resolution: postponed
messages: + msg192928
2013-07-08 17:32:16christian.heimessetpriority: normal -> low
versions: + Python 3.4, - Python 3.3
2012-04-29 15:59:44mark.dickinsonsetassignee: mark.dickinson ->
messages: + msg159619
2011-12-21 14:43:22orsenthilsetnosy: + orsenthil
2011-01-25 23:25:00rhettingercreate