Skip to content

Instantly share code, notes, and snippets.

@nazt
Created January 14, 2010 15:04
Show Gist options
  • Save nazt/277227 to your computer and use it in GitHub Desktop.
Save nazt/277227 to your computer and use it in GitHub Desktop.
from numpy import*
vector=[1,2,3]
norm=norm=linalg.norm(vector)
normalized_vector=vector/norm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment