3.12 Basic arithmetic operations on NumPy arrays

 Basic arithmetic operations on NumPy arrays: -

  • In Python, we can perform various mathematical operations like addition, subtraction, multiplication and division etc. over the array elements.
  • Python language also provides math module that can be applied to array elements.
  • The math module is a standard module in the Python; by importing it we can access different mathematical functions.

            Example: -

                    Output: -




Popular posts from this blog

operators in c programming

Variables in c

2.4 Arrays in c programming