Binary Operators

Here are some functions in Numpy to perform binary operations. We will discuss them through example too.
1. bitwise_and: It basically performs AND operation between numbers for each digit.
2. bitwise_or: It basically performs OR operation between numbers for each digit.
3. bitwise_xor: It basically performs XOR operation between numbers for each digit.
4. invert: It basically performs NOT operation for each digit present in the number or you can say inverting each digit.+

Leave a Comment

Your email address will not be published. Required fields are marked *