How to do it...

Note that not all functions in comath are displayed here, as some require additional packages such as NumPy, which are beyond the scope of this book, or are modified versions of existing math functions:

  1. array.percentile(sorted_list, percent [, key=lambda x: x]) function returns the desired percentile (as defined by percent) from a sorted list of numbers:
    • For the list of numbers, line 4 returns the 10th percentile.
    • The line 5 returns the 30th percentile.
    • The line 6 returns the 50th percentile.
    • The line 7 returns the 75th percentile.
    • The line 8 returns the 99th percentile.
  1. func.get_smooth_step_function(min_val, max_val, ...

Get Secret Recipes of the Python Ninja 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.