2007年12月24日月曜日

real/imaginary restructuring

I think it's time to replace real/imaginary implementations. The real module is providing functions corresponding to math standard module of Python, and imaginary to cmath. Scratching the surface of the real module, you may find that all results returned by functions in it are just rational numbers. I don't think they are useful enough now.

There has been decimal module in the Python standard library since 2.4. The reason we haven't used it is because of compatibility; we are keeping NZMATH to work with Python 2.3 or higher. If we agree to drop compatibility to Python 2.3, we can use it. How many of you think keeping compatibility is more important than refreshing rarely useful modules?

Another possibility is to use third party module. In my thought, mpmath is the most probable candidate. It provides arbitrary precision float as well as math/cmath like functions.


Any opinion or suggestion?

0 件のコメント: