Array Mathematics

  • + 0 comments

    import numpy as np

    m , n = map(int, input().split(" ")) a = np.array(list(map(int, input().split(" ")))) b = np.array(list(map(int, input().split(" "))))

    print(np.add(a,b)) print(np.subtract(a,b)) print(np.multiply(a,b)) print(np.floor_divide(a,b)) print(np.mod(a,b)) print(np.power(a,b))