ANN: dmath 0.9 - Math routines for the Decimal type

Brian Beck exogen at gmail.com
Mon Sep 25 15:49:40 EDT 2006


Brian Beck wrote:
> What is dmath?
> ==============
> dmath provides the standard math routines for Python's arbitrary-precision
> Decimal type. These include acos, asin, atan, atan2, ceil, cos, cosh,
> degrees, e, exp, floor, golden_ratio, hypot, log, log10, pi, pow, radians,
> sign, sin, sinh, sqrt, tan, and tanh.

Oh yeah, you may be wondering how this differs from decimalfuncs:
http://cheeseshop.python.org/pypi/decimalfuncs/1.4

The answer is that dmath has the complete set of math routines (not just a
subset), it's faster (from what I can tell), doesn't require its own
precision-setting method, and it's MIT instead of GPL licensed.

-- 
Brian Beck
Adventurer of the First Order



More information about the Python-list mailing list