#NEWLINE# def norm( vec ) : #NEWLINE# #INDENT# ' Function computes and returns the normalized form of a\n        given vector' #NEWLINE# norm = ( norm / sqrt ( numpy . inner ( vec , vec ) ) ) #NEWLINE# return norm