Vector representation and magnitude