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.

Author rhettinger
Recipients mark.dickinson, rhettinger
Date 2011-01-25.23:25:00
SpamBayes Score 0.0007570989
Marked as misclassified No
Message-id <1295997901.71.0.113497713942.issue11012@psf.upfronthosting.co.za>
In-reply-to
Content
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))))
History
Date User Action Args
2011-01-25 23:25:01rhettingersetrecipients: + rhettinger, mark.dickinson
2011-01-25 23:25:01rhettingersetmessageid: <1295997901.71.0.113497713942.issue11012@psf.upfronthosting.co.za>
2011-01-25 23:25:00rhettingerlinkissue11012 messages
2011-01-25 23:25:00rhettingercreate