Computational Science, Numpy, Linear Algebra, Numerical Analysis, Python Programming.
norm_1 = norm(new_vector, 1) norm_2 = norm(new_vector, 2) print('L_1 is: %.1f'%norm_1) print('L_2 is: %.1f'%norm_2) The result will be : [[ 1] [-5] [ 3] [ 2] [ 4]] L_1 is: 15.0 L_2 is: 7.4 The dot product of two vectors is the sum of the product of the respective elements in each vector and is