#PYTHON PROGRAM TO IMPLEMENT ELEMENT WISE OPERATIONS IN NUMPY ARRAY
we perfrom add,subtraction,multiplication,division
import numpy as np
my_array_1 = np.array([10,20,30])
my_array_2 = np.array([5,5,5])
add = my_array_1 + my_array_2
subtract = my_array_1 - my_array_2
multiplication = my_array_1 * my_array_2
division = my_array_1 / my_array_2
print(add)
print(subtract)
print(multiplication)
print(division)
OUTPUT:
[15 25 35]
[ 5 15 25]
[ 50 100 150]
[2. 4. 6.]
On this page of the site you can watch the video online PYTHON PROGRAM TO IMPLEMENT ELEMENT WISE OPERATIONS IN NUMPY ARRAY. with a duration of hours minute second in good quality, which was uploaded by the user PythonEnthusiasts 01 January 1970, share the link with friends and acquaintances, this video has already been watched 42 times on youtube and it was liked by 1 viewers. Enjoy your viewing!