Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
The most current documentation is available by using "help(gmpy)" from the
Python command line.
Note: if you installed gmpy2, you should use "import gmpy2" and "help(gmpy2)".
gmpy2 uses a different name since it is not 100% backwards compatible. For most
common uses "import gmpy2 as gmpy" will work.
For integers, a few methods were renamed (primarily bit operations are now name
bit_XXX instead of XXX; for example .scan1() is now .bit_scan1()). Some new
features were also introduced - the bits of an integer can be accessed via
slicing and a mutable integer type that support faster in-place operations.
For floating point numbers, there are significant changes - MPFR is used
instead of the floating point type from GMP. MPFR provides better rounding and
a whole set of transcendental functions. There will be more API changes when I
release Alpha2, hopefully in the near future.
Let me know if you have any specific questions. In the mean time, I'll at least
try to get some documentation on the Wiki.
Original comment by casevh
on 5 Apr 2011 at 2:14
I've been adding documentation to the wiki pages. I'll update them for new
releases.
Original comment by casevh
on 17 Jul 2011 at 6:23
Original issue reported on code.google.com by
hij...@gmail.com
on 5 Apr 2011 at 12:33