Mag function

Magnitude and angle of a vector