Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
393 B
1
Indexable
Never
import numpy as np

array1 = np.array([[45,16,39],[78,43,62]])
array2 = np.array([[23,11,89],[51,80,35]])

add = np.add(array1, array2)
print()
print("Addition of array :")
print(add)

sq = np.square(add)
print()
print("Square of array :")
print(sq)

sort = np.sort(sq)
print()
print("Sorted array :")
print(sort)

split = np.array_split(sort,4)
print()
print("Spilled array :")
print(split)