Book Image

NumPy: Beginner's Guide

By : Ivan Idris
Book Image

NumPy: Beginner's Guide

By: Ivan Idris

Overview of this book

Table of Contents (21 chapters)
NumPy Beginner's Guide Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
NumPy Functions' References
Index

Modulo operation


We can calculate the modulo or remainder using the NumPy mod(), remainder(), and fmod() functions. Also, we can use the % operator. The main difference among these functions is how they deal with negative numbers. The odd one out in this group is the fmod() function.