import numpy as np

print ( 'vector_equality:')
print ( '  How do we check whether two vectors are equal?' )

u = np.array ( [1,2] )
v = np.array ( [3,2] )
w = np.array ( [1,2] )

print ( 'u = ', u )
print ( 'v = ', v )
print ( 'w = ', w )

print ('' )
print ( 'u==v: ', u == v )
print ( 'u==w: ', u == w )

print ( '' )
print ( '||u-v||=', np.linalg.norm ( u - v ) )
print ( '||u-w||=', np.linalg.norm ( u - w ) )
