Chapter 15. Numeric Processing

You can perform some numeric computations with operators (covered in Numeric Operations) and built-in functions (covered in Built-in Functions). Python also provides modules that support additional numeric computation functionality, as documented in this chapter: math, cmath in The math and cmath Modules, operator in The operator Module, random in The random module, and decimal in The decimal Module. The gmpy Module also covers third-party module gmpy, which further extends Python’s numeric computation abilities. Numeric processing often requires, more specifically, the processing of arrays of numbers, covered in Chapter 16.

Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.